mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-11-10 20:48:12 +00:00
selftests: drv-net: split gro.py into one test per coalescing mode
gro.py runs its full set of cases three times over - against SW GRO, HW GRO and LRO. It's our test with the longest runtime. The 318 cases take 12m30s on mlx5 with a debug kernel. Bumping the timeout for all tests feels wrong when we can so easily split the GRO test by execution mode. Shorter runtime also helps retry just the failing portion / mode (we retry failing tests to try to detect flakes vs real failures). Move the main logic to gro_lib.py and add one program per mode - gro_sw.py, gro_hw.py and gro_lro.py, 102 cases each. Move PPPoE to a dedicated test. It has been tacked onto the tests in an ugly way, and it only runs against SW GRO anyway. Note that unfortunately this will case a rename of all test cases. The mode moves from the case name to the test name gro.py test.sw_ipv4_data_same becomes gro_sw.py test.ipv4_data_same Reviewed-by: Joe Damato <joe@dama.to> Reviewed-by: Nimrod Oren <noren@nvidia.com> Reviewed-by: Willem de Bruijn <willemb@google.com> Link: https://patch.msgid.link/20260901200728.2063720-3-kuba@kernel.org Signed-off-by: Jakub Kicinski <kuba@kernel.org>
This commit is contained in:
parent
889b0cca6b
commit
f225a7317c
8 changed files with 561 additions and 475 deletions
13
tools/testing/selftests/drivers/net/gro_hw.py
Executable file
13
tools/testing/selftests/drivers/net/gro_hw.py
Executable file
14
tools/testing/selftests/drivers/net/gro_lro.py
Executable file
14
tools/testing/selftests/drivers/net/gro_lro.py
Executable file
13
tools/testing/selftests/drivers/net/gro_sw.py
Executable file
13
tools/testing/selftests/drivers/net/gro_sw.py
Executable file
45
tools/testing/selftests/drivers/net/pppoe_gro.py
Executable file
45
tools/testing/selftests/drivers/net/pppoe_gro.py
Executable file
Loading…
Add table
Add a link
Reference in a new issue