Skip to content

add page_pool support for page recycling in veth driver

Lorenzo Bianconi bpf netdev 2 versions – Applied

Status from this message: This series was applied to netdev/net-next.git (main)

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest2 patches 11 repliesApplied 2/2
  2. v12 patches 2 repliesSuperseded

Changes in v2 from the cover letter

- 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()

Patches in v2 All 2 applied

#Subject and filesSizeRepliesApplied
1/2net: veth: add page_pool for page recyclingdrivers/net/Kconfig drivers/net/veth.c+45 -411 repliesApplied
2/2net: veth: add page_pool statsdrivers/net/Kconfig drivers/net/veth.c+18 -30 repliesApplied

Reviews trailers per patch

None of the 2 patches has a Reviewed-by or Acked-by.

PatchMaryam Tahhan
1/2T-b
2/2T-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

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

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(-)
Signature · 1 line
2.40.0