From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by dpdk.org (Postfix) with ESMTP id 7E2535A6A for ; Fri, 12 May 2017 10:17:03 +0200 (CEST) Received: from orsmga001.jf.intel.com ([10.7.209.18]) by fmsmga105.fm.intel.com with ESMTP; 12 May 2017 01:17:01 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.38,328,1491289200"; d="scan'208";a="1129429688" Received: from unknown (HELO dpdk-fedora20.icx.intel.com) ([10.240.176.135]) by orsmga001.jf.intel.com with ESMTP; 12 May 2017 01:17:00 -0700 From: Lijuan Tu To: dts@dpdk.org Cc: Lijuan Tu Date: Fri, 12 May 2017 16:18:13 +0800 Message-Id: <1494577095-45103-7-git-send-email-lijuanx.a.tu@intel.com> X-Mailer: git-send-email 1.9.3 In-Reply-To: <1494577095-45103-1-git-send-email-lijuanx.a.tu@intel.com> References: <1494577095-45103-1-git-send-email-lijuanx.a.tu@intel.com> Subject: [dts] [PATCH V1 6/8] test/vf_to_vf_nic_bridge: remove crc-strip parameter and filter misc packets. X-BeenThere: dts@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: test suite reviews and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 12 May 2017 08:17:04 -0000 Signed-off-by: Lijuan Tu --- tests/TestSuite_vf_to_vf_nic_bridge.py | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/tests/TestSuite_vf_to_vf_nic_bridge.py b/tests/TestSuite_vf_to_vf_nic_bridge.py index 065038a..b890be0 100644 --- a/tests/TestSuite_vf_to_vf_nic_bridge.py +++ b/tests/TestSuite_vf_to_vf_nic_bridge.py @@ -100,6 +100,7 @@ class TestVF2VFBridge(TestCase): if self.vm1 is not None: self.vm1.stop() self.vm1 = None + self.dut.virt_exit() if self.pf_port_for_vfs is not None: self.dut.destroy_sriov_vfs_by_port(self.pf_port_for_vfs) port = self.dut.ports_info[self.pf_port_for_vfs]['port'] @@ -155,10 +156,7 @@ class TestVF2VFBridge(TestCase): def test_2vf_d2d_pktgen_stream(self): self.vm0_ports = self.vm0_dut.get_ports('any') self.vm0_pmd = PmdOutput(self.vm0_dut) - if self.kdriver == "i40e": - self.vm0_pmd.start_testpmd('all', '--crc-strip') - else: - self.vm0_pmd.start_testpmd('all') + self.vm0_pmd.start_testpmd('all') self.vm0_pmd.execute_cmd('set fwd rxonly') self.vm0_pmd.execute_cmd('start') @@ -187,7 +185,6 @@ class TestVF2VFBridge(TestCase): self.vm0_dut.restore_interfaces() self.vm0_ports = self.vm0_dut.get_ports('any') vf0_intf = self.vm0_dut.ports_info[self.vm0_ports[0]]['intf'] - self.vm0_dut.send_expect('tcpdump -i %s -s 1000 ' % vf0_intf, 'tcpdump', 30) self.vm1_ports = self.vm1_dut.get_ports('any') self.prepare_pktgen(self.vm1_dut) @@ -201,6 +198,7 @@ class TestVF2VFBridge(TestCase): load = {} load['content'] = "'X'*46" self.generate_pcap_pkt(dst, src, load) + self.vm0_dut.send_expect('tcpdump -i %s -s 1000 "ether src %s and ether dst %s"' % (vf0_intf, src['ether'], dst['ether']), 'tcpdump', 30) self.send_stream_pktgen(self.vm1_dut) self.stop_stream_pktgen(self.vm1_dut) @@ -217,12 +215,11 @@ class TestVF2VFBridge(TestCase): def test_2vf_k2d_scapy_stream(self): self.vm0_ports = self.vm0_dut.get_ports('any') self.vm0_pmd = PmdOutput(self.vm0_dut) - if self.kdriver == "i40e": - self.vm0_pmd.start_testpmd('all', '--crc-strip') - else: - self.vm0_pmd.start_testpmd('all') + self.vm0_pmd.start_testpmd('all') self.vm0_pmd.execute_cmd('set fwd rxonly') self.vm0_pmd.execute_cmd('start') + # disable promisc to filter misc packets from tester. + self.vm0_pmd.execute_cmd('set promisc all off') self.vm0_pmd.execute_cmd('clear port stats all') self.vm1_ports = self.vm1_dut.get_ports('any') -- 1.9.3