Commit 2d7e20c9 authored by Jakub Kicinski's avatar Jakub Kicinski
Browse files

Merge branch 'follow-ups-to-nk_qlease-net-selftests'

Daniel Borkmann says:

====================
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
====================

Link: https://patch.msgid.link/20260413220809.604592-1-daniel@iogearbox.net


Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
parents 34e1a98f 1e822171
Loading
Loading
Loading
Loading
+10 −0
Original line number Diff line number Diff line
@@ -731,6 +731,16 @@ class YnlFamily(SpecFamily):
            bound_f = functools.partial(self._op, op_name)
            setattr(self, op.ident_name, bound_f)

    def close(self):
        if self.sock is not None:
            self.sock.close()
            self.sock = None

    def __enter__(self):
        return self

    def __exit__(self, exc_type, exc, tb):
        self.close()

    def ntf_subscribe(self, mcast_name):
        mcast_id = self.nlproto.get_mcast_id(mcast_name, self.mcast_groups)
+0 −1142

File changed.

Preview size limit exceeded, changes collapsed.

+1 −0
Original line number Diff line number Diff line
@@ -65,6 +65,7 @@ TEST_PROGS := \
	netdevice.sh \
	netns-name.sh \
	netns-sysctl.sh \
	nk_qlease.py \
	nl_netdev.py \
	nl_nlctrl.py \
	pmtu.sh \
+2109 −0

File added.

Preview size limit exceeded, changes collapsed.