From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by dpdk.org (Postfix) with ESMTP id D87E12BF1 for ; Fri, 23 Jun 2017 19:13:38 +0200 (CEST) Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by fmsmga102.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 23 Jun 2017 10:13:36 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.39,379,1493708400"; d="scan'208";a="871117723" Received: from fmsmsx105.amr.corp.intel.com ([10.18.124.203]) by FMSMGA003.fm.intel.com with ESMTP; 23 Jun 2017 10:13:36 -0700 Received: from shsmsx152.ccr.corp.intel.com (10.239.6.52) by FMSMSX105.amr.corp.intel.com (10.18.124.203) with Microsoft SMTP Server (TLS) id 14.3.319.2; Fri, 23 Jun 2017 10:13:36 -0700 Received: from shsmsx103.ccr.corp.intel.com ([169.254.4.116]) by SHSMSX152.ccr.corp.intel.com ([169.254.6.122]) with mapi id 14.03.0319.002; Sat, 24 Jun 2017 01:13:34 +0800 From: "Liu, Yong" To: "Xu, GangX" , "dts@dpdk.org" CC: "Xu, GangX" Thread-Topic: [dts] [PATCH V1] fix 2vf_k2d_scapy_stream miscellaneous package Thread-Index: AQHS5mlxk95vDYgzfUCs8UBYeGNi2qIyus3A Date: Fri, 23 Jun 2017 17:13:33 +0000 Message-ID: <86228AFD5BCD8E4EBFD2B90117B5E81E62E0D48C@SHSMSX103.ccr.corp.intel.com> References: <1497594394-7449-1-git-send-email-gangx.xu@intel.com> In-Reply-To: <1497594394-7449-1-git-send-email-gangx.xu@intel.com> Accept-Language: zh-CN, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-product: dlpe-windows dlp-version: 10.0.102.7 dlp-reaction: no-action x-originating-ip: [10.239.127.40] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [dts] [PATCH V1] fix 2vf_k2d_scapy_stream miscellaneous package 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, 23 Jun 2017 17:13:39 -0000 > -----Original Message----- > From: dts [mailto:dts-bounces@dpdk.org] On Behalf Of xu,gang > Sent: Thursday, June 15, 2017 11:27 PM > To: dts@dpdk.org > Cc: Xu, GangX > Subject: [dts] [PATCH V1] fix 2vf_k2d_scapy_stream miscellaneous package Please follow unified subject format, it should be "tests name: fix issue..= .".=20 Package should be packet. >=20 > check rx package src and dst to confirm rx correct package >=20 > Signed-off-by: xu,gang > --- > tests/TestSuite_vf_to_vf_nic_bridge.py | 17 +++++++++++------ > 1 file changed, 11 insertions(+), 6 deletions(-) >=20 > diff --git a/tests/TestSuite_vf_to_vf_nic_bridge.py > b/tests/TestSuite_vf_to_vf_nic_bridge.py > index b890be0..58142a3 100644 > --- a/tests/TestSuite_vf_to_vf_nic_bridge.py > +++ b/tests/TestSuite_vf_to_vf_nic_bridge.py > @@ -216,11 +216,6 @@ class TestVF2VFBridge(TestCase): > self.vm0_ports =3D self.vm0_dut.get_ports('any') > self.vm0_pmd =3D PmdOutput(self.vm0_dut) > 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') >=20 > self.vm1_ports =3D self.vm1_dut.get_ports('any') > self.vm1_dut.restore_interfaces() > @@ -231,10 +226,20 @@ class TestVF2VFBridge(TestCase): > pkt_content =3D 'Ether(dst=3D"%s", src=3D"%s")/IP()/Raw(load=3D"= X"*46)' % > \ > (dst_mac, src_mac) > self.vm1_dut.send_expect('scapy', '>>> ', 10) > + > + self.vm0_pmd.execute_cmd('set promisc all off') > + self.vm0_pmd.execute_cmd('set fwd rxonly') > + self.vm0_pmd.execute_cmd('set verbose 1') > + self.vm0_pmd.execute_cmd('start') > + > self.vm1_dut.send_expect('sendp([%s], iface=3D"%s", count=3D%d)'= % > (pkt_content, vf1_intf, SEND_PACKET), '>>> ', 30) > + > + out =3D self.vm0_dut.get_session_output(timeout=3D60) > + rx_packets =3D re.findall("src=3D%s - dst=3D%s" % (src_mac,dst_m= ac), > out) There should be one space between two parameters.=20 > + recv_num =3D len(rx_packets) > + > self.vm1_dut.send_expect('quit()', '# ', 10) > self.vm1_dut.bind_interfaces_linux(self.drivername) > - recv_num =3D self.vm0_pmd.get_pmd_stats(0)['RX-packets'] > self.vm0_pmd.execute_cmd('stop') > self.vm0_pmd.execute_cmd('quit', '# ') >=20 > -- > 1.9.3