[dts] [PATCH V1] fix tx_vlan reset issue

xu,gang gangx.xu at intel.com
Fri Jan 26 10:15:01 CET 2018


before tx_vlan reset need stop port first

Signed-off-by: xu,gang <gangx.xu at intel.com>
---
 tests/TestSuite_vlan.py | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/tests/TestSuite_vlan.py b/tests/TestSuite_vlan.py
index dad5f7b..1e2076f 100644
--- a/tests/TestSuite_vlan.py
+++ b/tests/TestSuite_vlan.py
@@ -215,7 +215,10 @@ class TestVlan(TestCase):
 
         out = self.get_tcpdump_package()
         self.verify(self.vlan in out, "Vlan not found:" + str(out))
+        self.dut.send_expect("stop", "testpmd> ")
+        self.dut.send_expect("port stop all", "testpmd> ")
         self.dut.send_expect("tx_vlan reset %s" % dutTxPortId, "testpmd> ", 30)
+        self.dut.send_expect("port start all", "testpmd> ")
         self.dut.send_expect("stop", "testpmd> ", 30)
 
         if self.kdriver == "fm10k":
-- 
1.9.3



More information about the dts mailing list