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 663A81B848 for ; Thu, 8 Feb 2018 07:16:36 +0100 (CET) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by fmsmga105.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 07 Feb 2018 22:16:35 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.46,477,1511856000"; d="scan'208";a="28335468" Received: from fmsmsx103.amr.corp.intel.com ([10.18.124.201]) by fmsmga004.fm.intel.com with ESMTP; 07 Feb 2018 22:16:35 -0800 Received: from FMSMSX110.amr.corp.intel.com (10.18.116.10) by FMSMSX103.amr.corp.intel.com (10.18.124.201) with Microsoft SMTP Server (TLS) id 14.3.319.2; Wed, 7 Feb 2018 22:16:35 -0800 Received: from shsmsx151.ccr.corp.intel.com (10.239.6.50) by fmsmsx110.amr.corp.intel.com (10.18.116.10) with Microsoft SMTP Server (TLS) id 14.3.319.2; Wed, 7 Feb 2018 22:16:34 -0800 Received: from shsmsx103.ccr.corp.intel.com ([169.254.4.116]) by SHSMSX151.ccr.corp.intel.com ([169.254.3.116]) with mapi id 14.03.0319.002; Thu, 8 Feb 2018 14:16:32 +0800 From: "Liu, Yong" To: "Peng, Yuan" , "dts@dpdk.org" CC: "Peng, Yuan" Thread-Topic: [dts] [PATCH] tests: veb_switch remove transit between vf and pf Thread-Index: AQHTnx5iBklI58MU3Ue8VzkcOeyzVKOaCjog Date: Thu, 8 Feb 2018 06:16:31 +0000 Message-ID: <86228AFD5BCD8E4EBFD2B90117B5E81E62F9C3FD@SHSMSX103.ccr.corp.intel.com> References: <1517903140-42927-1-git-send-email-yuan.peng@intel.com> In-Reply-To: <1517903140-42927-1-git-send-email-yuan.peng@intel.com> Accept-Language: zh-CN, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiMGEyZGRhMTItYzUwNS00NGZlLThmZjgtNTFlYmM5Y2Q2MDBjIiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX05UIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE3LjIuNS4xOCIsIlRydXN0ZWRMYWJlbEhhc2giOiJxbUlEaEZBSkJKT1puc1dScmVzZTBMUExvSndidFlQbTdYVWNqdzJEcWRGVFRLanBqb1dNY0dsNGhKUVdMaCtkIn0= x-ctpclassification: CTP_NT dlp-product: dlpe-windows dlp-version: 11.0.0.116 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] tests: veb_switch remove transit between vf and pf 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: Thu, 08 Feb 2018 06:16:36 -0000 Yuan, Please give the brief introduction in the commit log about what was changed= in the suite. Thanks, Marvin > -----Original Message----- > From: dts [mailto:dts-bounces@dpdk.org] On Behalf Of Peng Yuan > Sent: Tuesday, February 06, 2018 3:46 PM > To: dts@dpdk.org > Cc: Peng, Yuan > Subject: [dts] [PATCH] tests: veb_switch remove transit between vf and pf >=20 > Signed-off-by: Peng Yuan >=20 > diff --git a/tests/TestSuite_veb_switch.py b/tests/TestSuite_veb_switch.p= y > index c1953e2..6e90745 100644 > --- a/tests/TestSuite_veb_switch.py > +++ b/tests/TestSuite_veb_switch.py > @@ -324,62 +324,10 @@ class TestVEBSwitching(TestCase): > """ > DPDK PF, then create 2VFs, PF in the host running dpdk testpmd, > VFs > running dpdk testpmd, VF1 send traffic to VF2, check if VF2 can > receive > - the packets. send tracfic from PF to VF1, ensure PF->VF1; send > traffic > - from VF1 to PF, ensure VF1->PF can work. > + the packets. send tracfic from tester to VF1, ensure outer > tester->VF1 > + can work. > """ > - # VF->PF > self.setup_env(driver=3Dself.drivername) > - self.dut.send_expect("./%s/app/testpmd -c 0xf -n 4 --socket-mem > 1024,1024 -w %s --file-prefix=3Dtest1 -- -i" % (self.target, self.pf_pci)= , > "testpmd>", 120) > - self.dut.send_expect("set fwd rxonly", "testpmd>") > - self.dut.send_expect("set promisc all off", "testpmd>") > - self.dut.send_expect("start", "testpmd>") > - time.sleep(2) > - self.session_secondary.send_expect("./%s/app/testpmd -c 0xf0 -n = 4 > --socket-mem 1024,1024 -w %s --file-prefix=3Dtest2 -- -i --eth-peer=3D0,%= s" % > (self.target, self.sriov_vfs_port[0].pci, self.pf_mac_address), "testpmd>= ", > 120) > - self.session_secondary.send_expect("set fwd txonly", "testpmd>") > - self.session_secondary.send_expect("set promisc all off", > "testpmd>") > - self.session_secondary.send_expect("start", "testpmd>") > - time.sleep(2) > - > - self.session_secondary.send_expect("stop", "testpmd>", 2) > - self.dut.send_expect("stop", "testpmd>", 2) > - > - vf0_tx_stats =3D self.veb_get_pmd_stats("second", 0, "tx") > - pf_rx_stats =3D self.veb_get_pmd_stats("first", 0, "rx") > - self.verify(vf0_tx_stats[0] !=3D 0, "no packet was sent by VF0") > - self.verify(pf_rx_stats[0] !=3D 0, "no packet was received by PF= ") > - self.verify(vf0_tx_stats[0]*0.5 < pf_rx_stats[0], "PF failed to > receive most packets from VF0") > - self.session_secondary.send_expect("quit", "# ") > - time.sleep(2) > - self.dut.send_expect("quit", "# ") > - time.sleep(2) > - > - #PF->VF > - self.dut.send_expect("./%s/app/testpmd -c 0xf -n 4 --socket-mem > 1024,1024 -w %s --file-prefix=3Dtest1 -- -i --eth-peer=3D0,%s" % (self.ta= rget, > self.pf_pci, self.vf0_mac), "testpmd>", 120) > - self.dut.send_expect("set fwd txonly", "testpmd>") > - self.dut.send_expect("set promisc all off", "testpmd>") > - > - self.session_secondary.send_expect("./%s/app/testpmd -c 0xf0 -n = 4 > --socket-mem 1024,1024 -w %s --file-prefix=3Dtest2 -- -i" % (self.target, > self.sriov_vfs_port[0].pci), "testpmd>", 120) > - self.session_secondary.send_expect("mac_addr add 0 %s" % > self.vf0_mac, "testpmd>") > - self.session_secondary.send_expect("set fwd rxonly", "testpmd>") > - self.session_secondary.send_expect("set promisc all off", > "testpmd>") > - self.session_secondary.send_expect("start", "testpmd>") > - time.sleep(2) > - self.dut.send_expect("start", "testpmd>") > - time.sleep(2) > - > - self.dut.send_expect("stop", "testpmd>", 2) > - self.session_secondary.send_expect("stop", "testpmd>", 2) > - > - vf0_rx_stats =3D self.veb_get_pmd_stats("second", 0, "rx") > - pf_tx_stats =3D self.veb_get_pmd_stats("first", 0, "tx") > - self.verify(pf_tx_stats[0] !=3D 0, "no packet was sent by PF") > - self.verify(vf0_rx_stats[0] !=3D 0, "no packet was received by V= F0") > - self.verify(vf0_rx_stats[0] > pf_tx_stats[0]*0.5, "VF0 failed to > receive most packets from PF") > - self.session_secondary.send_expect("quit", "# ") > - time.sleep(2) > - self.dut.send_expect("quit", "# ") > - time.sleep(2) > - > # tester->VF > self.dut.send_expect("./%s/app/testpmd -c 0xf -n 4 --socket-mem > 1024,1024 -w %s --file-prefix=3Dtest1 -- -i" % (self.target, self.pf_pci)= , > "testpmd>", 120) > self.dut.send_expect("set fwd mac", "testpmd>") > -- > 2.5.0