linux/tools/testing/selftests/drivers/net/netdevsim
Ido Schimmel 8d22aea8af selftests: netdevsim: Xfail nexthop test on slow machines
A lot of test cases in the file are related to the idle and unbalanced
timers of resilient nexthop groups and these tests are reported to be
flaky on slow machines running debug kernels.

Rather than marking a lot of individual tests with xfail_on_slow(),
simply mark all the tests. Note that the test is stable on non-debug
machines and that with debug kernels we are mainly interested in the
output of various sanitizers in order to determine pass / fail.

Before:

 # make -C tools/testing/selftests KSFT_MACHINE_SLOW=yes \
 	TARGETS=drivers/net/netdevsim TEST_PROGS=nexthop.sh \
 	TEST_GEN_PROGS="" run_tests
 [...]
 # TEST: Bucket migration after idle timer (with delete)               [FAIL]
 #       Group expected to still be unbalanced
 [...]
 not ok 1 selftests: drivers/net/netdevsim: nexthop.sh # exit=1

After:

 # make -C tools/testing/selftests KSFT_MACHINE_SLOW=yes \
 	TARGETS=drivers/net/netdevsim TEST_PROGS=nexthop.sh \
 	TEST_GEN_PROGS="" run_tests
 [...]
 # TEST: Bucket migration after idle timer (with delete)               [XFAIL]
 #       Group expected to still be unbalanced
 [...]
 ok 1 selftests: drivers/net/netdevsim: nexthop.sh

Reported-by: Jakub Kicinski <kuba@kernel.org>
Closes: https://lore.kernel.org/netdev/20250729160609.02e0f157@kernel.org/
Reviewed-by: Petr Machata <petrm@nvidia.com>
Signed-off-by: Ido Schimmel <idosch@nvidia.com>
Link: https://patch.msgid.link/20250804114320.193203-1-idosch@nvidia.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2025-08-05 16:11:03 -07:00
..
config selftests: move macsec offload tests from net/rtnetlink to drivers/net/netdvesim 2024-11-11 14:12:21 -08:00
devlink_in_netns.sh selftests: test creating netdevsim inside network namespace 2019-10-05 16:34:15 -07:00
devlink_trap.sh selftests: devlink: add a warning for interfaces coming up 2022-12-16 10:21:37 +00:00
devlink.sh netdevsim: add fw_update_flash_chunk_time_ms debugfs knobs 2025-07-23 17:08:56 -07:00
ethtool-coalesce.sh selftests: add ring and coalesce selftests 2020-11-20 12:51:54 -08:00
ethtool-common.sh selftests: netdevsim: sprinkle more udevadm settle 2024-01-16 12:16:04 +01:00
ethtool-features.sh selftests: netdevsim: add a test checking ethtool features 2024-11-11 14:12:21 -08:00
ethtool-fec.sh selftests: net: Correct couple of spelling mistakes 2024-03-04 18:33:47 -08:00
ethtool-pause.sh selftests: extract common functions in ethtool-common.sh 2020-11-20 12:51:54 -08:00
ethtool-ring.sh selftests: add ring and coalesce selftests 2020-11-20 12:51:54 -08:00
fib_notifications.sh selftests: net: lib: Add kill_process 2024-11-15 16:39:19 -08:00
fib.sh selftests: netdevsim: Add test cases for route deletion failure 2022-07-29 12:21:02 +01:00
hw_stats_l3.sh selftests: netdevsim: Increase sleep time in hw_stats_l3.sh test 2022-05-18 14:06:50 +01:00
macsec-offload.sh selftests: netdevsim: add ethtool features to macsec offload tests 2024-11-11 14:12:21 -08:00
Makefile selftests: move macsec offload tests from net/rtnetlink to drivers/net/netdvesim 2024-11-11 14:12:21 -08:00
nexthop.sh selftests: netdevsim: Xfail nexthop test on slow machines 2025-08-05 16:11:03 -07:00
peer.sh selftests: netdevsim: improve lib.sh include in peer.sh 2025-06-18 18:30:51 -07:00
psample.sh selftests: devlink_lib: Fix bouncing of netdevsim DEVLINK_DEV 2021-06-08 14:39:07 -07:00
settings selftests: netdevsim: set test timeout to 10 minutes 2024-03-27 11:29:27 +00:00
tc-mq-visibility.sh selftests: net: Adapt ethtool mq tests to fix in qdisc graft 2025-01-15 09:28:51 +00:00
udp_tunnel_nic.sh netdevsim: remove udp_ports_sleep 2025-06-18 18:53:51 -07:00