mirror of
https://github.com/openvswitch/ovs
synced 2025-09-03 07:45:30 +00:00
system-dpdk: Improve vhost-user ping tests reliability.
Instead of waiting 10 seconds for testpmd to start, this patch makes use of OVS_WAIT_UNTIL() macro to wait for the virtio device readiness notification in ovs-vswitchd logs. Signed-off-by: Maxime Coquelin <maxime.coquelin@redhat.com> Acked-by: Aaron Conole <aconole@redhat.com> Signed-off-by: Ilya Maximets <i.maximets@ovn.org>
This commit is contained in:
committed by
Ilya Maximets
parent
4f19a78a61
commit
18db7ec5eb
@@ -120,8 +120,7 @@ tail -f /dev/null | dpdk-testpmd --socket-mem="$(cat NUMA_NODE)" --no-pci\
|
||||
--vdev="net_tap0,iface=tap0" --file-prefix page0 \
|
||||
--single-file-segments -- -a >$OVS_RUNDIR/testpmd-dpdkvhostuser0.log 2>&1 &
|
||||
|
||||
dnl Give settling time to the testpmd processes - NOTE: this is bad form.
|
||||
sleep 10
|
||||
OVS_WAIT_UNTIL([grep "virtio is now ready for processing" ovs-vswitchd.log])
|
||||
|
||||
dnl Move the tap devices to the namespaces
|
||||
AT_CHECK([ps aux | grep testpmd], [], [stdout], [stderr])
|
||||
@@ -196,8 +195,7 @@ tail -f /dev/null | dpdk-testpmd --socket-mem="$(cat NUMA_NODE)" --no-pci\
|
||||
--vdev="net_tap0,iface=tap0" --file-prefix page0 \
|
||||
--single-file-segments -- -a >$OVS_RUNDIR/testpmd-dpdkvhostuserclient0.log 2>&1 &
|
||||
|
||||
dnl Give settling time to the testpmd processes - NOTE: this is bad form.
|
||||
sleep 10
|
||||
OVS_WAIT_UNTIL([grep "virtio is now ready for processing" ovs-vswitchd.log])
|
||||
|
||||
dnl Move the tap devices to the namespaces
|
||||
AT_CHECK([ps aux | grep testpmd], [], [stdout], [stderr])
|
||||
|
Reference in New Issue
Block a user