Skip to content

RFC net: veth: Optimizing page pool usage

Liang Chen netdev 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v3 RFC Latest2 patches 5 repliesIn review

Changes in v3 from the cover letter

- refactor the code to make it more readable
- make use of the napi skb cache for further optimization
- take the Page pool creation error handling patch out for separate submission

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2net: veth: Improving page pool recyclingdrivers/net/veth.c+56 -80 replies
2/2net: veth: Optimizing skb reuse in NAPI Contextdrivers/net/veth.c net/core/skbuff.c+5 -10 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v3 yet.

Read the v3 thread

Cover letter [RFC PATCH net-next v3 0/2] net: veth: Optimizing page pool usage

Page pool is supported for veth, but at the moment pages are not properly recyled for XDP_TX and XDP_REDIRECT. That prevents veth xdp from fully leveraging the advantages of the page pool. So this RFC patchset is mainly to make recycling work for those cases. With that in place, it can be further optimized by utilizing the napi skb cache. Detailed figures are presented in each commit message, and together they demonstrate a quite noticeable improvement.

Changes from v2:
- refactor the code to make it more readable
- make use of the napi skb cache for further optimization
- take the Page pool creation error handling patch out for separate submission

Liang Chen (2):
net: veth: Improving page pool recycling
net: veth: Optimizing skb reuse in NAPI Context

 drivers/net/veth.c | 66 ++++++++++++++++++++++++++++++++++++++++------
 net/core/skbuff.c  |  1 +
 2 files changed, 59 insertions(+), 8 deletions(-)
Signature · 1 line
2.40.1