[dts] [PATCH V1] tests/vxlan: wait link status up
Jiale Song
songx.jiale at intel.com
Thu Jun 16 09:12:29 CEST 2022
the port status of some NICs changes slowly, so you should confirm that
the port link status is up before sending the packet.
Signed-off-by: Jiale Song <songx.jiale at intel.com>
---
tests/TestSuite_vxlan.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tests/TestSuite_vxlan.py b/tests/TestSuite_vxlan.py
index 159e06b2..c69d7903 100644
--- a/tests/TestSuite_vxlan.py
+++ b/tests/TestSuite_vxlan.py
@@ -611,6 +611,7 @@ class TestVxlan(TestCase):
config.outer_mac_dst = self.dut_port_mac
config.create_pcap()
+ self.pmdout.wait_link_status_up(self.dut_port)
# save the capture packet into pcap format
inst = self.tester.tcpdump_sniff_packets(self.recv_iface)
config.send_pcap(self.tester_iface)
@@ -869,7 +870,6 @@ class TestVxlan(TestCase):
self.enable_vxlan(self.dut_port)
self.enable_vxlan(self.recv_port)
- self.pmdout.wait_link_status_up(self.dut_port)
# check normal ipv6 packet
self.send_and_check(
outer_ip6_src="FE80:0:0:0:0:0:0:0", outer_ip6_dst="FE80:0:0:0:0:0:0:1"
--
2.25.1
More information about the dts
mailing list