aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/include/net/xdp_sock.h
diff options
context:
space:
mode:
authorPetar Penkov <ppenkov@google.com>2019-08-16 10:08:25 -0700
committerDaniel Borkmann <daniel@iogearbox.net>2019-08-17 23:16:25 +0200
commitfae55527ac1164b66bee983a4d82ade2bfedb332 (patch)
treeb0939375f0abb2c3e2b5688763cea97962316bdc /include/net/xdp_sock.h
parentlibbpf: relicense bpf_helpers.h and bpf_endian.h (diff)
downloadwireguard-linux-fae55527ac1164b66bee983a4d82ade2bfedb332.tar.xz
wireguard-linux-fae55527ac1164b66bee983a4d82ade2bfedb332.zip
selftests/bpf: fix race in test_tcp_rtt test
There is a race in this test between receiving the ACK for the single-byte packet sent in the test, and reading the values from the map. This patch fixes this by having the client wait until there are no more unacknowledged packets. Before: for i in {1..1000}; do ../net/in_netns.sh ./test_tcp_rtt; \ done | grep -c PASSED < trimmed error messages > 993 After: for i in {1..10000}; do ../net/in_netns.sh ./test_tcp_rtt; \ done | grep -c PASSED 10000 Fixes: b55873984dab ("selftests/bpf: test BPF_SOCK_OPS_RTT_CB") Signed-off-by: Petar Penkov <ppenkov@google.com> Reviewed-by: Stanislav Fomichev <sdf@google.com> Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Diffstat (limited to 'include/net/xdp_sock.h')
0 files changed, 0 insertions, 0 deletions