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 33CA2A056D; Tue, 3 Mar 2020 06:41:49 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 2566A1C00E; Tue, 3 Mar 2020 06:41:49 +0100 (CET) Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by dpdk.org (Postfix) with ESMTP id 3661A2BB8 for ; Tue, 3 Mar 2020 06:41:47 +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 orsmga106.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 02 Mar 2020 21:41:46 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.70,510,1574150400"; d="scan'208";a="286881422" Received: from fmsmsx103.amr.corp.intel.com ([10.18.124.201]) by FMSMGA003.fm.intel.com with ESMTP; 02 Mar 2020 21:41:46 -0800 Received: from fmsmsx152.amr.corp.intel.com (10.18.125.5) by FMSMSX103.amr.corp.intel.com (10.18.124.201) with Microsoft SMTP Server (TLS) id 14.3.439.0; Mon, 2 Mar 2020 21:41:46 -0800 Received: from shsmsx107.ccr.corp.intel.com (10.239.4.96) by FMSMSX152.amr.corp.intel.com (10.18.125.5) with Microsoft SMTP Server (TLS) id 14.3.439.0; Mon, 2 Mar 2020 21:41:45 -0800 Received: from shsmsx101.ccr.corp.intel.com ([169.254.1.43]) by SHSMSX107.ccr.corp.intel.com ([169.254.9.232]) with mapi id 14.03.0439.000; Tue, 3 Mar 2020 13:41:43 +0800 From: "Tu, Lijuan" To: "Zhu, ShuaiX" , "dts@dpdk.org" CC: "Wang, Yinan" , "Zhu, ShuaiX" Thread-Topic: [dts] [PATCH V1] tests/pvp_virtio_user_4k_pages:add create_eal_parameters function. Thread-Index: AQHV7IUgOoHdJLI2b0K37WaEDciPU6g2Y8jg Date: Tue, 3 Mar 2020 05:41:42 +0000 Message-ID: <8CE3E05A3F976642AAB0F4675D0AD20E0BBE8F88@SHSMSX101.ccr.corp.intel.com> References: <1582708737-36706-1-git-send-email-shuaix.zhu@intel.com> <1582708737-36706-7-git-send-email-shuaix.zhu@intel.com> In-Reply-To: <1582708737-36706-7-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 V1] tests/pvp_virtio_user_4k_pages: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: Wednesday, February 26, 2020 5:19 PM > To: dts@dpdk.org > Cc: Wang, Yinan ; Zhu, ShuaiX > > Subject: [dts] [PATCH V1] tests/pvp_virtio_user_4k_pages:add > create_eal_parameters function. >=20 >=20 >=20 > Signed-off-by: zhu,shuai > --- > tests/TestSuite_pvp_virtio_user_4k_pages.py | 24 +++++++++------------ > 1 file changed, 10 insertions(+), 14 deletions(-) >=20 > diff --git a/tests/TestSuite_pvp_virtio_user_4k_pages.py > b/tests/TestSuite_pvp_virtio_user_4k_pages.py > index 95b5494..5e6f657 100644 > --- a/tests/TestSuite_pvp_virtio_user_4k_pages.py > +++ b/tests/TestSuite_pvp_virtio_user_4k_pages.py > @@ -65,9 +65,7 @@ class TestPvpVirtioUser4kPages(TestCase): > self.core_config, socket=3Dself.ports_socket) > 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.pci_info =3D self.dut.ports_info[0]['pci'] > self.dst_mac =3D self.dut.get_mac_address(self.dut_ports[0]) > self.frame_sizes =3D [64, 128, 256, 512, 1024, 1518] > self.logger.info("You can config packet_size in file %s.cfg," % > self.suite_name + \ @@ -131,12 +129,11 @@ class > TestPvpVirtioUser4kPages(TestCase): > """ > Start testpmd on vhost > """ > - command_line_client =3D "%s/app/testpmd -c %s -n %d " + \ > - "--file-prefix=3Dvhost -m 1024 --no-huge = " + \ > - "--vdev 'net_vhost0,iface=3Dvhost-net,queu= es=3D1' -- -i " + \ > - "--no-numa --socket-num=3D%d" > - command_line_client =3D command_line_client % (self.target, > - self.core_mask_vhost_user, self.mem_channels= , > self.ports_socket) > + testcmd =3D self.dut.target + "/app/testpmd " > + vdev =3D " -m 1024 --no-huge --vdev 'net_vhost0,iface=3Dvhost- > net,queues=3D1'" > + para =3D " -- -i --no-numa --socket-num=3D%d" % self.ports_socke= t > + eal_params =3D > self.dut.create_eal_parameters(cores=3Dself.core_list_vhost_user, > prefix=3D'vhost', ports=3D[self.pci_info]) > + command_line_client =3D testcmd + eal_params + vdev + para > self.vhost_user.send_expect(command_line_client, "testpmd> ", 12= 0) > self.vhost_user.send_expect("start", "testpmd> ", 120) >=20 > @@ -144,11 +141,10 @@ class TestPvpVirtioUser4kPages(TestCase): > """ > Start testpmd on virtio > """ > - command_line_user =3D "./%s/app/testpmd -n %d -c %s " + \ > - "--no-huge -m 1024 --file-prefix=3Dvirtio-us= er " + \ > - "-- > 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 " --no-huge -m 1024 -- > 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, > 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("set fwd mac", "testpmd> ", 120) > self.virtio_user.send_expect("start", "testpmd> ", 120) > -- > 2.17.2