]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
selftests: drv-net: rss: Add retries to test_rss_key_indir to reduce flakes
authorDimitri Daskalakis <dimitri.daskalakis1@gmail.com>
Mon, 9 Mar 2026 20:42:15 +0000 (13:42 -0700)
committerJakub Kicinski <kuba@kernel.org>
Wed, 11 Mar 2026 02:01:51 +0000 (19:01 -0700)
commit690043b95c1804cccce8ae6a6677a6b5de33ca77
tree6ab4a76c0927c3378a6e421b283e6bb87174c47b
parent7da62262ec96a4b345d207b6bcd2ddf5231b7f7d
selftests: drv-net: rss: Add retries to test_rss_key_indir to reduce flakes

The test generates 16 flows, and verifies that traffic is distributed
across two queues via the NICs RSS indirection table. The likelihood of the
flows skewing to a single queue is high, so we retry sending traffic up to
3 times.

Alternatively, we could increase the number of generated flows. But
debug kernels may struggle to ramp this many flows.

During manual testing, the test passed for 10,000 consecutive runs.

Signed-off-by: Dimitri Daskalakis <dimitri.daskalakis1@gmail.com>
Reviewed-by: Pavan Chebbi <pavan.chebbi@broadcom.com>
Link: https://patch.msgid.link/20260309204215.2110486-1-dimitri.daskalakis1@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
tools/testing/selftests/drivers/net/hw/rss_ctx.py