netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH bpf-next 0/6] selftests/xsk: Add tests for XDP tail adjustment in AF_XDP
@ 2025-02-20  8:41 Tushar Vyavahare
  2025-02-20  8:41 ` [PATCH bpf-next 1/6] selftests/xsk: Add packet stream replacement functions Tushar Vyavahare
                   ` (5 more replies)
  0 siblings, 6 replies; 13+ messages in thread
From: Tushar Vyavahare @ 2025-02-20  8:41 UTC (permalink / raw)
  To: bpf
  Cc: netdev, bjorn, magnus.karlsson, maciej.fijalkowski,
	jonathan.lemon, davem, kuba, pabeni, ast, daniel,
	tushar.vyavahare

This patch series adds tests to validate the XDP tail adjustment
functionality, focusing on its use within the AF_XDP context. The tests
verify dynamic packet size manipulation using the bpf_xdp_adjust_tail()
helper function, covering both single and multi-buffer scenarios.

---
Patch Summary:

1. Add functions to replace packet streams for ifobjects and test_spec.

2. Introduce xsk_xdp_adjust_tail to adjust packet tails dynamically.

3. Add userspace function to adjust packet tails using XDP program.

4. Add function to check if bpf_xdp_adjust_tail() is supported.

5. Add function to test packet resizing using bpf_xdp_adjust_tail.

6. Introduce test shrinking and growing packets using
   bpf_xdp_adjust_tail(), and cover multi-buffer scenarios when used with
   AF_XDP.
---

Tushar Vyavahare (6):
  selftests/xsk: Add packet stream replacement functions
  selftests/xsk: Add tail adjustment functionality to XDP
  selftests/xsk: Add testapp_xdp_adjust_tail function to userspace for
    packet tail adjustment
  selftests/xsk: Add support check for bpf_xdp_adjust_tail() helper in
    xskxceiver
  selftests/xsk: Implement packet resizing test with bpf_xdp_adjust_tail
  selftests/xsk: Add packet resizing tests with bpf_xdp_adjust_tail for
    AF_XDP

Signed-off-by: Tushar Vyavahare <tushar.vyavahare@intel.com>

 .../selftests/bpf/progs/xsk_xdp_progs.c       |  48 ++++++
 tools/testing/selftests/bpf/xsk_xdp_common.h  |   1 +
 tools/testing/selftests/bpf/xskxceiver.c      | 147 ++++++++++++++++--
 tools/testing/selftests/bpf/xskxceiver.h      |   2 +
 4 files changed, 183 insertions(+), 15 deletions(-)

-- 
2.34.1


^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2025-02-26 12:23 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-02-20  8:41 [PATCH bpf-next 0/6] selftests/xsk: Add tests for XDP tail adjustment in AF_XDP Tushar Vyavahare
2025-02-20  8:41 ` [PATCH bpf-next 1/6] selftests/xsk: Add packet stream replacement functions Tushar Vyavahare
2025-02-20 17:45   ` Stanislav Fomichev
2025-02-25 15:57     ` Vyavahare, Tushar
2025-02-20  8:41 ` [PATCH bpf-next 2/6] selftests/xsk: Add tail adjustment functionality to XDP Tushar Vyavahare
2025-02-20 17:46   ` Stanislav Fomichev
2025-02-25 15:58     ` Vyavahare, Tushar
2025-02-25 22:37       ` Stanislav Fomichev
2025-02-26 12:23         ` Vyavahare, Tushar
2025-02-20  8:41 ` [PATCH bpf-next 3/6] selftests/xsk: Add testapp_xdp_adjust_tail function to userspace for packet tail adjustment Tushar Vyavahare
2025-02-20  8:41 ` [PATCH bpf-next 4/6] selftests/xsk: Add support check for bpf_xdp_adjust_tail() helper in xskxceiver Tushar Vyavahare
2025-02-20  8:41 ` [PATCH bpf-next 5/6] selftests/xsk: Implement packet resizing test with bpf_xdp_adjust_tail Tushar Vyavahare
2025-02-20  8:41 ` [PATCH bpf-next 6/6] selftests/xsk: Add packet resizing tests with bpf_xdp_adjust_tail for AF_XDP Tushar Vyavahare

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).