Skip to content

RFC xdp: introduce bulking for page_pool tx return path

Lorenzo Bianconi bpf netdev oe-kbuild-all 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest2 patches 2 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2net: xdp: introduce bulking for xdp tx return pathdrivers/net/ethernet/marvell/mvneta.c include/net/xdp.h net/core/xdp.c+65 -42 replies
2/2net: page_pool: add bulk support for ptr_ringinclude/net/page_pool.h net/core/page_pool.c net/core/xdp.c+64 -70 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [RFC 0/2] xdp: introduce bulking for page_pool tx return path

xdp_return_frame/xdp_return_frame_napi and page_pool_put_page are usually run inside the driver NAPI tx completion loop so it is possible batch them. Introduce bulking capability in xdp tx return path (XDP_TX and XDP_REDIRECT). Convert mvneta driver to xdp_return_frame_bulk APIs.

mvneta upstream code:
XDP_TX: ~296Kpps
XDP_REDIRECT: ~273Kpps

mvneta + xdp_return_frame_bulk APIs:
XDP_TX: ~303Kpps
XDP_REDIRECT: ~287Kpps

Lorenzo Bianconi (2):
net: xdp: introduce bulking for xdp tx return path
net: page_pool: add bulk support for ptr_ring

 drivers/net/ethernet/marvell/mvneta.c |  8 ++---
 include/net/page_pool.h               | 21 ++++++++++++
 include/net/xdp.h                     | 11 ++++++
 net/core/page_pool.c                  | 37 ++++++++++++++++++++
 net/core/xdp.c                        | 49 +++++++++++++++++++++++++++
 5 files changed, 122 insertions(+), 4 deletions(-)
Signature · 1 line
2.26.2