diff options
author | Mohsin Bashir <mohsin.bashr@gmail.com> | 2025-07-24 16:51:40 -0700 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2025-07-25 16:57:28 -0700 |
commit | d1f3dbad6f0dbac6266c6b6b450af2aefde8481f (patch) | |
tree | 5a09bb07386ba2c80aaf36c6a442c16bbb396912 /net/unix/af_unix.c | |
parent | 8020ca54a87733c03a14c937fc4f175db2484185 (diff) |
selftests: drv-net: Wait for bkg socat to start
Currently, UDP exchange is prone to failure when cmd attempt to send data
while socat in bkg is not ready. Since, the behavior is probabilistic, this
can result in flakiness for XDP tests. While testing
test_xdp_native_tx_mb() on netdevsim, a failure rate of around 1% in 500
500 iterations was observed.
Use wait_port_listen() to ensure that the bkg socat is started and ready to
receive before cmd start sending. With proposed changes, a re-run of the
same test passed 100% of time.
Signed-off-by: Mohsin Bashir <mohsin.bashr@gmail.com>
Link: https://patch.msgid.link/20250724235140.2645885-1-mohsin.bashr@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions