selftests: drv-net: iou-zcrx: wait for memory cleanup of probe run
Subsystems (3)
PATCH 1/1 selftests: drv-net: iou-zcrx: wait for memory cleanup of probe run
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.
--- tools/testing/selftests/drivers/net/hw/iou-zcrx.py | 1 + 1 file changed, 1 insertion(+)
tools/testing/selftests/drivers/net/hw/iou-zcrx.py +1 -0
@@ -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)
Signature · 1 line
2.52.0
This patch was applied to netdev/net-next.git (main) by Jakub Kicinski <[email protected]>:
Hello:
This patch was applied to netdev/net-next.git (main) by Jakub Kicinski <[email protected]>:
Quoted 10 lines · On Thu, 5 Mar 2026 10:04:45 +0200 you wrote:
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_uringteardown. When running iou-zcrx the second time,io_uring_register_ifq()can return-EEXISTdue 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.[...]
Here is the summary with links:
- [net-next] selftests: drv-net: iou-zcrx: wait for memory cleanup of probe run
https://git.kernel.org/netdev/net-next/c/507ccb668f2d
You are awesome, thank you!
Signature · 2 lines
Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html