netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v6 net-next 0/5] add multi-buff support for xdp running in generic mode
@ 2024-01-28 14:20 Lorenzo Bianconi
  2024-01-28 14:20 ` [PATCH v6 net-next 1/5] net: add generic per-cpu page_pool allocator Lorenzo Bianconi
                   ` (5 more replies)
  0 siblings, 6 replies; 36+ messages in thread
From: Lorenzo Bianconi @ 2024-01-28 14:20 UTC (permalink / raw)
  To: netdev
  Cc: lorenzo.bianconi, davem, kuba, edumazet, pabeni, bpf, toke,
	willemdebruijn.kernel, jasowang, sdf, hawk, ilias.apalodimas

Introduce multi-buffer support for xdp running in generic mode not always
linearizing the skb in netif_receive_generic_xdp routine.
Introduce page_pool in softnet_data structure

Changes since v5:
- move percpu page_pool pointer out of softnet_data in a dedicated variable
- make page_pool stats available just for global pools
- rely on netif_skb_segment_for_xdp utility routine in veth driver
Changes since v4:
- fix compilation error if page_pools are not enabled
Changes since v3:
- introduce page_pool in softnet_data structure
- rely on page_pools for xdp_generic code
Changes since v2:
- rely on napi_alloc_frag() and napi_build_skb() to build the new skb
Changes since v1:
- explicitly keep the skb segmented in netif_skb_check_for_generic_xdp() and
  do not rely on pskb_expand_head()

Lorenzo Bianconi (5):
  net: add generic per-cpu page_pool allocator
  xdp: rely on skb pointer reference in do_xdp_generic and
    netif_receive_generic_xdp
  xdp: add multi-buff support for xdp running in generic mode
  net: page_pool: make stats available just for global pools
  veth: rely on netif_skb_segment_for_xdp utility routine

 drivers/net/tun.c             |   4 +-
 drivers/net/veth.c            |  79 +------------
 include/linux/netdevice.h     |   6 +-
 include/net/page_pool/types.h |   3 +
 net/core/dev.c                | 208 +++++++++++++++++++++++++++++-----
 net/core/page_pool.c          |  59 +++++++---
 net/core/skbuff.c             |   5 +-
 7 files changed, 241 insertions(+), 123 deletions(-)

-- 
2.43.0


^ permalink raw reply	[flat|nested] 36+ messages in thread

end of thread, other threads:[~2024-02-01 16:41 UTC | newest]

Thread overview: 36+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-01-28 14:20 [PATCH v6 net-next 0/5] add multi-buff support for xdp running in generic mode Lorenzo Bianconi
2024-01-28 14:20 ` [PATCH v6 net-next 1/5] net: add generic per-cpu page_pool allocator Lorenzo Bianconi
2024-01-29  6:37   ` kernel test robot
2024-01-29 12:05   ` Yunsheng Lin
2024-01-29 13:04     ` Lorenzo Bianconi
2024-01-30 11:02       ` Yunsheng Lin
2024-01-30 14:26         ` Lorenzo Bianconi
2024-02-01 11:49           ` Lorenzo Bianconi
2024-02-01 12:14             ` Yunsheng Lin
2024-01-29 12:45   ` Toke Høiland-Jørgensen
2024-01-29 12:52     ` Lorenzo Bianconi
2024-01-29 15:44       ` Toke Høiland-Jørgensen
2024-01-31 12:51         ` Jesper Dangaard Brouer
2024-01-31 12:28   ` Jesper Dangaard Brouer
2024-01-31 13:36     ` Lorenzo Bianconi
2024-01-28 14:20 ` [PATCH v6 net-next 2/5] xdp: rely on skb pointer reference in do_xdp_generic and netif_receive_generic_xdp Lorenzo Bianconi
2024-01-29  8:05   ` Ilias Apalodimas
2024-01-29  9:58     ` Lorenzo Bianconi
2024-01-28 14:20 ` [PATCH v6 net-next 3/5] xdp: add multi-buff support for xdp running in generic mode Lorenzo Bianconi
2024-01-31 23:47   ` Jakub Kicinski
2024-02-01 11:34     ` Lorenzo Bianconi
2024-02-01 15:15       ` Jakub Kicinski
2024-02-01 16:41         ` Lorenzo Bianconi
2024-01-28 14:20 ` [PATCH v6 net-next 4/5] net: page_pool: make stats available just for global pools Lorenzo Bianconi
2024-01-29 12:06   ` Yunsheng Lin
2024-01-29 13:07     ` Lorenzo Bianconi
2024-01-30 11:23       ` Yunsheng Lin
2024-01-30 13:52         ` Lorenzo Bianconi
2024-01-30 15:11           ` Jesper Dangaard Brouer
2024-01-30 16:01             ` Lorenzo Bianconi
2024-01-31 15:32               ` Toke Høiland-Jørgensen
2024-01-31 23:52                 ` Jakub Kicinski
2024-02-01 10:54                   ` Lorenzo Bianconi
2024-01-28 14:20 ` [PATCH v6 net-next 5/5] veth: rely on netif_skb_segment_for_xdp utility routine Lorenzo Bianconi
2024-01-29 12:43 ` [PATCH v6 net-next 0/5] add multi-buff support for xdp running in generic mode Toke Høiland-Jørgensen
2024-01-29 13:05   ` Lorenzo Bianconi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).