Skip to content

Change BPF_TEST_RUN use the system page pool for live XDP frames

Toke Høiland-Jørgensen bpf lkml netdev 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest4 patches 11 repliesIn review
  2. v13 patches 17 repliesSuperseded

Changes in v2 from the cover letter

- Change the cookie that marks the page for recycling to be a 128-bit value (Paolo)
- Add a patch that removes the init_callback parameter from page pool (Olek)
- Carry forward review tags from v1

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4net: Register system page pool as an XDP memory modelinclude/linux/netdevice.h net/core/dev.c+13 -12 replies
2/4bpf: test_run: Use system page pool for XDP live frame modenet/bpf/test_run.c+71 -687 replies
3/4bpf: test_run: Fix cacheline alignment of live XDP frame data structuresnet/bpf/test_run.c+2 -20 replies
4/4page pool: Remove init_callback parameterinclude/net/page_pool/types.h net/core/page_pool.c+0 -81 reply

Reviews trailers per patch

All 4 patches have a Reviewed-by or Acked-by.

PatchAlexander LobakinIlias ApalodimasJohn Fastabend
1/4R-b T-b A-b
2/4R-b T-b
3/4R-b T-b
4/4R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v2 thread

Cover letter [PATCH net-next v2 0/4] Change BPF_TEST_RUN use the system page pool for live XDP frames

Now that we have a system-wide page pool, we can use that for the live frame mode of BPF_TEST_RUN (used by the XDP traffic generator), and avoid the cost of creating a separate page pool instance for each syscall invocation. See the individual patches for more details.

This series targets net-next because it depends on this series of Lorenzo's, that adds a global system page pool:

https://lore.kernel.org/r/[email protected]

Changelog:
v2:
- Change the cookie that marks the page for recycling to be a 128-bit value (Paolo)
- Add a patch that removes the init_callback parameter from page pool (Olek)
- Carry forward review tags from v1

Toke Høiland-Jørgensen (4):
net: Register system page pool as an XDP memory model
bpf: test_run: Use system page pool for XDP live frame mode
bpf: test_run: Fix cacheline alignment of live XDP frame data
structures
page pool: Remove init_callback parameter

 include/linux/netdevice.h     |   1 +
 include/net/page_pool/types.h |   4 -
 net/bpf/test_run.c            | 143 +++++++++++++++++-----------------
 net/core/dev.c                |  13 +++-
 net/core/page_pool.c          |   4 -
 5 files changed, 86 insertions(+), 79 deletions(-)
Signature · 1 line
2.43.0