Skip to content

selftests: drv-net: gro: enable HW GRO and LRO testing

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. v3 Latest6 patches 0 repliesApplied 6/6
  2. v26 patches 8 repliesSuperseded

Changes in v3 from the cover letter

- patch 4 - s/tso/tcp-segmentation-offload/ for ethtool feature names
- patch 5 - explicitly skip LRO on netdevsim, it lies about support
- patch 6 - add enum for the flush_id test configs
v2: https://lore.kernel.org/[email protected]
- fix restoring all features
- apply the generic XDP hack selectively (print a msg when it happens)
- a lot of small tweaks and 4 extra patches
v1: https://lore.kernel.org/[email protected]

Patches in v3 All 6 applied

#Subject and filesSizeRepliesApplied
1/6selftests: net: py: teach ksft_pr() multi-line safetytools/testing/selftests/net/lib/py/ksft.py+19 -100 repliesApplied
2/6selftests: net: py: teach cmd() how to print itselftools/testing/selftests/net/lib/py/utils.py+23 -00 repliesApplied
3/6selftests: drv-net: gro: use cmd printtools/testing/selftests/drivers/net/gro.py+1 -20 repliesApplied
4/6selftests: drv-net: gro: improve feature configtools/testing/selftests/drivers/net/gro.py+36 -30 repliesApplied
5/6selftests: drv-net: gro: run the test against HW GRO and LROtools/testing/selftests/drivers/net/gro.py tools/testing/selftests/drivers/net/lib/py/env.py+58 -170 repliesApplied
6/6selftests: drv-net: gro: break out all individual test casestools/testing/selftests/drivers/net/gro.c tools/testing/selftests/drivers/net/gro.py+308 -1900 repliesApplied

Reviews trailers per patch

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

PatchPetr MachataWillem de Bruijn
1/6R-b
2/6R-b
3/6R-b
4/6R-b
5/6R-b
6/6R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v3 thread

Cover letter [PATCH net-next v3 0/6] selftests: drv-net: gro: enable HW GRO and LRO testing

Add support for running our existing GRO test against HW GRO and LRO implementation. The first 3 patches are just ksft lib nice-to-haves, and patch 4 cleans up the existing gro Python.

Patches 5 and 6 are of most practical interest. The support reconfiguring the NIC to disable SW GRO and enable HW GRO and LRO. Additionally last patch breaks up the existing GRO cases to track HW compliance at finer granularity.

v3:
- patch 4 - s/tso/tcp-segmentation-offload/ for ethtool feature names
- patch 5 - explicitly skip LRO on netdevsim, it lies about support
- patch 6 - add enum for the flush_id test configs
v2: https://lore.kernel.org/[email protected]
- fix restoring all features
- apply the generic XDP hack selectively (print a msg when it happens)
- a lot of small tweaks and 4 extra patches
v1: https://lore.kernel.org/[email protected]

Jakub Kicinski (6):
selftests: net: py: teach ksft_pr() multi-line safety
selftests: net: py: teach cmd() how to print itself
selftests: drv-net: gro: use cmd print
selftests: drv-net: gro: improve feature config
selftests: drv-net: gro: run the test against HW GRO and LRO
selftests: drv-net: gro: break out all individual test cases

 tools/testing/selftests/drivers/net/gro.c     | 433 ++++++++++--------
 tools/testing/selftests/drivers/net/gro.py    | 163 ++++++-
 .../selftests/drivers/net/lib/py/env.py       |   7 +-
 tools/testing/selftests/net/lib/py/ksft.py    |  29 +-
 tools/testing/selftests/net/lib/py/utils.py   |  23 +
 5 files changed, 439 insertions(+), 216 deletions(-)
Signature · 1 line
2.52.0