mbox series

[v9,net-next,0/4] add multi-buff support for xdp running in generic mode

Message ID cover.1707729884.git.lorenzo@kernel.org (mailing list archive)
Headers show
Series add multi-buff support for xdp running in generic mode | expand

Message

Lorenzo Bianconi Feb. 12, 2024, 9:50 a.m. UTC
Introduce multi-buffer support for xdp running in generic mode not always
linearizing the skb in netif_receive_generic_xdp routine.
Introduce generic percpu page_pools allocator.

Changes since v8:
- fix veth regression introduce in veth.sh selftest
Changes since v7:
- fix sparse warnings
Changes since v6:
- remove patch 4/5 'net: page_pool: make stats available just for global pools'
- rename netif_skb_segment_for_xdp() in
  skb_cow_data_for_xdp()/skb_pp_cow_data()
- rename net_page_pool_alloc() in net_page_pool_create()
- rename page_pool percpu pointer in system_page_pool
- set percpu page_pool memory size
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 (4):
  net: add generic percpu 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
  veth: rely on skb_pp_cow_data utility routine

 drivers/net/tun.c             |   4 +-
 drivers/net/veth.c            |  74 +------------------
 include/linux/netdevice.h     |   2 +-
 include/linux/skbuff.h        |   4 ++
 include/net/page_pool/types.h |   3 +
 net/core/dev.c                | 131 +++++++++++++++++++++++++++-------
 net/core/page_pool.c          |  23 ++++--
 net/core/skbuff.c             |  97 ++++++++++++++++++++++++-
 8 files changed, 231 insertions(+), 107 deletions(-)

Comments

patchwork-bot+netdevbpf@kernel.org Feb. 14, 2024, 3:50 a.m. UTC | #1
Hello:

This series was applied to netdev/net-next.git (main)
by Jakub Kicinski <kuba@kernel.org>:

On Mon, 12 Feb 2024 10:50:53 +0100 you wrote:
> Introduce multi-buffer support for xdp running in generic mode not always
> linearizing the skb in netif_receive_generic_xdp routine.
> Introduce generic percpu page_pools allocator.
> 
> Changes since v8:
> - fix veth regression introduce in veth.sh selftest
> Changes since v7:
> - fix sparse warnings
> Changes since v6:
> - remove patch 4/5 'net: page_pool: make stats available just for global pools'
> - rename netif_skb_segment_for_xdp() in
>   skb_cow_data_for_xdp()/skb_pp_cow_data()
> - rename net_page_pool_alloc() in net_page_pool_create()
> - rename page_pool percpu pointer in system_page_pool
> - set percpu page_pool memory size
> 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()
> 
> [...]

Here is the summary with links:
  - [v9,net-next,1/4] net: add generic percpu page_pool allocator
    https://git.kernel.org/netdev/net-next/c/2b0cfa6e4956
  - [v9,net-next,2/4] xdp: rely on skb pointer reference in do_xdp_generic and netif_receive_generic_xdp
    https://git.kernel.org/netdev/net-next/c/4d2bb0bfe874
  - [v9,net-next,3/4] xdp: add multi-buff support for xdp running in generic mode
    https://git.kernel.org/netdev/net-next/c/e6d5dbdd20aa
  - [v9,net-next,4/4] veth: rely on skb_pp_cow_data utility routine
    https://git.kernel.org/netdev/net-next/c/27accb3cc08a

You are awesome, thank you!