diff options
author | Stefano Brivio <sbrivio@redhat.com> | 2022-07-07 16:39:09 +0200 |
---|---|---|
committer | Stefano Brivio <sbrivio@redhat.com> | 2022-07-14 01:31:28 +0200 |
commit | 4d777144fd214bf67153f1dfa8e1e7b52b44ae35 (patch) | |
tree | 498591cd5c7d874d5593f758370df25943ef33a9 /test/perf | |
parent | 27aec5911a8fd00068c6db8f1a73d61903488b0c (diff) | |
download | passt-4d777144fd214bf67153f1dfa8e1e7b52b44ae35.tar passt-4d777144fd214bf67153f1dfa8e1e7b52b44ae35.tar.gz passt-4d777144fd214bf67153f1dfa8e1e7b52b44ae35.tar.bz2 passt-4d777144fd214bf67153f1dfa8e1e7b52b44ae35.tar.lz passt-4d777144fd214bf67153f1dfa8e1e7b52b44ae35.tar.xz passt-4d777144fd214bf67153f1dfa8e1e7b52b44ae35.tar.zst passt-4d777144fd214bf67153f1dfa8e1e7b52b44ae35.zip |
test: Embed script for dhclient(8) in mbuto(1) profile
David reports that dhclient-script(8) on Fedora needs a number of
binaries that are not included in PROGS of the current mbuto profile,
and we would also need to include hostnamectl(1) there, which will
fail without a systemd init.
Embed a minimal script for dhclient(8) in the profile itself, written
to /sbin/dhclient-script at boot, to just check what we need to check
out of DHCP and DHCPv6 functionality.
While at it, drop busybox and logger from PROGS, as we don't need them,
and add hostname(1). While DHCP option 12 isn't supported yet by the
DHCP implementation in passt, we should probably add it soon.
Note: owing to the simplicity of this script, we now need to bring up
the interface before starting dhclient: add this in test scripts where
it's not the case yet.
Reported-by: David Gibson <david@gibson.dropbear.id.au>
Suggested-by: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
note that we need to bring up the interface before starting dhclient
Diffstat (limited to 'test/perf')
-rw-r--r-- | test/perf/passt_tcp | 2 | ||||
-rw-r--r-- | test/perf/passt_udp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/test/perf/passt_tcp b/test/perf/passt_tcp index c97178e..555e211 100644 --- a/test/perf/passt_tcp +++ b/test/perf/passt_tcp @@ -18,7 +18,7 @@ htools bc head sed seq # In this setup, virtio_net TX queue sometimes hangs, still under investigation def virtio_net_workaround -guest modprobe -r virtio_net; modprobe virtio_net napi_tx=1; dhclient -4; dhclient -6; sleep 3 +guest modprobe -r virtio_net; modprobe virtio_net napi_tx=1; ip link set dev eth0 up; dhclient -4; dhclient -6; sleep 3 endef test passt: throughput and latency diff --git a/test/perf/passt_udp b/test/perf/passt_udp index 5155099..b840d85 100644 --- a/test/perf/passt_udp +++ b/test/perf/passt_udp @@ -18,7 +18,7 @@ htools bc head sed # In this setup, virtio_net TX queue sometimes hangs, still under investigation def virtio_net_workaround -guest modprobe -r virtio_net; modprobe virtio_net napi_tx=1; dhclient -4; dhclient -6; sleep 3 +guest modprobe -r virtio_net; modprobe virtio_net napi_tx=1; ip link set dev eth0 up; dhclient -4; dhclient -6; sleep 3 endef test passt: throughput and latency |