]> www.infradead.org Git - users/hch/misc.git/commitdiff
selftests: drv-net: rename queues check_xdp to check_xsk
authorJakub Kicinski <kuba@kernel.org>
Wed, 19 Feb 2025 23:49:56 +0000 (15:49 -0800)
committerJakub Kicinski <kuba@kernel.org>
Fri, 21 Feb 2025 01:58:25 +0000 (17:58 -0800)
The test is for AF_XDP, we refer to AF_XDP as XSK.

Acked-by: Stanislav Fomichev <sdf@fomichev.me>
Reviewed-by: Joe Damato <jdamato@fastly.com>
Tested-by: Joe Damato <jdamato@fastly.com>
Link: https://patch.msgid.link/20250219234956.520599-8-kuba@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
tools/testing/selftests/drivers/net/queues.py

index a49f1a146e28ce0006b0c177f912a267186114c1..9040baf7b726a88f2fc1d9c79a9a4a5822f4b6ee 100755 (executable)
@@ -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()