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
@@ -953,8 +953,8 @@ static unsigned long atalk_sum_skb(const struct sk_buff *skb, int offset,
|
||||
if (copy > len)
|
||||
copy = len;
|
||||
vaddr = kmap_atomic(skb_frag_page(frag));
|
||||
sum = atalk_sum_partial(vaddr + frag->page_offset +
|
||||
offset - start, copy, sum);
|
||||
sum = atalk_sum_partial(vaddr + skb_frag_off(frag) +
|
||||
offset - start, copy, sum);
|
||||
kunmap_atomic(vaddr);
|
||||
|
||||
if (!(len -= copy))
|
||||
|
Reference in New Issue
Block a user