diff options
| author | Jonathan Lemon <[email protected]> | 2019-07-30 14:40:33 +0000 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2019-07-30 21:21:32 +0000 |
| commit | b54c9d5bd6e38edac9ce3a3f95f14a1292b5268d (patch) | |
| tree | b09848a92e53ce9533b4df27953ef59874080b53 /drivers/net/ethernet/freescale/fs_enet/fs_enet-main.c | |
| parent | linux: Add skb_frag_t page_offset accessors (diff) | |
| download | kernel-b54c9d5bd6e38edac9ce3a3f95f14a1292b5268d.tar.gz kernel-b54c9d5bd6e38edac9ce3a3f95f14a1292b5268d.zip | |
net: Use skb_frag_off accessors
Use accessor functions for skb fragment's page_offset instead
of direct references, in preparation for bvec conversion.
Signed-off-by: Jonathan Lemon <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'drivers/net/ethernet/freescale/fs_enet/fs_enet-main.c')
| -rw-r--r-- | drivers/net/ethernet/freescale/fs_enet/fs_enet-main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/freescale/fs_enet/fs_enet-main.c b/drivers/net/ethernet/freescale/fs_enet/fs_enet-main.c index 5fad73b2e123..3981c06f082f 100644 --- a/drivers/net/ethernet/freescale/fs_enet/fs_enet-main.c +++ b/drivers/net/ethernet/freescale/fs_enet/fs_enet-main.c @@ -501,7 +501,7 @@ fs_enet_start_xmit(struct sk_buff *skb, struct net_device *dev) nr_frags = skb_shinfo(skb)->nr_frags; frag = skb_shinfo(skb)->frags; for (i = 0; i < nr_frags; i++, frag++) { - if (!IS_ALIGNED(frag->page_offset, 4)) { + if (!IS_ALIGNED(skb_frag_off(frag), 4)) { is_aligned = 0; break; } |
