From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by dpdk.org (Postfix) with ESMTP id 0C4981B368 for ; Sun, 11 Feb 2018 03:03:18 +0100 (CET) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by fmsmga104.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 10 Feb 2018 18:03:17 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.46,493,1511856000"; d="scan'208";a="26406667" Received: from fmsmsx107.amr.corp.intel.com ([10.18.124.205]) by FMSMGA003.fm.intel.com with ESMTP; 10 Feb 2018 18:03:16 -0800 Received: from fmsmsx151.amr.corp.intel.com (10.18.125.4) by fmsmsx107.amr.corp.intel.com (10.18.124.205) with Microsoft SMTP Server (TLS) id 14.3.319.2; Sat, 10 Feb 2018 18:03:16 -0800 Received: from shsmsx104.ccr.corp.intel.com (10.239.4.70) by FMSMSX151.amr.corp.intel.com (10.18.125.4) with Microsoft SMTP Server (TLS) id 14.3.319.2; Sat, 10 Feb 2018 18:03:16 -0800 Received: from shsmsx103.ccr.corp.intel.com ([169.254.4.116]) by SHSMSX104.ccr.corp.intel.com ([169.254.5.125]) with mapi id 14.03.0319.002; Sun, 11 Feb 2018 10:03:14 +0800 From: "Liu, Yong" To: "Peng, Yuan" , "dts@dpdk.org" CC: "Peng, Yuan" Thread-Topic: [dts] [PATCH] tests: remove the data transmit between pf and vf of veb switch. Thread-Index: AQHToMQh4Zq4ZfLVx0CXI179ebhiYqOedqzQ Date: Sun, 11 Feb 2018 02:03:14 +0000 Message-ID: <86228AFD5BCD8E4EBFD2B90117B5E81E62F9DA6B@SHSMSX103.ccr.corp.intel.com> References: <1518084292-49358-1-git-send-email-yuan.peng@intel.com> In-Reply-To: <1518084292-49358-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: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiYmM5MzkyNTgtOWVhMS00YTc5LWJlMGItZWE0MjNlYWE2YWEyIiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX05UIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE3LjIuNS4xOCIsIlRydXN0ZWRMYWJlbEhhc2giOiJ3Z21mXC85RFFIZHlNNEVSRmRFUjA5S05BQlJGXC85NmJGMGduMGo4SkRaTW9VYW1cLzR3dFZWeVZXK2lvaHNtSHVDIn0= 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: remove the data transmit between pf and vf of veb switch. 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: Sun, 11 Feb 2018 02:03:19 -0000 Yuan, I think PF2VF and VF2PF still can work, only the statistic can't be tracked= from PF.=20 Can we still check the path from PF2VF by VF statistic? Thanks, Marvin > -----Original Message----- > From: dts [mailto:dts-bounces@dpdk.org] On Behalf Of Peng Yuan > Sent: Thursday, February 08, 2018 6:05 PM > To: dts@dpdk.org > Cc: Peng, Yuan > Subject: [dts] [PATCH] tests: remove the data transmit between pf and vf > of veb switch. >=20 > remove the data transmit between pf and vf of > test_VEB_switching_inter_vfs_and_pf which belongs to > TestSuite_veb_switch.py. > because pf doesn't count the packet from vf which is rooted > to itself. >=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