mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-16 12:31:52 -04:00
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: Jakub Kicinski <kuba@kernel.org>
This commit is contained in:
@@ -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)
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -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
tools/testing/selftests/net/nk_qlease.py
Executable file
2109
tools/testing/selftests/net/nk_qlease.py
Executable file
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user