]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
selftests/net: synchronize udpgro tests' tx and rx connection
authorLucas Karpinski <lkarpins@redhat.com>
Tue, 14 Nov 2023 15:11:31 +0000 (10:11 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 17 Oct 2024 13:11:49 +0000 (15:11 +0200)
commit5174a2aa22f0d391a94a52ef61def76f80095e15
tree5b5fe9dbadc956d33f52cdc5e73f394150b2d96f
parentfc1ec829bdf67f8cf64736701dd0d9fe54eeed1e
selftests/net: synchronize udpgro tests' tx and rx connection

[ Upstream commit 3bdd9fd29cb0f136b307559a19c107210ad5c314 ]

The sockets used by udpgso_bench_tx aren't always ready when
udpgso_bench_tx transmits packets. This issue is more prevalent in -rt
kernels, but can occur in both. Replace the hacky sleep calls with a
function that checks whether the ports in the namespace are ready for
use.

Suggested-by: Paolo Abeni <pabeni@redhat.com>
Signed-off-by: Lucas Karpinski <lkarpins@redhat.com>
Reviewed-by: Willem de Bruijn <willemb@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Stable-dep-of: 9d851dd4dab6 ("selftests: net: Remove executable bits from library scripts")
Signed-off-by: Sasha Levin <sashal@kernel.org>
tools/testing/selftests/net/net_helper.sh [new file with mode: 0755]
tools/testing/selftests/net/udpgro.sh
tools/testing/selftests/net/udpgro_bench.sh