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 22E94A056D; Tue, 3 Mar 2020 08:24:30 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 151F42C16; Tue, 3 Mar 2020 08:24:30 +0100 (CET) Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by dpdk.org (Postfix) with ESMTP id 706CD2C02 for ; Tue, 3 Mar 2020 08:24:28 +0100 (CET) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga103.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 02 Mar 2020 23:24:27 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.70,510,1574150400"; d="scan'208";a="351763035" Received: from fmsmsx106.amr.corp.intel.com ([10.18.124.204]) by fmsmga001.fm.intel.com with ESMTP; 02 Mar 2020 23:24:27 -0800 Received: from fmsmsx118.amr.corp.intel.com (10.18.116.18) by FMSMSX106.amr.corp.intel.com (10.18.124.204) with Microsoft SMTP Server (TLS) id 14.3.439.0; Mon, 2 Mar 2020 23:24:27 -0800 Received: from shsmsx154.ccr.corp.intel.com (10.239.6.54) by fmsmsx118.amr.corp.intel.com (10.18.116.18) with Microsoft SMTP Server (TLS) id 14.3.439.0; Mon, 2 Mar 2020 23:24:26 -0800 Received: from shsmsx101.ccr.corp.intel.com ([169.254.1.43]) by SHSMSX154.ccr.corp.intel.com ([169.254.7.145]) with mapi id 14.03.0439.000; Tue, 3 Mar 2020 15:24:24 +0800 From: "Tu, Lijuan" To: "Zhu, ShuaiX" , "dts@dpdk.org" CC: "Zhu, ShuaiX" Thread-Topic: [dts] [PATCH V2] tests/virtio_pvp_regression:add create_eal_parameters function. Thread-Index: AQHV7dY/a++674ybq0e4TpOdKDcXdag2fc8g Date: Tue, 3 Mar 2020 07:24:23 +0000 Message-ID: <8CE3E05A3F976642AAB0F4675D0AD20E0BBE9271@SHSMSX101.ccr.corp.intel.com> References: <1582853558-66855-1-git-send-email-shuaix.zhu@intel.com> <1582853558-66855-4-git-send-email-shuaix.zhu@intel.com> In-Reply-To: <1582853558-66855-4-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_pvp_regression: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_pvp_regression:add > create_eal_parameters function. >=20 >=20 >=20 > Signed-off-by: zhu,shuai > --- > tests/TestSuite_virtio_pvp_regression.py | 17 ++++++----------- > 1 file changed, 6 insertions(+), 11 deletions(-) >=20 > diff --git a/tests/TestSuite_virtio_pvp_regression.py > b/tests/TestSuite_virtio_pvp_regression.py > index e03048e..97e522c 100644 > --- a/tests/TestSuite_virtio_pvp_regression.py > +++ b/tests/TestSuite_virtio_pvp_regression.py > @@ -57,14 +57,13 @@ class TestVirtioPVPRegression(TestCase): > self.pf =3D self.dut_ports[0] > # Get the port's socket > netdev =3D self.dut.ports_info[self.pf]['port'] > + self.pci_info =3D self.dut.ports_info[self.pf]['pci'] > self.socket =3D netdev.get_nic_socket() > self.cores =3D self.dut.get_core_list("1S/3C/1T", socket=3Dself.= socket) >=20 > self.verify(len(self.dut_ports) >=3D 1, "Insufficient ports for = testing") > self.verify(len(self.cores) >=3D 3, > "There has not enought cores to test this suite") > - self.coremask =3D utils.create_mask(self.cores) > - self.memory_channel =3D self.dut.get_memory_channels() > self.port_number =3D 2 > self.queues_number =3D 2 > self.dst_mac =3D self.dut.get_mac_address(self.dut_ports[0]) > @@ -248,15 +247,11 @@ class TestVirtioPVPRegression(TestCase): > """ > Launch the vhost testpmd > """ > - command_line_client =3D self.dut.target + "/app/testpmd -n %d -c= %s \ > - --socket-mem %s --file-prefix=3Dvhost -w %s \ > - --vdev 'eth_vhost0,iface=3D%s/vhost-net,queues=3D%d,client= =3D1' -- \ > - -i --nb-cores=3D%d --rxq=3D%d --txq=3D%d --txd=3D1024 --rxd= =3D1024" > - command_line_client =3D command_line_client % ( > - self.memory_channel, self.coremask, self.socket_= mem, > - self.dut.ports_info[self.pf]['pci'], self.base_d= ir, > - self.queues_number, self.queues_number, > self.queues_number, > - self.queues_number) > + testcmd =3D self.dut.target + "/app/testpmd " > + vdev =3D [r"'eth_vhost0,iface=3D%s/vhost-net,queues=3D%d,client= =3D1'" % > (self.base_dir, self.queues_number)] > + eal_params =3D self.dut.create_eal_parameters(cores=3Dself.cores= , > prefix=3D'vhost', ports=3D[self.pci_info], vdevs=3Dvdev) > + para =3D " -- -i --nb-cores=3D%d --rxq=3D%d --txq=3D%d --txd=3D= 1024 --rxd=3D1024" % > (self.queues_number, self.queues_number, self.queues_number) > + command_line_client =3D testcmd + eal_params + para > self.vhost.send_expect(command_line_client, "testpmd> ", 30) > self.vhost.send_expect("set fwd mac", "testpmd> ", 30) > self.vhost.send_expect("start", "testpmd> ", 30) > -- > 2.17.2