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]>
This commit is contained in:
Jonathan Lemon 2019-07-30 07:40:33 -07:00 • committed by David S. Miller
commit b54c9d5bd6
44 changed files with 100 additions and 98 deletions

View file

@ -182,7 +182,7 @@ static void ssip_skb_to_msg(struct sk_buff *skb, struct hsi_msg *msg)
BUG_ON(!sg);
frag = &skb_shinfo(skb)->frags[i];
sg_set_page(sg, skb_frag_page(frag), skb_frag_size(frag),
frag->page_offset);
skb_frag_off(frag));
}
}