]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
selftests/net: Use public NetDrvContEnv API in nk_qlease fixtures
authorDaniel Borkmann <daniel@iogearbox.net>
Sun, 14 Jun 2026 10:26:05 +0000 (12:26 +0200)
committerJakub Kicinski <kuba@kernel.org>
Tue, 16 Jun 2026 01:58:01 +0000 (18:58 -0700)
commit96fda937b4c170ae6164419f33434830423ce0e2
treef59577c76b716d6a7eebebea8b654d3cdea90d0c
parentbc5c25c8f684982d0363380e3490f626c68e0427
selftests/net: Use public NetDrvContEnv API in nk_qlease fixtures

Expose the netkit host ifname as a public attribute nk_host_ifname
(symmetric with the already-public nk_guest_ifname), rename _attach_bpf
to a public attach_bpf, and add a public detach_bpf helper that
encapsulates the tc-filter teardown bookkeeping. Switch the fixtures
to this public API. No functional change and keeps pylint happy.

Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Reviewed-by: Bobby Eshleman <bobbyeshleman@meta.com>
Link: https://patch.msgid.link/20260614102607.863838-3-daniel@iogearbox.net
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
tools/testing/selftests/drivers/net/hw/nk_qlease.py
tools/testing/selftests/drivers/net/lib/py/env.py