Skip to content

selftests: drv-net: split up gro.py

Jakub Kicinski linux-kselftest netdev 2 versions – Applied

Status from this message: This series was applied to netdev/net-next.git (main)

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest3 patches 0 repliesApplied 3/3
  2. v13 patches 6 repliesSuperseded

Changes in v2 from the cover letter

- [patch 2] reorder import lines to make ruff check happy
v1: https://lore.kernel.org/[email protected]

Patches in v2 All 3 applied

#Subject and filesSizeRepliesApplied
1/3selftests: drv-net: hw: rename gro_hw.py to gro_stats.pytools/testing/selftests/drivers/net/hw/Makefile tools/testing/selftests/drivers/net/hw/gro_stats.py+1 -10 repliesApplied
2/3selftests: drv-net: split gro.py into one test per coalescing modetools/testing/selftests/drivers/net/Makefile tools/testing/selftests/drivers/net/gro_hw.py tools/testing/selftests/drivers/net/gro_lib.py +4 more+125 -390 repliesApplied
3/3selftests: drv-net: bump the timeout to 15mintools/testing/selftests/drivers/net/settings+1 -10 repliesApplied

Reviews trailers per patch

All 3 patches have a Reviewed-by or Acked-by.

PatchJoe DamatoNimrod OrenWillem de Bruijn
1/3R-b R-b R-b
2/3R-b R-b R-b
3/3R-b R-b R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v2 thread

Cover letter [PATCH net-next v2 0/3] selftests: drv-net: split up gro.py

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.

We will likely add more subcases here as the time goes on, so it's time to start splitting it up. Long runtime wastes time on retries (if any of the 300+ cases fails we try to check if it's a real failure or flake an re-run the whole thing). It also forces us to increase timeout for the whole test suite.

v2:
- [patch 2] reorder import lines to make ruff check happy
v1: https://lore.kernel.org/[email protected]

Jakub Kicinski (3):
selftests: drv-net: hw: rename gro_hw.py to gro_stats.py
selftests: drv-net: split gro.py into one test per coalescing mode
selftests: drv-net: bump the timeout to 15min

 tools/testing/selftests/drivers/net/Makefile  |  9 ++-
 .../testing/selftests/drivers/net/hw/Makefile |  2 +-
 tools/testing/selftests/drivers/net/gro_hw.py | 13 ++++
 .../drivers/net/{gro.py => gro_lib.py}        | 68 +++++++++----------
 .../testing/selftests/drivers/net/gro_lro.py  | 14 ++++
 tools/testing/selftests/drivers/net/gro_sw.py | 13 ++++
 .../net/hw/{gro_hw.py => gro_stats.py}        |  0
 .../selftests/drivers/net/pppoe_gro.py        | 45 ++++++++++++
 tools/testing/selftests/drivers/net/settings  |  2 +-
 .../selftests/net/lib/ksft_setup_loopback.sh  |  2 +-
 10 files changed, 127 insertions(+), 41 deletions(-)
 create mode 100755 tools/testing/selftests/drivers/net/gro_hw.py
 rename tools/testing/selftests/drivers/net/{gro.py => gro_lib.py} (92%)
 mode change 100755 => 100644
 create mode 100755 tools/testing/selftests/drivers/net/gro_lro.py
 create mode 100755 tools/testing/selftests/drivers/net/gro_sw.py
 rename tools/testing/selftests/drivers/net/hw/{gro_hw.py => gro_stats.py} (100%)
 create mode 100755 tools/testing/selftests/drivers/net/pppoe_gro.py
Signature · 1 line
2.55.0