selftests: net: explicitly wait for listener ready
authorPaolo Abeni <pabeni@redhat.com>
Wed, 24 Jan 2024 21:33:22 +0000 (22:33 +0100)
committerJakub Kicinski <kuba@kernel.org>
Thu, 25 Jan 2024 23:59:23 +0000 (15:59 -0800)
commit4acffb66630a0e4800880baa61a54ef18047ccd3
tree965e547493fc98430faa22c5c62678935754dfee
parentf5173fe3e13b2cbd25d0d73f40acd923d75add55
selftests: net: explicitly wait for listener ready

The UDP GRO forwarding test still hard-code an arbitrary pause
to wait for the UDP listener becoming ready in background.

That causes sporadic failures depending on the host load.

Replace the sleep with the existing helper waiting for the desired
port being exposed.

Fixes: a062260a9d5f ("selftests: net: add UDP GRO forwarding self-tests")
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Reviewed-by: Willem de Bruijn <willemb@google.com>
Link: https://lore.kernel.org/r/4d58900fb09cef42749cfcf2ad7f4b91a97d225c.1706131762.git.pabeni@redhat.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
tools/testing/selftests/net/udpgro_fwd.sh