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 <jonathan.lemon@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:

committed by
David S. Miller

parent
7240b60c98
commit
b54c9d5bd6
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user