diff options
| author | Jonathan Lemon <[email protected]> | 2019-07-30 14:40:33 +0000 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2019-07-30 21:21:32 +0000 |
| commit | b54c9d5bd6e38edac9ce3a3f95f14a1292b5268d (patch) | |
| tree | b09848a92e53ce9533b4df27953ef59874080b53 /drivers/net/xen-netback/netback.c | |
| parent | linux: Add skb_frag_t page_offset accessors (diff) | |
| download | kernel-b54c9d5bd6e38edac9ce3a3f95f14a1292b5268d.tar.gz kernel-b54c9d5bd6e38edac9ce3a3f95f14a1292b5268d.zip | |
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]>
Diffstat (limited to 'drivers/net/xen-netback/netback.c')
| -rw-r--r-- | drivers/net/xen-netback/netback.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/net/xen-netback/netback.c b/drivers/net/xen-netback/netback.c index a96c5c2a2c5a..3ef07b63613e 100644 --- a/drivers/net/xen-netback/netback.c +++ b/drivers/net/xen-netback/netback.c @@ -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); } |
