Re: [PATCH bpf] bpf: selftest: Fix flaky tcp_hdr_options test when adding addr to lo

2020-10-14 Thread Andrii Nakryiko
On Tue, Oct 13, 2020 at 4:13 AM Martin KaFai Lau wrote: > > The tcp_hdr_options test adds a "::eB9F" addr to the lo dev. > However, this non loopback address will have a race on ipv6 dad > which may lead to EADDRNOTAVAIL error from time to time. > > Even nodad is used in the iproute2 command, ther

[PATCH bpf] bpf: selftest: Fix flaky tcp_hdr_options test when adding addr to lo

2020-10-12 Thread Martin KaFai Lau
The tcp_hdr_options test adds a "::eB9F" addr to the lo dev. However, this non loopback address will have a race on ipv6 dad which may lead to EADDRNOTAVAIL error from time to time. Even nodad is used in the iproute2 command, there is still a race in when the route will be added. This will then l