]> git.ipfire.org Git - thirdparty/linux.git/commit
selftests: drv-net: replace the nsim ring test with a drv-net one
authorJakub Kicinski <kuba@kernel.org>
Wed, 29 Oct 2025 16:49:30 +0000 (09:49 -0700)
committerJakub Kicinski <kuba@kernel.org>
Fri, 31 Oct 2025 00:32:18 +0000 (17:32 -0700)
commitecca75ae5ae66d13f701c4a6523644d51946ddec
tree2b1b55adf90ed08c9af0e2a561a87e99ddf3152d
parent4920abacb1daf78fa7a4cd6d18f598ebced67ad1
selftests: drv-net: replace the nsim ring test with a drv-net one

We are trying to move away from netdevsim-only tests and towards
tests which can be run both against netdevsim and real drivers.

Replace the simple bash script we have for checking ethtool -g/-G
on netdevsim with a Python test tweaking those params as well
as channel count.

The new test is not exactly equivalent to the netdevsim one,
but real drivers don't often support random ring sizes,
let alone modifying max values via debugfs.

Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Link: https://patch.msgid.link/20251029164930.2923448-1-kuba@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
tools/testing/selftests/drivers/net/Makefile
tools/testing/selftests/drivers/net/netdevsim/Makefile
tools/testing/selftests/drivers/net/netdevsim/ethtool-ring.sh [deleted file]
tools/testing/selftests/drivers/net/ring_reconfig.py [new file with mode: 0755]