]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
selftests: drv-net: iou-zcrx: wait for memory cleanup of probe run
authorDragos Tatulea <dtatulea@nvidia.com>
Thu, 5 Mar 2026 08:04:45 +0000 (10:04 +0200)
committerJakub Kicinski <kuba@kernel.org>
Fri, 6 Mar 2026 23:36:37 +0000 (15:36 -0800)
The large chunks test does a probe run of iou-zcrx before it runs the
actual test. After the probe run finishes, the context will still exist
until the deferred io_uring teardown. When running iou-zcrx the second
time, io_uring_register_ifq() can return -EEXIST due to the existence of
the old context.

The fix is simple: wait for the context teardown using the new
mp_clear_wait() utility before running the second instance of iou-zcrx.

Signed-off-by: Dragos Tatulea <dtatulea@nvidia.com>
Link: https://patch.msgid.link/20260305080446.897628-2-dtatulea@nvidia.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
tools/testing/selftests/drivers/net/hw/iou-zcrx.py

index 66dd496ec5cfeee643eeff08a3277e4ab92128af..e81724cb5542a068215be11c8d016488e2b91401 100755 (executable)
@@ -151,6 +151,7 @@ def test_zcrx_large_chunks(cfg) -> None:
     if probe.ret == SKIP_CODE:
         raise KsftSkipEx(probe.stdout.strip())
 
+    mp_clear_wait(cfg)
     with bkg(rx_cmd, exit_wait=True):
         wait_port_listen(cfg.port, proto="tcp")
         cmd(tx_cmd, host=cfg.remote)