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 E9614A04DD; Sun, 19 Jan 2020 09:35:13 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id D9E2229AC; Sun, 19 Jan 2020 09:35:13 +0100 (CET) Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by dpdk.org (Postfix) with ESMTP id 979B828F3 for ; Sun, 19 Jan 2020 09:35:12 +0100 (CET) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga006.jf.intel.com ([10.7.209.51]) by fmsmga103.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 19 Jan 2020 00:35:11 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.70,337,1574150400"; d="scan'208";a="227921764" Received: from fmsmsx104.amr.corp.intel.com ([10.18.124.202]) by orsmga006.jf.intel.com with ESMTP; 19 Jan 2020 00:35:08 -0800 Received: from fmsmsx120.amr.corp.intel.com (10.18.124.208) by fmsmsx104.amr.corp.intel.com (10.18.124.202) with Microsoft SMTP Server (TLS) id 14.3.439.0; Sun, 19 Jan 2020 00:35:07 -0800 Received: from shsmsx151.ccr.corp.intel.com (10.239.6.50) by fmsmsx120.amr.corp.intel.com (10.18.124.208) with Microsoft SMTP Server (TLS) id 14.3.439.0; Sun, 19 Jan 2020 00:35:07 -0800 Received: from shsmsx101.ccr.corp.intel.com ([169.254.1.30]) by SHSMSX151.ccr.corp.intel.com ([169.254.3.55]) with mapi id 14.03.0439.000; Sun, 19 Jan 2020 16:35:05 +0800 From: "Tu, Lijuan" To: "Zhu, ShuaiX" , "dts@dpdk.org" CC: "Wang, Yinan" , "Zhu, ShuaiX" Thread-Topic: [dts] [PATCH V1 1/9] tests/vhost_1024_ethports:add create_eal_parameters function. Thread-Index: AQHVzdnopRM0Bs/SsEykTs7wvnsYpKfxqueg Date: Sun, 19 Jan 2020 08:35:03 +0000 Message-ID: <8CE3E05A3F976642AAB0F4675D0AD20E0BBAD536@SHSMSX101.ccr.corp.intel.com> References: <1579336692-98775-1-git-send-email-shuaix.zhu@intel.com> In-Reply-To: <1579336692-98775-1-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 1/9] tests/vhost_1024_ethports: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 the series. > -----Original Message----- > From: dts [mailto:dts-bounces@dpdk.org] On Behalf Of zhu,shuai > Sent: Saturday, January 18, 2020 4:38 PM > To: dts@dpdk.org > Cc: Wang, Yinan ; Zhu, ShuaiX > > Subject: [dts] [PATCH V1 1/9] tests/vhost_1024_ethports:add > create_eal_parameters function. >=20 > add create_eal_parameters function. >=20 > Signed-off-by: zhu,shuai > --- > tests/TestSuite_vhost_1024_ethports.py | 7 +++---- > 1 file changed, 3 insertions(+), 4 deletions(-) >=20 > diff --git a/tests/TestSuite_vhost_1024_ethports.py > b/tests/TestSuite_vhost_1024_ethports.py > index 0c14e8d..2a0bce8 100644 > --- a/tests/TestSuite_vhost_1024_ethports.py > +++ b/tests/TestSuite_vhost_1024_ethports.py > @@ -50,7 +50,7 @@ class TestVhost1024Ethports(TestCase): > self.verify(len(self.dut_ports) >=3D 1, 'Insufficient ports for = testing') > self.mem_channels =3D self.dut.get_memory_channels() > cores =3D self.dut.get_core_list("1S/2C/1T") > - self.coremask =3D utils.create_mask(cores) > + self.pci_info =3D self.dut.ports_info[0]['pci'] > self.build_user_dpdk() >=20 > def set_up(self): > @@ -78,9 +78,8 @@ class TestVhost1024Ethports(TestCase): > command_line_vdev =3D '' > for ethport in range(self.max_ethport): > command_line_vdev +=3D '--vdev "eth_vhost%d,iface=3Dvhost- > net%d,queues=3D%d" ' %(ethport, ethport, self.queue) > - command_line_argument =3D '/app/testpmd -c %s -n %d --socket-mem > 10240,10240 '\ > - '--file-prefix=3Dvhost ' %(self.coremask, self.m= em_channels) > - command_line_client =3D self.dut.target + command_line_argument = + > command_line_vdev + '-- -i' > + eal_params =3D self.dut.create_eal_parameters(cores=3D"1S/2C/1T"= , > prefix=3D'vhost', ports=3D[self.pci_info]) > + cmd =3D self.dut.target + '/app/testpmd ' + eal_params + > command_line_vdev + ' -- -i' > try: > out =3D self.vhost_user.send_expect(command_line_client, 'te= stpmd> ', > 120) > except Exception as e: > -- > 2.17.2