mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 19:21:31 -04:00
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]>
This commit is contained in:
parent
7e24b4ed5a
commit
d7840976e3
69 changed files with 149 additions and 164 deletions
|
|
@ -181,7 +181,8 @@ static void ssip_skb_to_msg(struct sk_buff *skb, struct hsi_msg *msg)
|
|||
sg = sg_next(sg);
|
||||
BUG_ON(!sg);
|
||||
frag = &skb_shinfo(skb)->frags[i];
|
||||
sg_set_page(sg, frag->page.p, frag->size, frag->page_offset);
|
||||
sg_set_page(sg, skb_frag_page(frag), skb_frag_size(frag),
|
||||
frag->page_offset);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue