]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
tools/testing/selftests/bpf/test_tc_tunnel.sh: Fix wait for server bind
authorMarco Leogrande <leogrande@google.com>
Mon, 2 Dec 2024 20:45:30 +0000 (12:45 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 13 Mar 2025 11:50:00 +0000 (12:50 +0100)
commit3c99e59404f30afe96003d4ad5ec5d847220c025
treeb196affa59c73b9e94ed641e69fecb08624c8b46
parentb8583b54455cbec2fc038fa32b6700890b369815
tools/testing/selftests/bpf/test_tc_tunnel.sh: Fix wait for server bind

[ Upstream commit e2f0791124a1b6ca8d570110cbd487969d9d41ef ]

Commit f803bcf9208a ("selftests/bpf: Prevent client connect before
server bind in test_tc_tunnel.sh") added code that waits for the
netcat server to start before the netcat client attempts to connect to
it. However, not all calls to 'server_listen' were guarded.

This patch adds the existing 'wait_for_port' guard after the remaining
call to 'server_listen'.

Fixes: f803bcf9208a ("selftests/bpf: Prevent client connect before server bind in test_tc_tunnel.sh")
Signed-off-by: Marco Leogrande <leogrande@google.com>
Acked-by: Stanislav Fomichev <sdf@fomichev.me>
Link: https://lore.kernel.org/r/20241202204530.1143448-1-leogrande@google.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
tools/testing/selftests/bpf/test_tc_tunnel.sh