aboutsummaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/drivers/net/queues.py
diff options
context:
space:
mode:
authorBui Quang Minh <[email protected]>2025-04-25 07:10:15 +0000
committerJakub Kicinski <[email protected]>2025-04-28 22:49:10 +0000
commit59dd07db92c166ca3947d2a1bf548d57b7f03316 (patch)
treec3407383b30b94e456ad8b8433a29ba19f5667da /tools/testing/selftests/drivers/net/queues.py
parentMerge branch 'veth-qdisc-backpressure-and-qdisc-check-refactor' (diff)
downloadkernel-59dd07db92c166ca3947d2a1bf548d57b7f03316.tar.gz
kernel-59dd07db92c166ca3947d2a1bf548d57b7f03316.zip
selftests: net: move xdp_helper to net/lib
Move xdp_helper to net/lib to make it easier for other selftests to use the helper. Signed-off-by: Bui Quang Minh <[email protected]> Acked-by: Michael S. Tsirkin <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'tools/testing/selftests/drivers/net/queues.py')
-rwxr-xr-xtools/testing/selftests/drivers/net/queues.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/testing/selftests/drivers/net/queues.py b/tools/testing/selftests/drivers/net/queues.py
index 06abd3f233e1..236005290a33 100755
--- a/tools/testing/selftests/drivers/net/queues.py
+++ b/tools/testing/selftests/drivers/net/queues.py
@@ -26,13 +26,13 @@ def nl_get_queues(cfg, nl, qtype='rx'):
def check_xsk(cfg, nl, xdp_queue_id=0) -> None:
# Probe for support
- xdp = cmd(f'{cfg.test_dir / "xdp_helper"} - -', fail=False)
+ xdp = cmd(f'{cfg.net_lib_dir / "xdp_helper"} - -', fail=False)
if xdp.ret == 255:
raise KsftSkipEx('AF_XDP unsupported')
elif xdp.ret > 0:
raise KsftFailEx('unable to create AF_XDP socket')
- with bkg(f'{cfg.test_dir / "xdp_helper"} {cfg.ifindex} {xdp_queue_id}',
+ with bkg(f'{cfg.net_lib_dir / "xdp_helper"} {cfg.ifindex} {xdp_queue_id}',
ksft_wait=3):
rx = tx = False