]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
selftests: net: remove old setup_* scripts
authorJakub Kicinski <kuba@kernel.org>
Thu, 20 Nov 2025 02:10:24 +0000 (18:10 -0800)
committerJakub Kicinski <kuba@kernel.org>
Fri, 21 Nov 2025 02:19:31 +0000 (18:19 -0800)
commitbd28e5bddc1a75089fd1c45bd58892d9399097c4
tree3fbb9ab8a3b3ab95fbe9982b5c3aa5e38d7118e3
parent358008f41d9b893f0c843cb8b941954e0acbf8ec
selftests: net: remove old setup_* scripts

gro.sh and toeplitz.sh used to source in one of two setup scripts
depending on whether the test was expected to be run against
veth or a real device. veth testing is replaced by netdevsim
and existing "remote endpoint" support in our Python tests.
Add a script which sets up loopback mode.

The usage is a little bit more complicated than running
the scripts used to be. Testing used to work like this:

  ./../gro.sh -i eth0 ...

now the "setup script" has to be run explicitly:

  NETIF=eth0 ./../ksft_setup_loopback.sh ./../gro.sh

But the functionality itself is retained.

Reviewed-by: Petr Machata <petrm@nvidia.com>
Reviewed-by: Willem de Bruijn <willemb@google.com>
Link: https://patch.msgid.link/20251120021024.2944527-13-kuba@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
tools/testing/selftests/net/lib/Makefile
tools/testing/selftests/net/lib/ksft_setup_loopback.sh [new file with mode: 0755]
tools/testing/selftests/net/lib/setup_loopback.sh [deleted file]
tools/testing/selftests/net/lib/setup_veth.sh [deleted file]