[V1] tests/vxlan: wait link status up

Message ID 20220616071229.135754-1-songx.jiale@intel.com (mailing list archive)
State Accepted
Headers
Series [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

Jiale, SongX June 16, 2022, 7:12 a.m. UTC
  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

Tu, Lijuan June 21, 2022, 6:55 a.m. UTC | #1
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
  

Patch

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"