aboutgitcodebugslistschat
path: root/test/perf
diff options
context:
space:
mode:
authorDavid Gibson <david@gibson.dropbear.id.au>2024-10-18 12:35:52 +1100
committerStefano Brivio <sbrivio@redhat.com>2024-10-18 20:27:51 +0200
commit53176ca91d176ea15d8abf3b1429e43bc93e516c (patch)
tree9cb95b8eb757277016c3b9aac69b12382e8fa35b /test/perf
parent75b9c0feb0b54b040a8c49f160cfc2defe28c045 (diff)
downloadpasst-53176ca91d176ea15d8abf3b1429e43bc93e516c.tar
passt-53176ca91d176ea15d8abf3b1429e43bc93e516c.tar.gz
passt-53176ca91d176ea15d8abf3b1429e43bc93e516c.tar.bz2
passt-53176ca91d176ea15d8abf3b1429e43bc93e516c.tar.lz
passt-53176ca91d176ea15d8abf3b1429e43bc93e516c.tar.xz
passt-53176ca91d176ea15d8abf3b1429e43bc93e516c.tar.zst
passt-53176ca91d176ea15d8abf3b1429e43bc93e516c.zip
test: Wait for DAD on DHCPv6 addresses
After running dhclient -6 we expect the DHCPv6 assigned address to be immediately usable. That's true with the Fedora dhclient-script (and the upstream ISC DHCP one), however it's not true with the Debian dhclient-script. The Debian script can complete with the address still in "tentative" state, and the address won't be usable until Duplicate Address Detection (DAD) completes. That's arguably a bug in Debian (see link below), but for the time being we need to work around it anyway. We usually get away with this, because by the time we do anything where the address matters, DAD has completed. However, it's not robust, so we should explicitly wait for DAD to complete when we get an DHCPv6 address. Link: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1085231 Signed-off-by: David Gibson <david@gibson.dropbear.id.au> Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
Diffstat (limited to 'test/perf')
-rw-r--r--test/perf/passt_tcp2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/perf/passt_tcp b/test/perf/passt_tcp
index 089d953..5978c49 100644
--- a/test/perf/passt_tcp
+++ b/test/perf/passt_tcp
@@ -116,6 +116,8 @@ iperf3k ns
# Reducing MTU below 1280 deconfigures IPv6, get our address back
guest dhclient -6 -x
guest dhclient -6 __IFNAME__
+# Wait for DAD to complete
+guest while ip -j -6 addr show tentative | jq -e '.[].addr_info'; do sleep 0.1; done
tl TCP RR latency over IPv4: guest to host
lat -