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 DDC8CA056D; Tue, 3 Mar 2020 08:24:45 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id D610B1BFF9; Tue, 3 Mar 2020 08:24:45 +0100 (CET) Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by dpdk.org (Postfix) with ESMTP id C4C862C02 for ; Tue, 3 Mar 2020 08:24:43 +0100 (CET) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga004.jf.intel.com ([10.7.209.38]) by fmsmga105.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 02 Mar 2020 23:24:42 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.70,510,1574150400"; d="scan'208";a="386664661" Received: from fmsmsx105.amr.corp.intel.com ([10.18.124.203]) by orsmga004.jf.intel.com with ESMTP; 02 Mar 2020 23:24:42 -0800 Received: from fmsmsx119.amr.corp.intel.com (10.18.124.207) by FMSMSX105.amr.corp.intel.com (10.18.124.203) with Microsoft SMTP Server (TLS) id 14.3.439.0; Mon, 2 Mar 2020 23:24:42 -0800 Received: from shsmsx153.ccr.corp.intel.com (10.239.6.53) by FMSMSX119.amr.corp.intel.com (10.18.124.207) with Microsoft SMTP Server (TLS) id 14.3.439.0; Mon, 2 Mar 2020 23:24:41 -0800 Received: from shsmsx101.ccr.corp.intel.com ([169.254.1.43]) by SHSMSX153.ccr.corp.intel.com ([169.254.12.96]) with mapi id 14.03.0439.000; Tue, 3 Mar 2020 15:24:39 +0800 From: "Tu, Lijuan" To: "Zhu, ShuaiX" , "dts@dpdk.org" CC: "Zhu, ShuaiX" Thread-Topic: [dts] [PATCH V2] tests/pvp_virtio_user_2M_hugepages:add create_eal_parameters function. Thread-Index: AQHV7dZLx2Ya3qnI+kucvTN6nIzqwKg2fekg Date: Tue, 3 Mar 2020 07:24:39 +0000 Message-ID: <8CE3E05A3F976642AAB0F4675D0AD20E0BBE929D@SHSMSX101.ccr.corp.intel.com> References: <1582853558-66855-1-git-send-email-shuaix.zhu@intel.com> <1582853558-66855-3-git-send-email-shuaix.zhu@intel.com> In-Reply-To: <1582853558-66855-3-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/pvp_virtio_user_2M_hugepages: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/pvp_virtio_user_2M_hugepages:add > create_eal_parameters function. >=20 >=20 >=20 > Signed-off-by: zhu,shuai > --- > .../TestSuite_pvp_virtio_user_2M_hugepages.py | 23 ++++++++----------- > 1 file changed, 9 insertions(+), 14 deletions(-) >=20 > diff --git a/tests/TestSuite_pvp_virtio_user_2M_hugepages.py > b/tests/TestSuite_pvp_virtio_user_2M_hugepages.py > index 5531e0b..9d2eaed 100644 > --- a/tests/TestSuite_pvp_virtio_user_2M_hugepages.py > +++ b/tests/TestSuite_pvp_virtio_user_2M_hugepages.py > @@ -61,9 +61,6 @@ class TestPVPVirtioWith2Mhuge(TestCase): >=20 > self.core_list_virtio_user =3D self.core_list[0:2] > self.core_list_vhost_user =3D self.core_list[2:4] > - self.core_mask_virtio_user =3D utils.create_mask(self.core_list_= virtio_user) > - self.core_mask_vhost_user =3D > utils.create_mask(self.core_list_vhost_user) > - self.mem_channels =3D self.dut.get_memory_channels() > self.dst_mac =3D self.dut.get_mac_address(self.dut_ports[0]) > self.header_size =3D HEADER_SIZE['eth'] + HEADER_SIZE['ip'] + > HEADER_SIZE['tcp'] > self.frame_sizes =3D [64, 128, 256, 512, 1024, 1518] @@ -77,6 +7= 4,7 @@ > class TestPVPVirtioWith2Mhuge(TestCase): > self.tester.send_expect('mkdir -p %s' % self.out_path, '# ') > # create an instance to set stream field setting > self.pktgen_helper =3D PacketGeneratorHelper() > + self.pci_info =3D self.dut.ports_info[0]['pci'] >=20 > def set_up(self): > """ > @@ -129,11 +127,10 @@ class TestPVPVirtioWith2Mhuge(TestCase): > """ > start testpmd on vhost > """ > - command_line_client =3D "%s/app/testpmd -c %s -n %d " + \ > - "--socket-mem 1024,1024 --file-prefix=3Dvh= ost " + \ > - "--vdev 'net_vhost0,iface=3Dvhost-net,queu= es=3D1' -- -i" > - command_line_client =3D command_line_client % (self.target, > - self.core_mask_vhost_user, self.mem_channels) > + testcmd =3D self.dut.target + "/app/testpmd " > + vdev =3D [r"'net_vhost0,iface=3Dvhost-net,queues=3D1'"] > + eal_params =3D > self.dut.create_eal_parameters(cores=3Dself.core_list_vhost_user, > prefix=3D'vhost', ports=3D[self.pci_info], vdevs=3Dvdev) > + command_line_client =3D testcmd + eal_params + " -- -i" > self.vhost_user.send_expect(command_line_client, "testpmd> ", 12= 0) > self.vhost_user.send_expect("start", "testpmd> ", 120) >=20 > @@ -141,12 +138,10 @@ class TestPVPVirtioWith2Mhuge(TestCase): > """ > start testpmd on virtio > """ > - command_line_user =3D "./%s/app/testpmd -n %d -c %s " + \ > - "--no-pci --socket-mem 1024,1024 " + \ > - "--file-prefix=3Dvirtio-user --single-file-s= egments " + \ > - "-- > vdev=3Dnet_virtio_user0,mac=3D00:11:22:33:44:10,path=3D./vhost-net,queues= =3D1 -- > -i" > - command_line_user =3D command_line_user % (self.target, > - self.mem_channels, self.core_mask_virtio_user) > + testcmd =3D self.dut.target + "/app/testpmd " > + vdev =3D " --single-file-segments -- > vdev=3Dnet_virtio_user0,mac=3D00:11:22:33:44:10,path=3D./vhost-net,queues= =3D1 -- > -i" > + eal_params =3D > self.dut.create_eal_parameters(cores=3Dself.core_list_virtio_user, no_pci= =3DTrue, > prefix=3D'virtio-user', ports=3D[self.pci_info]) > + command_line_user =3D testcmd + eal_params + vdev > self.virtio_user.send_expect(command_line_user, "testpmd> ", 120= ) > self.virtio_user.send_expect("start", "testpmd> ", 120) >=20 > -- > 2.17.2