diff options
author | David Gibson <david@gibson.dropbear.id.au> | 2024-11-06 12:44:14 +1100 |
---|---|---|
committer | Stefano Brivio <sbrivio@redhat.com> | 2024-11-07 12:47:34 +0100 |
commit | 910f4f91030141b7e2e65644dc9fe678cc57f640 (patch) | |
tree | c3e6ffb1e11cb195e8e19ca3181060abc4802202 | |
parent | 1699083f291ca8e639d0711eff59c61eecdf02c1 (diff) | |
download | passt-910f4f91030141b7e2e65644dc9fe678cc57f640.tar passt-910f4f91030141b7e2e65644dc9fe678cc57f640.tar.gz passt-910f4f91030141b7e2e65644dc9fe678cc57f640.tar.bz2 passt-910f4f91030141b7e2e65644dc9fe678cc57f640.tar.lz passt-910f4f91030141b7e2e65644dc9fe678cc57f640.tar.xz passt-910f4f91030141b7e2e65644dc9fe678cc57f640.tar.zst passt-910f4f91030141b7e2e65644dc9fe678cc57f640.zip |
test: Don't require 64-bit prefixes in perf tests
When determining the namespace's IPv6 address in the perf test setup, we
explicitly filter for addresses with a 64-bit prefix length. There's no
real reason we need that - as long as it's a global address we can use it.
I suspect this was copied without thinking from a similar example in the
NDP tests, where the 64-bit prefix length _is_ meaningful (though it's not
entirely clear if the handling is correct there either).
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
-rw-r--r-- | test/perf/pasta_tcp | 2 | ||||
-rw-r--r-- | test/perf/pasta_udp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/test/perf/pasta_tcp b/test/perf/pasta_tcp index d1ccf7d..88284b2 100644 --- a/test/perf/pasta_tcp +++ b/test/perf/pasta_tcp @@ -211,7 +211,7 @@ tr TCP throughput over IPv6: host to ns iperf3s ns 10002 nsout IFNAME ip -j link show | jq -rM '.[] | select(.link_type == "ether").ifname' -nsout ADDR6 ip -j -6 addr show|jq -rM '.[] | select(.ifname == "__IFNAME__").addr_info[] | select(.scope == "global" and .prefixlen == 64).local' +nsout ADDR6 ip -j -6 addr show|jq -rM '.[] | select(.ifname == "__IFNAME__").addr_info[] | select(.scope == "global").local' bw - bw - bw - diff --git a/test/perf/pasta_udp b/test/perf/pasta_udp index 544bf17..3d07091 100644 --- a/test/perf/pasta_udp +++ b/test/perf/pasta_udp @@ -196,7 +196,7 @@ tr UDP throughput over IPv6: host to ns iperf3s ns 10002 nsout IFNAME ip -j link show | jq -rM '.[] | select(.link_type == "ether").ifname' -nsout ADDR6 ip -j -6 addr show|jq -rM '.[] | select(.ifname == "__IFNAME__").addr_info[] | select(.scope == "global" and .prefixlen == 64).local' +nsout ADDR6 ip -j -6 addr show|jq -rM '.[] | select(.ifname == "__IFNAME__").addr_info[] | select(.scope == "global").local' iperf3 BW host __ADDR6__ 10002 __TIME__ __OPTS__ -b 8G -l 1472 bw __BW__ 0.3 0.5 iperf3 BW host __ADDR6__ 10002 __TIME__ __OPTS__ -b 12G -l 3972 |