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 B0E80A056D; Tue, 3 Mar 2020 08:24:40 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id A3CCD1C011; Tue, 3 Mar 2020 08:24:40 +0100 (CET) Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) by dpdk.org (Postfix) with ESMTP id 1775A2C02 for ; Tue, 3 Mar 2020 08:24:38 +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 fmsmga107.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 02 Mar 2020 23:24:38 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.70,510,1574150400"; d="scan'208";a="263106237" Received: from fmsmsx103.amr.corp.intel.com ([10.18.124.201]) by fmsmga004.fm.intel.com with ESMTP; 02 Mar 2020 23:24:38 -0800 Received: from shsmsx105.ccr.corp.intel.com (10.239.4.158) 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:37 -0800 Received: from shsmsx101.ccr.corp.intel.com ([169.254.1.43]) by SHSMSX105.ccr.corp.intel.com ([169.254.11.144]) with mapi id 14.03.0439.000; Tue, 3 Mar 2020 15:24:35 +0800 From: "Tu, Lijuan" To: "Zhu, ShuaiX" , "dts@dpdk.org" CC: "Zhu, ShuaiX" Thread-Topic: [dts] [PATCH V2] tests/virtio_user_as_exceptional_path:add create_eal_parameters function. Thread-Index: AQHV7dZFztJZe4bVVkixk3Hv/IDA2ag2feSA Date: Tue, 3 Mar 2020 07:24:35 +0000 Message-ID: <8CE3E05A3F976642AAB0F4675D0AD20E0BBE9294@SHSMSX101.ccr.corp.intel.com> References: <1582853558-66855-1-git-send-email-shuaix.zhu@intel.com> <1582853558-66855-5-git-send-email-shuaix.zhu@intel.com> In-Reply-To: <1582853558-66855-5-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/virtio_user_as_exceptional_path: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/virtio_user_as_exceptional_path:add > create_eal_parameters function. >=20 >=20 >=20 > Signed-off-by: zhu,shuai > --- > ...stSuite_virtio_user_as_exceptional_path.py | 24 +++++++++---------- > 1 file changed, 11 insertions(+), 13 deletions(-) >=20 > diff --git a/tests/TestSuite_virtio_user_as_exceptional_path.py > b/tests/TestSuite_virtio_user_as_exceptional_path.py > index 3605900..c1af852 100644 > --- a/tests/TestSuite_virtio_user_as_exceptional_path.py > +++ b/tests/TestSuite_virtio_user_as_exceptional_path.py > @@ -48,7 +48,6 @@ class TestVirtioUserAsExceptionalPath(TestCase): > # Get and verify the ports > self.dut_ports =3D self.dut.get_ports() > self.verify(len(self.dut_ports) >=3D 1, "Insufficient ports for = testing") > - self.memory_channel =3D self.dut.get_memory_channels() > self.pci0 =3D self.dut.ports_info[0]['pci'] > pf_info =3D self.dut_ports[0] > netdev =3D self.dut.ports_info[pf_info]['port'] > @@ -112,12 +111,12 @@ class TestVirtioUserAsExceptionalPath(TestCase): > cores_config =3D '1S/%sC/1T' % cores_number > cores_list =3D self.dut.get_core_list(cores_config, socket=3Dsel= f.socket) > self.verify(len(cores_list) >=3D cores_number, "Failed to get co= res list") > - core_mask =3D utils.create_mask(cores_list[0:2]) > - self.testcmd =3D self.target + "/app/testpmd -c %s -n %d -w %s = --socket- > mem %s" \ > - + " --vdev=3Dvirtio_user0,mac=3D%s,path=3D/dev/v= host-net,"\ > - "queue_size=3D1024,queues=3D%s -- -i --rxd=3D102= 4 --txd=3D1024 %s" > - self.testcmd_start =3D self.testcmd % (core_mask, self.memory_ch= annel, > - self.pci0, self.socket_mem, self.virtio_mac, self.queue,= comment) > + core_mask =3D cores_list[0:2] > + testcmd =3D self.target + "/app/testpmd " > + vdev =3D "--vdev=3Dvirtio_user0,mac=3D%s,path=3D/dev/vhost-net,"= % > self.virtio_mac > + eal_params =3D self.dut.create_eal_parameters(cores=3Dcore_mask, > ports=3D[self.pci0]) > + para =3D " queue_size=3D1024,queues=3D%s -- -i --rxd=3D1024 --tx= d=3D1024 %s" % > (self.queue, comment) > + self.testcmd_start =3D testcmd + eal_params + vdev + para > self.vhost_user =3D self.dut.new_session(suite=3D"user") > self.vhost_user.send_expect(self.testcmd_start, "testpmd> ", 120= ) > self.vhost_user.send_expect("start", "testpmd>", 120) @@ -128,12 > +127,11 @@ class TestVirtioUserAsExceptionalPath(TestCase): > self.dut.send_expect("taskset -pc %s %s" % (cores_list[-2], > vhost_pid_list[2]), "# ") >=20 > def launch_testpmd_exception_path(self): > - self.testcmd =3D self.target + "/app/testpmd -c %s -n %d --socke= t-mem %s > --legacy-mem" \ > - + " --vdev=3Dvirtio_user0,mac=3D%s,path=3D/dev/vhost- > net,queue_size=3D1024 -- -i" \ > - + " --rxd=3D1024 --txd=3D1024" > - self.coremask =3D utils.create_mask(self.cores) > - self.testcmd_start =3D self.testcmd % (self.coremask, > self.memory_channel, > - self.socket_mem, self.virtio_mac) > + testcmd =3D self.target + "/app/testpmd " > + vdev =3D "--vdev=3Dvirtio_user0,mac=3D%s,path=3D/dev/vhost- > net,queue_size=3D1024" % self.virtio_mac > + eal_params =3D self.dut.create_eal_parameters(cores=3Dself.cores= , > ports=3D[self.pci0]) > + para =3D " -- -i --rxd=3D1024 --txd=3D1024" > + self.testcmd_start =3D testcmd + eal_params + vdev + para > self.vhost_user =3D self.dut.new_session(suite=3D"user") > self.vhost_user.send_expect("modprobe vhost-net", "#", 120) > self.vhost_user.send_expect(self.testcmd_start, "testpmd> ", 120= ) > -- > 2.17.2