[V1] tests/vxlan: wait link status up
Checks
Context |
Check |
Description |
ci/Intel-dts-format-test |
success
|
Testing OK
|
ci/Intel-dts-suite-test |
success
|
Testing OK
|
ci/Intel-dts-pylama-test |
success
|
Testing OK
|
Commit Message
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@intel.com>
---
tests/TestSuite_vxlan.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Comments
On Thu, 16 Jun 2022 15:12:29 +0800, Jiale Song <songx.jiale@intel.com> wrote:
> 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@intel.com>
Applied, thanks
@@ -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"