selftests: forwarding: Move several selftests
authorPetr Machata <petrm@nvidia.com>
Tue, 26 Mar 2024 16:54:32 +0000 (17:54 +0100)
committerJakub Kicinski <kuba@kernel.org>
Fri, 29 Mar 2024 01:03:42 +0000 (18:03 -0700)
commit40d269c000bda9fcd276a0412a9cebd3f6e344c5
tree86c154843ecc05a82db4a082585d9391c9921da4
parent0faa565bc4a708f4a81abfb6a4426c56609cfd2b
selftests: forwarding: Move several selftests

The tests in net/forwarding are generally expected to be HW-independent.
There are however several tests that, while not depending on any HW in
particular, nevertheless depend on being used on HW interfaces. Placing
these selftests to net/forwarding is confusing, because the selftest will
just report it can't be run on veth pairs. At the same time, placing them
to a particular driver's selftests subdirectory would be wrong.

Instead, add a new directory, drivers/net/hw, where these generic but HW
independent selftests should be placed. Move over several such tests
including one helper library.

Since typically these tests will not be expected to run, omit the directory
drivers/net/hw from the TARGETS list in selftests/Makefile. Retain a
Makefile in the new directory itself, so that a user can make -C into that
directory and act on those tests explicitly.

Cc: Roger Quadros <rogerq@kernel.org>
Cc: Tobias Waldekranz <tobias@waldekranz.com>
Cc: Danielle Ratson <danieller@nvidia.com>
Cc: Davide Caratti <dcaratti@redhat.com>
Cc: Johannes Nixdorf <jnixdorf-oss@avm.de>
Suggested-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Petr Machata <petrm@nvidia.com>
Link: https://lore.kernel.org/r/e11dae1f62703059e9fc2240004288ac7cc15756.1711464583.git.petrm@nvidia.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
22 files changed:
tools/testing/selftests/drivers/net/hw/Makefile [new file with mode: 0644]
tools/testing/selftests/drivers/net/hw/devlink_port_split.py [new file with mode: 0755]
tools/testing/selftests/drivers/net/hw/ethtool.sh [new file with mode: 0755]
tools/testing/selftests/drivers/net/hw/ethtool_extended_state.sh [new file with mode: 0755]
tools/testing/selftests/drivers/net/hw/ethtool_lib.sh [new file with mode: 0644]
tools/testing/selftests/drivers/net/hw/ethtool_mm.sh [new file with mode: 0755]
tools/testing/selftests/drivers/net/hw/ethtool_rmon.sh [new file with mode: 0755]
tools/testing/selftests/drivers/net/hw/hw_stats_l3.sh [new file with mode: 0755]
tools/testing/selftests/drivers/net/hw/hw_stats_l3_gre.sh [new file with mode: 0755]
tools/testing/selftests/drivers/net/hw/loopback.sh [new file with mode: 0755]
tools/testing/selftests/drivers/net/hw/settings [new file with mode: 0644]
tools/testing/selftests/net/Makefile
tools/testing/selftests/net/devlink_port_split.py [deleted file]
tools/testing/selftests/net/forwarding/Makefile
tools/testing/selftests/net/forwarding/ethtool.sh [deleted file]
tools/testing/selftests/net/forwarding/ethtool_extended_state.sh [deleted file]
tools/testing/selftests/net/forwarding/ethtool_lib.sh [deleted file]
tools/testing/selftests/net/forwarding/ethtool_mm.sh [deleted file]
tools/testing/selftests/net/forwarding/ethtool_rmon.sh [deleted file]
tools/testing/selftests/net/forwarding/hw_stats_l3.sh [deleted file]
tools/testing/selftests/net/forwarding/hw_stats_l3_gre.sh [deleted file]
tools/testing/selftests/net/forwarding/loopback.sh [deleted file]