selftests/bpf: Mark SYN cookie test skipped for UDP sockets
Subsystems (5)
PATCH 1/1 selftests/bpf: Mark SYN cookie test skipped for UDP sockets
SYN cookie test with reuseport BPF doesn't make sense for UDP sockets. We don't run it but the test_progs test runner doesn't know about it. Mark the test as skipped so the test_progs can report correctly how many tests were skipped.
Fixes 7ee0d4e97b88 ("selftests/bpf: Switch reuseport tests for test_progs framework")
Reported-by Lorenz Bauer <[email protected]>
Signed-off-by Jakub Sitnicki <[email protected]>
--- tools/testing/selftests/bpf/prog_tests/select_reuseport.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
tools/testing/selftests/bpf/prog_tests/select_reuseport.c +3 -1
@@ -506,8 +506,10 @@ static void test_syncookie(int type, sa_family_t family) .pass_on_failure = 0, }; -if (type !=SOCK_STREAM ) +if (type !=SOCK_STREAM ) { +test__skip ();return ; + }/* * +1 for TCP-SYN and
Signature · 1 line
2.24.1
Quoted 8 lines · Jakub Sitnicki
SYN cookie test with reuseport BPF doesn't make sense for UDP sockets. We don't run it but the
test_progstest runner doesn't know about it. Mark the test as skipped so thetest_progscan report correctly how many tests were skipped.Fixes 7ee0d4e97b88 ("selftests/bpf: Switch reuseport tests for test_progs framework")Reported-by Lorenz Bauer <[email protected]>Signed-off-by Jakub Sitnicki <[email protected]>
Applied, thanks!