[dts] [PATCH V1] tests/vf_packet_rxtx:disable promisc mode to forbid misc packets
zhang,yan
yanx.a.zhang at intel.com
Mon Apr 22 04:23:42 CEST 2019
Because some miscellaneous packets may appearing on the receiving port, so use command "set promisc all off" to forbid them
Signed-off-by: zhang,yan <yanx.a.zhang at intel.com>
---
tests/TestSuite_vf_packet_rxtx.py | 2 ++
1 file changed, 2 insertions(+)
diff --git a/tests/TestSuite_vf_packet_rxtx.py b/tests/TestSuite_vf_packet_rxtx.py
index 571b11e..8a8816d 100644
--- a/tests/TestSuite_vf_packet_rxtx.py
+++ b/tests/TestSuite_vf_packet_rxtx.py
@@ -134,6 +134,7 @@ class TestVfPacketRxtx(TestCase):
out = self.vm0_testpmd.start_testpmd(VM_CORES_MASK)
pmd_vf0_mac = self.vm0_testpmd.get_port_mac(port_id_0)
self.vm0_testpmd.execute_cmd('set fwd mac')
+ self.vm0_testpmd.execute_cmd("set promisc all off")
self.vm0_testpmd.execute_cmd('start')
time.sleep(2)
@@ -275,6 +276,7 @@ class TestVfPacketRxtx(TestCase):
self.vm0_testpmd.execute_cmd('show port info all')
pmd0_vf0_mac = self.vm0_testpmd.get_port_mac(port_id_0)
self.vm0_testpmd.execute_cmd('set fwd mac')
+ self.vm0_testpmd.execute_cmd("set promisc all off")
self.vm0_testpmd.execute_cmd('start')
time.sleep(2)
--
2.17.2
More information about the dts
mailing list