Skip to content

Follow-ups to nk_qlease net selftests

Daniel Borkmann 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 6 repliesApplied 3/3
  2. v13 patches 2 repliesSuperseded

Changes in v2 from the cover letter

- Fixed ruff ambiguous variable name
- Fixed https://sashiko.dev/#/patchset/20260413114011.588162-1-daniel%40iogearbox.net
findings except the one in patch 1 since if something goes wrong there, then the test fails and socket gets cleaned up via cyclic
GC run anyway

Patches in v2 All 3 applied

#Subject and filesSizeRepliesApplied
1/3tools/ynl: Make YnlFamily closeable as a context managertools/net/ynl/pyynl/lib/ynl.py+10 -01 replyApplied
2/3selftests/net: Split netdevsim tests from HW tests in nk_qleasetools/testing/selftests/drivers/net/hw/nk_qlease.py tools/testing/selftests/net/Makefile tools/testing/selftests/net/nk_qlease.py+1169 -11421 replyApplied
3/3selftests/net: Add additional test coverage in nk_qleasetools/testing/selftests/net/nk_qlease.py+946 -51 replyApplied

Reviews trailers per patch

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

PatchNikolay Aleksandrov
1/3R-b
2/3R-b
3/3R-b

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

Read the v2 thread

Cover letter [PATCH net-next v2 0/3] Follow-ups to nk_qlease net selftests

This is a set of follow-ups addressing [0]:

- Split netdevsim tests from HW tests in nk_qlease and move the SW tests under selftests/net/
- Remove multiple ksft_run()s to fix the recently enforced hard-fail
- Move all the setup inside the test cases for the ones under selftests/net/ (I'll defer the HW ones to David)
- Add more test coverage related to queue leasing behavior and corner cases, so now we have 45 tests in nk_qlease.py with netdevsim which does not need special HW

[0] https://lore.kernel.org/netdev/[email protected]

v1->v2:
- Fixed ruff ambiguous variable name
- Fixed https://sashiko.dev/#/patchset/20260413114011.588162-1-daniel%40iogearbox.net
findings except the one in patch 1 since if something goes wrong there, then the test fails and socket gets cleaned up via cyclic
GC run anyway

Daniel Borkmann (3):
tools/ynl: Make YnlFamily closeable as a context manager selftests/net: Split netdevsim tests from HW tests in nk_qlease selftests/net: Add additional test coverage in nk_qlease

 tools/net/ynl/pyynl/lib/ynl.py                |   10 +
 .../selftests/drivers/net/hw/nk_qlease.py     | 1142 ---------
 tools/testing/selftests/net/Makefile          |    1 +
 tools/testing/selftests/net/nk_qlease.py      | 2109 +++++++++++++++++
 4 files changed, 2120 insertions(+), 1142 deletions(-)
 create mode 100755 tools/testing/selftests/net/nk_qlease.py
Signature · 1 line
2.43.0