]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
selftests: net: relocate gro and toeplitz tests to drivers/net
authorJakub Kicinski <kuba@kernel.org>
Thu, 20 Nov 2025 02:10:17 +0000 (18:10 -0800)
committerJakub Kicinski <kuba@kernel.org>
Fri, 21 Nov 2025 02:19:29 +0000 (18:19 -0800)
commit89268f7dbca1842cd38d3a4578ba7e3b6789c5ad
treea7bcd951435c8aab070fa37e78a0785b52bd1558
parent173227d7d6c4902a017ba9bbf3fb0d99f021f478
selftests: net: relocate gro and toeplitz tests to drivers/net

The GRO test can run on a real device or a veth.
The Toeplitz hash test can only run on a real device.
Move them from net/ to drivers/net/ and drivers/net/hw/ respectively.

There are two scripts which set up the environment for these tests
setup_loopback.sh and setup_veth.sh. Move those scripts to net/lib.
The paths to the setup files are a little ugly but they will be
deleted shortly.

toeplitz_client.sh is not a test in itself, but rather a helper
to send traffic, so add it to TEST_FILES rather than TEST_PROGS.

Reviewed-by: Petr Machata <petrm@nvidia.com>
Reviewed-by: Willem de Bruijn <willemb@google.com>
Link: https://patch.msgid.link/20251120021024.2944527-6-kuba@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
14 files changed:
tools/testing/selftests/drivers/net/.gitignore
tools/testing/selftests/drivers/net/Makefile
tools/testing/selftests/drivers/net/gro.c [moved from tools/testing/selftests/net/gro.c with 99% similarity]
tools/testing/selftests/drivers/net/gro.sh [moved from tools/testing/selftests/net/gro.sh with 95% similarity]
tools/testing/selftests/drivers/net/hw/.gitignore
tools/testing/selftests/drivers/net/hw/Makefile
tools/testing/selftests/drivers/net/hw/toeplitz.c [moved from tools/testing/selftests/net/toeplitz.c with 99% similarity]
tools/testing/selftests/drivers/net/hw/toeplitz.sh [moved from tools/testing/selftests/net/toeplitz.sh with 98% similarity]
tools/testing/selftests/drivers/net/hw/toeplitz_client.sh [moved from tools/testing/selftests/net/toeplitz_client.sh with 100% similarity]
tools/testing/selftests/net/.gitignore
tools/testing/selftests/net/Makefile
tools/testing/selftests/net/lib/Makefile
tools/testing/selftests/net/lib/setup_loopback.sh [moved from tools/testing/selftests/net/setup_loopback.sh with 100% similarity]
tools/testing/selftests/net/lib/setup_veth.sh [moved from tools/testing/selftests/net/setup_veth.sh with 100% similarity]