diff options
| author | Jakub Sitnicki <[email protected]> | 2020-02-24 14:53:27 +0100 |
|---|---|---|
| committer | Alexei Starovoitov <[email protected]> | 2020-02-24 16:35:16 -0800 |
| commit | e0360423d0204eb22f97ed89ba56da496bb9a094 (patch) | |
| tree | 1c9c7e0962f45a2bddc71ce52d8c6a3ceb474b9e /tools/perf/scripts/python/sctop.py | |
| parent | 779e422d11985e408fc148f0cca0f4b403f6c5fa (diff) | |
selftests/bpf: Run SYN cookies with reuseport BPF test only for TCP
Currently we run SYN cookies test for all socket types and mark the test as
skipped if socket type is not compatible. This causes confusion because
skipped test might indicate a problem with the testing environment.
Instead, run the test only for the socket type which supports SYN cookies.
Also, switch to using designated initializers when setting up tests, so
that we can tweak only some test parameters, leaving the rest initialized
to default values.
Fixes: eecd618b4516 ("selftests/bpf: Mark SYN cookie test skipped for UDP sockets")
Reported-by: Alexei Starovoitov <[email protected]>
Signed-off-by: Jakub Sitnicki <[email protected]>
Signed-off-by: Alexei Starovoitov <[email protected]>
Acked-by: Martin KaFai Lau <[email protected]>
Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/sctop.py')
0 files changed, 0 insertions, 0 deletions