* [PATCH net-next] selftests: drv-net: iou-zcrx: wait for memory cleanup of probe run
@ 2026-03-05 8:04 Dragos Tatulea
2026-03-06 23:40 ` patchwork-bot+netdevbpf
0 siblings, 1 reply; 2+ messages in thread
From: Dragos Tatulea @ 2026-03-05 8:04 UTC (permalink / raw)
To: Jakub Kicinski, Andrew Lunn, David S. Miller, Eric Dumazet,
Paolo Abeni, Shuah Khan, Dragos Tatulea
Cc: netdev, linux-kselftest, linux-kernel
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.
Fixes: 27c4ab943882 ("selftests: drv-net: iou-zcrx: wait for memory provider cleanup")
Signed-off-by: Dragos Tatulea <dtatulea@nvidia.com>
---
tools/testing/selftests/drivers/net/hw/iou-zcrx.py | 1 +
1 file changed, 1 insertion(+)
diff --git a/tools/testing/selftests/drivers/net/hw/iou-zcrx.py b/tools/testing/selftests/drivers/net/hw/iou-zcrx.py
index 66dd496ec5cf..e81724cb5542 100755
--- a/tools/testing/selftests/drivers/net/hw/iou-zcrx.py
+++ b/tools/testing/selftests/drivers/net/hw/iou-zcrx.py
@@ -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)
--
2.52.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH net-next] selftests: drv-net: iou-zcrx: wait for memory cleanup of probe run
2026-03-05 8:04 [PATCH net-next] selftests: drv-net: iou-zcrx: wait for memory cleanup of probe run Dragos Tatulea
@ 2026-03-06 23:40 ` patchwork-bot+netdevbpf
0 siblings, 0 replies; 2+ messages in thread
From: patchwork-bot+netdevbpf @ 2026-03-06 23:40 UTC (permalink / raw)
To: Dragos Tatulea
Cc: kuba, andrew+netdev, davem, edumazet, pabeni, shuah, netdev,
linux-kselftest, linux-kernel
Hello:
This patch was applied to netdev/net-next.git (main)
by Jakub Kicinski <kuba@kernel.org>:
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_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.
>
> [...]
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!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2026-03-06 23:40 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-03-05 8:04 [PATCH net-next] selftests: drv-net: iou-zcrx: wait for memory cleanup of probe run Dragos Tatulea
2026-03-06 23:40 ` patchwork-bot+netdevbpf
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox