[dts] [PATCH V1] tests/vf_to_vf_nic_bridge:disable promise mode to forbid misc packets

zhang,yan yanx.a.zhang at intel.com
Mon Apr 15 05:29:10 CEST 2019


There will be some miscellaneous packetss appearing on the receiving
port, and setting up command "set promisc all off" to forbidden packets

Signed-off-by: zhang,yan <yanx.a.zhang at intel.com>
---
 tests/TestSuite_vf_to_vf_nic_bridge.py | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/tests/TestSuite_vf_to_vf_nic_bridge.py b/tests/TestSuite_vf_to_vf_nic_bridge.py
index 356795a..15b2ff9 100644
--- a/tests/TestSuite_vf_to_vf_nic_bridge.py
+++ b/tests/TestSuite_vf_to_vf_nic_bridge.py
@@ -180,6 +180,7 @@ class TestVF2VFBridge(TestCase):
         self.vm0_pmd = PmdOutput(self.vm0_dut)
         self.vm0_pmd.start_testpmd('all')
         self.vm0_pmd.execute_cmd('set fwd rxonly')
+        self.vm0_pmd.execute_cmd("set promisc all off")
         self.vm0_pmd.execute_cmd('start')
 
         self.vm1_ports = self.vm1_dut.get_ports('any')
@@ -194,6 +195,7 @@ class TestVF2VFBridge(TestCase):
         load = {}
         load['content'] = "'X'*46"
         self.generate_pcap_pkt(dst, src, load)
+        self.vm0_pmd.execute_cmd('clear port stats all')
         self.send_stream_pktgen(self.vm1_dut)
         recv_num = self.vm0_pmd.get_pmd_stats(0)['RX-packets']
         time.sleep(1)
-- 
2.17.2



More information about the dts mailing list