From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by dpdk.org (Postfix) with ESMTP id AA636235 for ; Tue, 26 Feb 2019 04:25:01 +0100 (CET) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga101.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 25 Feb 2019 19:25:00 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.58,413,1544515200"; d="scan'208";a="120796313" Received: from fmsmsx108.amr.corp.intel.com ([10.18.124.206]) by orsmga008.jf.intel.com with ESMTP; 25 Feb 2019 19:25:00 -0800 Received: from fmsmsx154.amr.corp.intel.com (10.18.116.70) by FMSMSX108.amr.corp.intel.com (10.18.124.206) with Microsoft SMTP Server (TLS) id 14.3.408.0; Mon, 25 Feb 2019 19:25:00 -0800 Received: from shsmsx103.ccr.corp.intel.com (10.239.4.69) by FMSMSX154.amr.corp.intel.com (10.18.116.70) with Microsoft SMTP Server (TLS) id 14.3.408.0; Mon, 25 Feb 2019 19:24:59 -0800 Received: from shsmsx101.ccr.corp.intel.com ([169.254.1.110]) by SHSMSX103.ccr.corp.intel.com ([169.254.4.194]) with mapi id 14.03.0415.000; Tue, 26 Feb 2019 11:24:58 +0800 From: "Tu, Lijuan" To: "Peng, Yuan" , "dts@dpdk.org" CC: "Peng, Yuan" Thread-Topic: [dts] [PATCH]tests: sync case to floating_veb_test_plan.rst Thread-Index: AQHUxRG3Jr13IeLQQUuZqAo7wWEVdKXxeyTA Date: Tue, 26 Feb 2019 03:24:57 +0000 Message-ID: <8CE3E05A3F976642AAB0F4675D0AD20E0BA2729F@SHSMSX101.ccr.corp.intel.com> References: <1550223476-8315-1-git-send-email-yuan.peng@intel.com> In-Reply-To: <1550223476-8315-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: dlp-product: dlpe-windows dlp-version: 11.0.400.15 dlp-reaction: no-action x-ctpclassification: CTP_NT x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiNDc5MjcyNjAtZGM4ZS00YzdlLTgxZWUtMWEwZjlhYTBhNmM0IiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX05UIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE3LjEwLjE4MDQuNDkiLCJUcnVzdGVkTGFiZWxIYXNoIjoibFBnNXhuTllacWFuY3VnNTRkeFVTTjFRY3F6bG5FWktycDljeVBYMXhGejRqUnhUbmlsUGZQN2g1dHFKRCtNbSJ9 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: sync case to floating_veb_test_plan.rst 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: Tue, 26 Feb 2019 03:25:02 -0000 Applied, thanks > -----Original Message----- > From: dts [mailto:dts-bounces@dpdk.org] On Behalf Of Peng Yuan > Sent: Friday, February 15, 2019 5:38 PM > To: dts@dpdk.org > Cc: Peng, Yuan > Subject: [dts] [PATCH]tests: sync case to floating_veb_test_plan.rst >=20 > Sync case to floating_veb_test_plan.rst >=20 > Signed-off-by: Peng Yuan >=20 > diff --git a/tests/TestSuite_floating_veb.py b/tests/TestSuite_floating_v= eb.py > index bf26f18..d5b2610 100644 > --- a/tests/TestSuite_floating_veb.py > +++ b/tests/TestSuite_floating_veb.py > @@ -256,12 +256,15 @@ class TestVEBSwitching(TestCase): > 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=3D 0, "VF0 can receive packet fr= om PF, the > floating VEB doesn't work") > - self.session_secondary.send_expect("quit", "# ") > - time.sleep(2) > - self.dut.send_expect("quit", "# ") > - time.sleep(2) >=20 > + def test_floating_VEB_inter_tester_vf(self): > + """ > + DPDK PF, then create 1VF, PF in the host running dpdk testpmd, > + send traffic from tester to VF0. > + In floating modeVF0 can't receive any packets; > + """ > #outside world ->VF > + self.setup_env(driver=3Dself.drivername, vf_num=3D1) > self.dut.send_expect("./%s/app/testpmd -c 0xf -n 4 --socket-mem > 1024,1024 -w %s,enable_floating_veb=3D1 --file-prefix=3Dtest1 -- -i --eth= - > peer=3D0,%s" % (self.target, self.pf_pci, self.vf0_mac), "testpmd>", 120) > self.dut.send_expect("set fwd mac", "testpmd>") > self.dut.send_expect("set promisc all on", "testpmd>") @@ -532,7= +535,7 > @@ class TestVEBSwitching(TestCase): >=20 > 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.vf= 0_mac, > "testpmd>") > - self.session_secondary.send_expect("set fwd mac", "testpmd>") > + self.session_secondary.send_expect("set fwd rxonly", > + "testpmd>") > self.session_secondary.send_expect("set promisc all off", "testp= md>") > self.session_secondary.send_expect("start", "testpmd>") > time.sleep(2) > @@ -550,7 +553,7 @@ class TestVEBSwitching(TestCase): > # tester->VF1 > 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[1].pci), "testpmd>", 120) > self.session_secondary.send_expect("mac_addr add 0 %s" % self.vf= 1_mac, > "testpmd>") > - self.session_secondary.send_expect("set fwd mac", "testpmd>") > + self.session_secondary.send_expect("set fwd rxonly", > + "testpmd>") > self.session_secondary.send_expect("set promisc all off", "testp= md>") > self.session_secondary.send_expect("start", "testpmd>") > time.sleep(2) > @@ -642,4 +645,3 @@ class TestVEBSwitching(TestCase): > for port_id in self.dut_ports: > port =3D self.dut.ports_info[port_id]['port'] > port.bind_driver(driver=3Dself.drivername) > - > -- > 2.5.0