mbox series

[v2,net-next,0/2] add page_pool support for page recycling in veth driver

Message ID cover.1682188837.git.lorenzo@kernel.org (mailing list archive)
Headers show
Series add page_pool support for page recycling in veth driver | expand

Message

Lorenzo Bianconi April 22, 2023, 6:54 p.m. UTC
Introduce page_pool support in veth driver in order to recycle pages in
veth_convert_skb_to_xdp_buff routine and avoid reallocating the skb through
the page allocator when we run a xdp program on the device and we receive
skbs from the stack.

Change since v1:
- remove page_pool checks in veth_convert_skb_to_xdp_buff() before allocating
  the pages
- recycle pages in the hot cache if build_skb fails in
  veth_convert_skb_to_xdp_buff()

Lorenzo Bianconi (2):
  net: veth: add page_pool for page recycling
  net: veth: add page_pool stats

 drivers/net/Kconfig |  2 ++
 drivers/net/veth.c  | 68 ++++++++++++++++++++++++++++++++++++++++-----
 2 files changed, 63 insertions(+), 7 deletions(-)

Comments

patchwork-bot+netdevbpf@kernel.org April 25, 2023, 1:10 a.m. UTC | #1
Hello:

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

On Sat, 22 Apr 2023 20:54:31 +0200 you wrote:
> Introduce page_pool support in veth driver in order to recycle pages in
> veth_convert_skb_to_xdp_buff routine and avoid reallocating the skb through
> the page allocator when we run a xdp program on the device and we receive
> skbs from the stack.
> 
> Change since v1:
> - remove page_pool checks in veth_convert_skb_to_xdp_buff() before allocating
>   the pages
> - recycle pages in the hot cache if build_skb fails in
>   veth_convert_skb_to_xdp_buff()
> 
> [...]

Here is the summary with links:
  - [v2,net-next,1/2] net: veth: add page_pool for page recycling
    https://git.kernel.org/netdev/net-next/c/0ebab78cbcbf
  - [v2,net-next,2/2] net: veth: add page_pool stats
    https://git.kernel.org/netdev/net-next/c/4fc418053ec7

You are awesome, thank you!