diff options
author | Andrii Nakryiko <andriin@fb.com> | 2020-03-12 01:27:49 +0300 |
---|---|---|
committer | Alexei Starovoitov <ast@kernel.org> | 2020-03-13 22:49:51 +0300 |
commit | 4cd729fa022cb5142e5b65f25589af61c8148cf6 (patch) | |
tree | 5759fc33f51ed252abef521733f9e4b67fb2d560 /include/linux/bpf.h | |
parent | 2b5cf9fb74848fe5742a56e872e6847b79933c0b (diff) | |
download | linux-4cd729fa022cb5142e5b65f25589af61c8148cf6.tar.xz |
selftests/bpf: Make tcp_rtt test more robust to failures
Switch to non-blocking accept and wait for server thread to exit before
proceeding. I noticed that sometimes tcp_rtt server thread failure would
"spill over" into other tests (that would run after tcp_rtt), probably just
because server thread exits much later and tcp_rtt doesn't wait for it.
v1->v2:
- add usleep() while waiting on initial non-blocking accept() (Stanislav);
Fixes: 8a03222f508b ("selftests/bpf: test_progs: fix client/server race in tcp_rtt")
Signed-off-by: Andrii Nakryiko <andriin@fb.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Reviewed-by: Stanislav Fomichev <sdf@google.com>
Link: https://lore.kernel.org/bpf/20200311222749.458015-1-andriin@fb.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'include/linux/bpf.h')
0 files changed, 0 insertions, 0 deletions