netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net-next V6 0/5] selftests: drv-net: Test XDP native support
@ 2025-07-19  8:30 Mohsin Bashir
  2025-07-19  8:30 ` [PATCH net-next V6 1/5] net: netdevsim: hook in XDP handling Mohsin Bashir
                   ` (5 more replies)
  0 siblings, 6 replies; 21+ messages in thread
From: Mohsin Bashir @ 2025-07-19  8:30 UTC (permalink / raw)
  To: netdev
  Cc: kuba, andrew+netdev, davem, edumazet, pabeni, shuah, horms,
	cratiu, noren, cjubran, mbloch, mohsin.bashr, jdamato, gal, sdf,
	ast, daniel, hawk, john.fastabend, nathan, nick.desaulniers+lkml,
	morbo, justinstitt, bpf, linux-kselftest, llvm

This patch series add tests to validate XDP native support for PASS,
DROP, ABORT, and TX actions, as well as headroom and tailroom adjustment.
For adjustment tests, validate support for both the extension and
shrinking cases across various packet sizes and offset values.

The pass criteria for head/tail adjustment tests require that at-least
one adjustment value works for at-least one packet size. This ensure
that the variability in maximum supported head/tail adjustment offset
across different drivers is being incorporated.

The results reported in this series are based on netdevsim. However, the
series is tested against multiple other drivers including fbnic.

Note: The XDP support for fbnic will be added later.
---
Change-log:
- Force checksum computation in netdevsim xdp hook
- Update checksum when updating packet for head/tail adjustment cases
- Use 1 as the minimum value for the data growth while adjusting tail

V5: https://lore.kernel.org/netdev/20250715210553.1568963-6-mohsin.bashr@gmail.com
V4: https://lore.kernel.org/netdev/20250714210352.1115230-1-mohsin.bashr@gmail.com
V3: https://lore.kernel.org/netdev/20250712002648.2385849-1-mohsin.bashr@gmail.com
V2: https://lore.kernel.org/netdev/20250710184351.63797-1-mohsin.bashr@gmail.com
V1: https://lore.kernel.org/netdev/20250709173707.3177206-1-mohsin.bashr@gmail.com

Jakub Kicinski (1):
  net: netdevsim: hook in XDP handling

Mohsin Bashir (4):
  selftests: drv-net: Test XDP_PASS/DROP support
  selftests: drv-net: Test XDP_TX support
  selftests: drv-net: Test tail-adjustment support
  selftests: drv-net: Test head-adjustment support

 drivers/net/netdevsim/netdev.c                |  21 +-
 tools/testing/selftests/drivers/net/Makefile  |   1 +
 tools/testing/selftests/drivers/net/xdp.py    | 656 ++++++++++++++++++
 .../selftests/net/lib/xdp_native.bpf.c        | 621 +++++++++++++++++
 4 files changed, 1298 insertions(+), 1 deletion(-)
 create mode 100755 tools/testing/selftests/drivers/net/xdp.py
 create mode 100644 tools/testing/selftests/net/lib/xdp_native.bpf.c

-- 
2.47.1


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

end of thread, other threads:[~2025-07-24  9:05 UTC | newest]

Thread overview: 21+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-07-19  8:30 [PATCH net-next V6 0/5] selftests: drv-net: Test XDP native support Mohsin Bashir
2025-07-19  8:30 ` [PATCH net-next V6 1/5] net: netdevsim: hook in XDP handling Mohsin Bashir
2025-07-19  8:30 ` [PATCH net-next V6 2/5] selftests: drv-net: Test XDP_PASS/DROP support Mohsin Bashir
2025-07-21 11:43   ` Nimrod Oren
2025-07-21 15:40     ` Jakub Kicinski
2025-07-21 18:34       ` Gal Pressman
2025-07-21 20:33         ` Jakub Kicinski
2025-07-22  7:21           ` Gal Pressman
2025-07-22 13:49             ` Jakub Kicinski
2025-07-22 15:03         ` Paolo Abeni
2025-07-23  6:17           ` Gal Pressman
2025-07-21 19:43     ` Martin KaFai Lau
2025-07-21 20:24       ` Jakub Kicinski
2025-07-19  8:30 ` [PATCH net-next V6 3/5] selftests: drv-net: Test XDP_TX support Mohsin Bashir
2025-07-19  8:30 ` [PATCH net-next V6 4/5] selftests: drv-net: Test tail-adjustment support Mohsin Bashir
2025-07-19  8:30 ` [PATCH net-next V6 5/5] selftests: drv-net: Test head-adjustment support Mohsin Bashir
2025-07-23  1:30 ` [PATCH net-next V6 0/5] selftests: drv-net: Test XDP native support patchwork-bot+netdevbpf
2025-07-23  7:11   ` Gal Pressman
2025-07-23 14:12     ` Jakub Kicinski
2025-07-23 16:01       ` Gal Pressman
2025-07-24  9:05         ` Simon Horman

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).