Netdev List
 help / color / mirror / Atom feed
* [PATCH net-next 0/2] selftests: drv-net: run XDP tests with both IP versions
@ 2026-07-02  6:23 Nimrod Oren
  2026-07-02  6:23 ` [PATCH net-next 1/2] selftests: drv-net: allow switching env IP version Nimrod Oren
  2026-07-02  6:23 ` [PATCH net-next 2/2] selftests: drv-net: xdp: run with both IP versions Nimrod Oren
  0 siblings, 2 replies; 3+ messages in thread
From: Nimrod Oren @ 2026-07-02  6:23 UTC (permalink / raw)
  To: Andrew Lunn, David S. Miller, Eric Dumazet, Jakub Kicinski,
	Paolo Abeni, Shuah Khan
  Cc: Alexei Starovoitov, Daniel Borkmann, Jesper Dangaard Brouer,
	John Fastabend, Stanislav Fomichev, Bobby Eshleman,
	Willem de Bruijn, Wei Wang, David Wei, Cosmin Ratiu, netdev,
	linux-kselftest, linux-kernel, bpf, Nimrod Oren

The driver selftest environment picks a single address family for tests
which use the generic address fields. When both IPv4 and IPv6 are
available it prefers IPv6, which can leave IPv4 paths untested and hide
IPv4-only bugs.

This happened recently in the XDP selftest, where an IPv4 checksum bug
was missed when IPv6 was also configured. XDP traffic handling has
IP-version-specific code paths, and the follow-up discussion concluded
that the XDP tests should run against both IP versions [1].

This series changes NetDrvEpEnv from exposing only the initially selected
address family to allowing tests to switch the generic address fields
between IP versions. xdp.py uses this to run the XDP traffic cases over
both IPv4 and IPv6. Test variants whose required IP version is not
configured are skipped.

[1] https://lore.kernel.org/20260518143138.74839bf9@kernel.org/

Nimrod Oren (2):
  selftests: drv-net: allow switching env IP version
  selftests: drv-net: xdp: run with both IP versions

 .../selftests/drivers/net/lib/py/env.py       | 27 ++++--
 tools/testing/selftests/drivers/net/xdp.py    | 94 +++++++++++++++----
 2 files changed, 97 insertions(+), 24 deletions(-)

-- 
2.45.0


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

end of thread, other threads:[~2026-07-02  6:24 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-07-02  6:23 [PATCH net-next 0/2] selftests: drv-net: run XDP tests with both IP versions Nimrod Oren
2026-07-02  6:23 ` [PATCH net-next 1/2] selftests: drv-net: allow switching env IP version Nimrod Oren
2026-07-02  6:23 ` [PATCH net-next 2/2] selftests: drv-net: xdp: run with both IP versions Nimrod Oren

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox