From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 61194A056D; Tue, 3 Mar 2020 08:24:35 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 4AE111BFF4; Tue, 3 Mar 2020 08:24:35 +0100 (CET) Received: from mga06.intel.com (mga06.intel.com [134.134.136.31]) by dpdk.org (Postfix) with ESMTP id EEA142C02 for ; Tue, 3 Mar 2020 08:24:32 +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 orsmga104.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 02 Mar 2020 23:24:31 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.70,510,1574150400"; d="scan'208";a="263106208" Received: from fmsmsx103.amr.corp.intel.com ([10.18.124.201]) by fmsmga004.fm.intel.com with ESMTP; 02 Mar 2020 23:24:31 -0800 Received: from fmsmsx157.amr.corp.intel.com (10.18.116.73) by FMSMSX103.amr.corp.intel.com (10.18.124.201) with Microsoft SMTP Server (TLS) id 14.3.439.0; Mon, 2 Mar 2020 23:24:31 -0800 Received: from shsmsx108.ccr.corp.intel.com (10.239.4.97) by FMSMSX157.amr.corp.intel.com (10.18.116.73) with Microsoft SMTP Server (TLS) id 14.3.439.0; Mon, 2 Mar 2020 23:24:30 -0800 Received: from shsmsx101.ccr.corp.intel.com ([169.254.1.43]) by SHSMSX108.ccr.corp.intel.com ([169.254.8.235]) with mapi id 14.03.0439.000; Tue, 3 Mar 2020 15:24:28 +0800 From: "Tu, Lijuan" To: "Zhu, ShuaiX" , "dts@dpdk.org" CC: "Zhu, ShuaiX" Thread-Topic: [dts] [PATCH V2] tests/vm2vm_virtio_pmd:add create_eal_parameters function. Thread-Index: AQHV7dZDGewMY2Bi2Uq6TzzXGg1LKag2fdxg Date: Tue, 3 Mar 2020 07:24:27 +0000 Message-ID: <8CE3E05A3F976642AAB0F4675D0AD20E0BBE9279@SHSMSX101.ccr.corp.intel.com> References: <1582853558-66855-1-git-send-email-shuaix.zhu@intel.com> <1582853558-66855-6-git-send-email-shuaix.zhu@intel.com> In-Reply-To: <1582853558-66855-6-git-send-email-shuaix.zhu@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.2.0.6 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 V2] tests/vm2vm_virtio_pmd:add create_eal_parameters function. 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: , Errors-To: dts-bounces@dpdk.org Sender: "dts" Applied, thanks > -----Original Message----- > From: dts [mailto:dts-bounces@dpdk.org] On Behalf Of zhu,shuai > Sent: Friday, February 28, 2020 9:33 AM > To: dts@dpdk.org > Cc: Zhu, ShuaiX > Subject: [dts] [PATCH V2] tests/vm2vm_virtio_pmd:add > create_eal_parameters function. >=20 >=20 >=20 > Signed-off-by: zhu,shuai > --- > tests/TestSuite_vm2vm_virtio_pmd.py | 44 +++++++++++++---------------- > 1 file changed, 20 insertions(+), 24 deletions(-) >=20 > diff --git a/tests/TestSuite_vm2vm_virtio_pmd.py > b/tests/TestSuite_vm2vm_virtio_pmd.py > index c1703b9..5bc0d01 100644 > --- a/tests/TestSuite_vm2vm_virtio_pmd.py > +++ b/tests/TestSuite_vm2vm_virtio_pmd.py > @@ -60,6 +60,7 @@ class TestVM2VMVirtioPMD(TestCase): > self.virtio_user1 =3D None > self.flag_compiled =3D False > self.backup_speed =3D self.dut.skip_setup > + self.pci_info =3D self.dut.ports_info[0]['pci'] >=20 > def set_up(self): > """ > @@ -102,16 +103,13 @@ class TestVM2VMVirtioPMD(TestCase): > """ > launch the testpmd on vhost side > """ > - vhost_mask =3D utils.create_mask(self.cores_list[0:2]) > - self.command_line =3D self.dut.target + "/app/testpmd -c %s -n %= d " + \ > - "--socket-mem %s --legacy-mem --no-pci --file-prefix=3Dvhost= " + \ > - "--vdev 'net_vhost0,iface=3D%s/vhost-net0,queues=3D1' " + \ > - "--vdev 'net_vhost1,iface=3D%s/vhost-net1,queues=3D1' " + \ > - "-- -i --nb-cores=3D1 --txd=3D1024 --rxd=3D1024" > - > - self.command_line =3D self.command_line % ( > - vhost_mask, self.memory_channel, self.socket= _mem, > - self.base_dir, self.base_dir) > + vhost_mask =3D self.cores_list[0:2] > + testcmd =3D self.dut.target + "/app/testpmd " > + vdev1 =3D "--vdev 'net_vhost0,iface=3D%s/vhost-net0,queues=3D1' = " % > self.base_dir > + vdev2 =3D "--vdev 'net_vhost1,iface=3D%s/vhost-net1,queues=3D1' = " % > self.base_dir > + eal_params =3D self.dut.create_eal_parameters(cores=3Dvhost_mask= , > no_pci=3DTrue, prefix=3D'vhost', ports=3D[self.pci_info]) > + para =3D " -- -i --nb-cores=3D1 --txd=3D1024 --rxd=3D1024" > + self.command_line =3D testcmd + eal_params + vdev1 + vdev2 + par= a > self.vhost_user.send_expect(self.command_line, "testpmd> ", 30) > self.vhost_user.send_expect("set fwd mac", "testpmd> ", 30) > self.vhost_user.send_expect("start", "testpmd> ", 30) @@ -121,13 > +119,12 @@ class TestVM2VMVirtioPMD(TestCase): > launch the testpmd as virtio with vhost_net1 > """ > self.virtio_user1 =3D self.dut.new_session(suite=3D"virtio_user1= ") > - virtio_mask =3D utils.create_mask(self.cores_list[2:4]) > - command_line =3D self.dut.target + "/app/testpmd -c %s -n %d " += \ > - "--socket-mem %s --no-pci --file-prefix=3Dvirtio " + \ > - "--vdev=3Dnet_virtio_user1,mac=3D00:01:02:03:04:05,path=3D./= vhost- > net1,queues=3D1,%s " + \ > - "-- -i --nb-cores=3D1 --txd=3D1024 --rxd=3D1024 %s" > - command_line =3D command_line % (virtio_mask, self.memory_channe= l, > - self.socket_mem, path_mode, extern_param) > + virtio_mask =3D self.cores_list[2:4] > + testcmd =3D self.dut.target + "/app/testpmd " > + vdev =3D "--vdev=3Dnet_virtio_user1,mac=3D00:01:02:03:04:05,path= =3D./vhost- > net1,queues=3D1,%s " % path_mode > + eal_params =3D self.dut.create_eal_parameters(cores=3Dvirtio_mas= k, > no_pci=3DTrue, prefix=3D'virtio', ports=3D[self.pci_info]) > + para =3D " -- -i --nb-cores=3D1 --txd=3D1024 --rxd=3D1024 %s" % = extern_param > + command_line =3D testcmd + eal_params + vdev + para > self.virtio_user1.send_expect(command_line, 'testpmd> ', 30) > self.virtio_user1.send_expect('set fwd rxonly', 'testpmd> ', 30) > self.virtio_user1.send_expect('start', 'testpmd> ', 30) @@ -137,= 13 > +134,12 @@ class TestVM2VMVirtioPMD(TestCase): > launch the testpmd as virtio with vhost_net0 > """ > self.virtio_user0 =3D self.dut.new_session(suite=3D"virtio_user0= ") > - virtio_mask =3D utils.create_mask(self.cores_list[4:6]) > - command_line =3D self.dut.target + "/app/testpmd -c %s -n %d " += \ > - "--socket-mem %s --no-pci --file-prefix=3Dvirtio0 " + \ > - "--vdev=3Dnet_virtio_user0,mac=3D00:01:02:03:04:05,path=3D./= vhost- > net0,queues=3D1,%s " + \ > - "-- -i --nb-cores=3D1 --txd=3D1024 --rxd=3D1024 %s" > - command_line =3D command_line % (virtio_mask, self.memory_channe= l, > - self.socket_mem, path_mode, extern_param) > + virtio_mask =3D self.cores_list[4:6] > + testcmd =3D self.dut.target + "/app/testpmd " > + vdev =3D "--vdev=3Dnet_virtio_user0,mac=3D00:01:02:03:04:05,path= =3D./vhost- > net0,queues=3D1,%s " % path_mode > + eal_params =3D self.dut.create_eal_parameters(cores=3Dvirtio_mas= k, > no_pci=3DTrue, prefix=3D'virtio0', ports=3D[self.pci_info]) > + para =3D " -- -i --nb-cores=3D1 --txd=3D1024 --rxd=3D1024 %s" % = extern_param > + command_line =3D testcmd + eal_params + vdev + para > self.virtio_user0.send_expect(command_line, 'testpmd> ', 30) > self.virtio_user0.send_expect('set txpkts 2000,2000,2000,2000', > 'testpmd> ', 30) > self.virtio_user0.send_expect('set burst 1', 'testpmd> ', 30) > -- > 2.17.2