mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
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:
parent
7240b60c98
commit
b54c9d5bd6
44 changed files with 100 additions and 98 deletions
|
@ -136,12 +136,12 @@ static inline struct xenvif_queue *ubuf_to_queue(const struct ubuf_info *ubuf)
|
|||
|
||||
static u16 frag_get_pending_idx(skb_frag_t *frag)
|
||||
{
|
||||
return (u16)frag->page_offset;
|
||||
return (u16)skb_frag_off(frag);
|
||||
}
|
||||
|
||||
static void frag_set_pending_idx(skb_frag_t *frag, u16 pending_idx)
|
||||
{
|
||||
frag->page_offset = pending_idx;
|
||||
skb_frag_off_set(frag, pending_idx);
|
||||
}
|
||||
|
||||
static inline pending_ring_idx_t pending_index(unsigned i)
|
||||
|
@ -1068,7 +1068,7 @@ static int xenvif_handle_frag_list(struct xenvif_queue *queue, struct sk_buff *s
|
|||
|
||||
offset += len;
|
||||
__skb_frag_set_page(&frags[i], page);
|
||||
frags[i].page_offset = 0;
|
||||
skb_frag_off_set(&frags[i], 0);
|
||||
skb_frag_size_set(&frags[i], len);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue