linux/tools/testing/selftests/net/lib
Jakub Kicinski 57bb59ab6f selftests: net: bump default cmd() timeout to 20 seconds
We always used 5 sec as the default command timeout. But soon after
it was introduced, David effectively made us ignore the timeout
(it was passed to process.communicate() as the wrong argument).
Gal recently fixed that, but turns out the 5 sec is not enough
for a lot of tests and setups. The fix caused regressions.

In particular running reconfig commands (e.g. XDP attach) on mlx5
with 32 rings and 9k MTU, on a heavily-debug-enabled kernel takes
more than 5 sec. The XDP installation command will time out after
5 sec but since the sleeps in the kernel are non interruptible
the command finishes anyway, leaving the XDP program attached,
but with non-zero exit code. defer()ed cleanups are not installed,
breaking the environment for subsequent tests.

Since "install XDP" is a pretty normal command a "point fix"
does not seem appropriate. 32 rings is a fairly reasonable
config, too, so we should just increase the timeout to 20 sec.

There's no real reason behind the value of 20.

Fixes: 1cf2704242 ("net: selftest: add test for netdev netlink queue-get API")
Fixes: f0bd193166 ("selftests: net: fix timeout passed as positional argument to communicate()")
Reviewed-by: Pavan Chebbi <pavan.chebbi@broadcom.com>
Acked-by: Breno Leitao <leitao@debian.org>
Reviewed-by: Nimrod Oren <noren@nvidia.com>
Link: https://patch.msgid.link/20260629233348.2145841-1-kuba@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2026-06-30 16:54:37 -07:00
..
py selftests: net: bump default cmd() timeout to 20 seconds 2026-06-30 16:54:37 -07:00
sh selftests: defer: Introduce DEFER_PAUSE_ON_FAIL 2025-09-11 19:02:51 -07:00
.gitignore selftests: net: move gro to lib for HW vs SW reuse 2026-03-19 16:57:28 -07:00
csum.c selftests: net: csum: Fix printk format in recv_get_packet_csum_status() 2026-01-19 10:09:47 -08:00
gro.c selftests: drv-net: gro: signal over-coalescing more reliably 2026-06-09 12:24:04 +02:00
ksft_setup_loopback.sh selftests: net: remove old setup_* scripts 2025-11-20 18:19:31 -08:00
ksft.h selftests: net: Fix build warnings 2025-12-10 01:11:12 -08:00
Makefile selftests: net: move gro to lib for HW vs SW reuse 2026-03-19 16:57:28 -07:00
xdp_dummy.bpf.c selftests: drv-net: add xdp cases for ping.py 2025-03-10 13:31:12 -07:00
xdp_helper.c selftests: net: retry when bind returns EBUSY in xdp_helper 2025-04-28 15:49:10 -07:00
xdp_metadata.bpf.c selftests: drv-net: xdp: Add rss_hash metadata tests 2026-03-29 14:09:08 -07:00
xdp_native.bpf.c selftests: net: Fix checksums in xdp_native 2026-05-21 07:47:00 -07:00