aboutsummaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/drivers/net/queues.py
diff options
context:
space:
mode:
authorJakub Kicinski <[email protected]>2025-02-19 23:49:56 +0000
committerJakub Kicinski <[email protected]>2025-02-21 01:58:25 +0000
commit932a9249f71f88471045edd0c908f0683b10e88c (patch)
treee7e922a92856539f600a7ccf5c4280260cc4bc47 /tools/testing/selftests/drivers/net/queues.py
parentselftests: drv-net: improve the use of ksft helpers in XSK queue test (diff)
downloadkernel-932a9249f71f88471045edd0c908f0683b10e88c.tar.gz
kernel-932a9249f71f88471045edd0c908f0683b10e88c.zip
selftests: drv-net: rename queues check_xdp to check_xsk
The test is for AF_XDP, we refer to AF_XDP as XSK. Acked-by: Stanislav Fomichev <[email protected]> Reviewed-by: Joe Damato <[email protected]> Tested-by: Joe Damato <[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.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/tools/testing/selftests/drivers/net/queues.py b/tools/testing/selftests/drivers/net/queues.py
index a49f1a146e28..9040baf7b726 100755
--- a/tools/testing/selftests/drivers/net/queues.py
+++ b/tools/testing/selftests/drivers/net/queues.py
@@ -23,7 +23,8 @@ def nl_get_queues(cfg, nl, qtype='rx'):
return len([q for q in queues if q['type'] == qtype])
return None
-def check_xdp(cfg, nl, xdp_queue_id=0) -> None:
+
+def check_xsk(cfg, nl, xdp_queue_id=0) -> None:
# Probe for support
xdp = cmd(cfg.rpath("xdp_helper") + ' - -', fail=False)
if xdp.ret == 255:
@@ -116,7 +117,8 @@ def check_down(cfg, nl) -> None:
def main() -> None:
with NetDrvEnv(__file__, queue_count=100) as cfg:
- ksft_run([get_queues, addremove_queues, check_down, check_xdp], args=(cfg, NetdevFamily()))
+ ksft_run([get_queues, addremove_queues, check_down, check_xsk],
+ args=(cfg, NetdevFamily()))
ksft_exit()