selftests/bpf: Drop get_port in test_tcp_check_syncookie
authorGeliang Tang <tanggeliang@kylinos.cn>
Sun, 5 May 2024 11:35:13 +0000 (19:35 +0800)
committerMartin KaFai Lau <martin.lau@kernel.org>
Thu, 9 May 2024 20:40:38 +0000 (13:40 -0700)
commit7abbf38cd8edb92bc72fe3405f8a0bf19f7761c2
tree00f58e7fa719f53892628b80a95ddd6be441ba67
parent65a3f0df44dd3db0f77e6ccff0a126969abc0da4
selftests/bpf: Drop get_port in test_tcp_check_syncookie

The arguments "addr" and "len" of run_test() have dropped. This makes
function get_port() useless. Drop it from test_tcp_check_syncookie_user.c.

Signed-off-by: Geliang Tang <tanggeliang@kylinos.cn>
Link: https://lore.kernel.org/r/a9b5c8064ab4cbf0f68886fe0e4706428b8d0d47.1714907662.git.tanggeliang@kylinos.cn
Signed-off-by: Martin KaFai Lau <martin.lau@kernel.org>
tools/testing/selftests/bpf/test_tcp_check_syncookie_user.c