Re: [bpf-next,v2] selftests/bpf: fix race in test_tcp_rtt test

2019-08-17 Thread Daniel Borkmann
On 8/16/19 7:08 PM, Petar Penkov wrote: From: Petar Penkov 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. B

Re: [bpf-next,v2] selftests/bpf: fix race in test_tcp_rtt test

2019-08-16 Thread Stanislav Fomichev
On 08/16, Petar Penkov wrote: > From: Petar Penkov > > 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

[bpf-next,v2] selftests/bpf: fix race in test_tcp_rtt test

2019-08-16 Thread Petar Penkov
From: Petar Penkov 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_ne