diff options
author | Lorenzo Bianconi <lorenzo@kernel.org> | 2024-02-12 10:50:57 +0100 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2024-02-14 04:22:30 +0100 |
commit | 27accb3cc08a0ec4e348356774042d5fa5f30cce (patch) | |
tree | 26ee07858fa24b0e769319291778d3ccc835de63 /include | |
parent | xdp: add multi-buff support for xdp running in generic mode (diff) | |
download | linux-27accb3cc08a0ec4e348356774042d5fa5f30cce.tar.xz linux-27accb3cc08a0ec4e348356774042d5fa5f30cce.zip |
veth: rely on skb_pp_cow_data utility routine
Rely on skb_pp_cow_data utility routine and remove duplicated code.
Acked-by: Jesper Dangaard Brouer <hawk@kernel.org>
Reviewed-by: Toke Hoiland-Jorgensen <toke@redhat.com>
Signed-off-by: Lorenzo Bianconi <lorenzo@kernel.org>
Link: https://lore.kernel.org/r/029cc14cce41cb242ee7efdcf32acc81f1ce4e9f.1707729884.git.lorenzo@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/skbuff.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/skbuff.h b/include/linux/skbuff.h index def3d8689c3d..696e7680656f 100644 --- a/include/linux/skbuff.h +++ b/include/linux/skbuff.h @@ -3446,6 +3446,8 @@ static inline void skb_frag_ref(struct sk_buff *skb, int f) __skb_frag_ref(&skb_shinfo(skb)->frags[f]); } +int skb_pp_cow_data(struct page_pool *pool, struct sk_buff **pskb, + unsigned int headroom); int skb_cow_data_for_xdp(struct page_pool *pool, struct sk_buff **pskb, struct bpf_prog *prog); bool napi_pp_put_page(struct page *page, bool napi_safe); |