passt/test/pasta
David Gibson 75b9c0feb0 test: Explicitly wait for DAD to complete on SLAAC addresses
Getting a SLAAC address takes a little while because the kernel must
complete Duplicate Address Detection (DAD) before marking the address as
ready.  In several places we have an explicit 'sleep 2' to wait for that
to complete.

Fixed length delays are never a great idea, although this one is pretty
solid.  Still, it would be better to explicitly wait for DAD to complete
in case of long delays (which might happen on slow emulated hosts, or with
heavy load), and to speed the tests up if DAD completes quicker.

Replace the fixed sleeps with a loop waiting for DAD to complete.  We do
this by looping waiting for all tentative addresses to disappear.

Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
2024-10-18 20:27:47 +02:00
..
dhcp netlink, test: Ignore deprecated addresses 2024-05-22 23:21:09 +02:00
ndp test: Explicitly wait for DAD to complete on SLAAC addresses 2024-10-18 20:27:47 +02:00
tcp passt: Relicense to GPL 2.0, or any later version 2023-04-06 18:00:33 +02:00
udp passt: Relicense to GPL 2.0, or any later version 2023-04-06 18:00:33 +02:00