From: Toke Høiland-Jørgensen <toke@xxxxxxxxxx> Date: Thu, 15 Feb 2024 14:26:29 +0100 > 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. Tested xdp-trafficgen on my development tree[0], no regressions from the net-next with my patch which increases live frames PP size. Reviewed-by: Alexander Lobakin <aleksander.lobakin@xxxxxxxxx> Tested-by: Alexander Lobakin <aleksander.lobakin@xxxxxxxxx> (with some cosmetics like[1]) > > Toke Høiland-Jørgensen (3): > 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 > > include/linux/netdevice.h | 1 + > net/bpf/test_run.c | 138 +++++++++++++++++++------------------- > net/core/dev.c | 13 +++- > 3 files changed, 81 insertions(+), 71 deletions(-) > [0] https://github.com/alobakin/linux/commits/idpf-libie-new [1] https://github.com/alobakin/linux/commit/62b4cb03486a Thanks, Olek