diff options
| author | Matthew Wilcox (Oracle) <[email protected]> | 2019-07-23 03:08:25 +0000 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2019-07-23 03:47:56 +0000 |
| commit | d7840976e3915669382c62ddd1700960f348328e (patch) | |
| tree | 56dc7cc1ae1efc1c947fec907f1bf6775d85a774 /drivers/net/ethernet/intel/e1000/e1000_main.c | |
| parent | net: usb: Merge cpu_to_le32s + memcpy to put_unaligned_le32 (diff) | |
| download | kernel-d7840976e3915669382c62ddd1700960f348328e.tar.gz kernel-d7840976e3915669382c62ddd1700960f348328e.zip | |
net: Use skb accessors in network drivers
In preparation for unifying the skb_frag and bio_vec, use the fine
accessors which already exist and use skb_frag_t instead of
struct skb_frag_struct.
Signed-off-by: Matthew Wilcox (Oracle) <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'drivers/net/ethernet/intel/e1000/e1000_main.c')
| -rw-r--r-- | drivers/net/ethernet/intel/e1000/e1000_main.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/net/ethernet/intel/e1000/e1000_main.c b/drivers/net/ethernet/intel/e1000/e1000_main.c index f703fa58458e..6b6ba1c38235 100644 --- a/drivers/net/ethernet/intel/e1000/e1000_main.c +++ b/drivers/net/ethernet/intel/e1000/e1000_main.c @@ -2889,9 +2889,8 @@ static int e1000_tx_map(struct e1000_adapter *adapter, } for (f = 0; f < nr_frags; f++) { - const struct skb_frag_struct *frag; + const skb_frag_t *frag = &skb_shinfo(skb)->frags[f]; - frag = &skb_shinfo(skb)->frags[f]; len = skb_frag_size(frag); offset = 0; |
