Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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.

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>

authored by

Dragos Tatulea and committed by
Jakub Kicinski
507ccb66 1a994031

+1
+1
tools/testing/selftests/drivers/net/hw/iou-zcrx.py
··· 151 151 if probe.ret == SKIP_CODE: 152 152 raise KsftSkipEx(probe.stdout.strip()) 153 153 154 + mp_clear_wait(cfg) 154 155 with bkg(rx_cmd, exit_wait=True): 155 156 wait_port_listen(cfg.port, proto="tcp") 156 157 cmd(tx_cmd, host=cfg.remote)