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 74FF8A055A; Thu, 27 Feb 2020 10:49:14 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 45B042C4F; Thu, 27 Feb 2020 10:49:14 +0100 (CET) Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by dpdk.org (Postfix) with ESMTP id 269E52C02 for ; Thu, 27 Feb 2020 10:49:12 +0100 (CET) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga005.jf.intel.com ([10.7.209.41]) by fmsmga102.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 27 Feb 2020 01:49:11 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.70,491,1574150400"; d="scan'208";a="410958564" Received: from fmsmsx106.amr.corp.intel.com ([10.18.124.204]) by orsmga005.jf.intel.com with ESMTP; 27 Feb 2020 01:49:11 -0800 Received: from shsmsx606.ccr.corp.intel.com (10.109.6.216) by FMSMSX106.amr.corp.intel.com (10.18.124.204) with Microsoft SMTP Server (TLS) id 14.3.439.0; Thu, 27 Feb 2020 01:49:10 -0800 Received: from shsmsx601.ccr.corp.intel.com (10.109.6.141) by SHSMSX606.ccr.corp.intel.com (10.109.6.216) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1713.5; Thu, 27 Feb 2020 17:49:08 +0800 Received: from shsmsx601.ccr.corp.intel.com ([10.109.6.141]) by SHSMSX601.ccr.corp.intel.com ([10.109.6.141]) with mapi id 15.01.1713.004; Thu, 27 Feb 2020 17:49:08 +0800 From: "Zhu, ShuaiX" To: "dts@dpdk.org" CC: "Zhu, ShuaiX" Thread-Topic: [dts][PATCH V1] tests/vdev_primary_secondary:add create_eal_parameters function. Thread-Index: AQHV673D5s+G75jLR0Sj8+xpfRh3qqguzqig Date: Thu, 27 Feb 2020 09:49:08 +0000 Message-ID: <6e87b5db382e4a38bd20343485a116f2@intel.com> References: <1582623151-18473-1-git-send-email-shuaix.zhu@intel.com> In-Reply-To: <1582623151-18473-1-git-send-email-shuaix.zhu@intel.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-product: dlpe-windows dlp-reaction: no-action dlp-version: 11.2.0.6 x-originating-ip: [10.239.127.36] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [dts] [PATCH V1] tests/vdev_primary_secondary: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" Tested-by: Zhu, ShuaiX > -----Original Message----- > From: Zhu, ShuaiX > Sent: Tuesday, February 25, 2020 5:32 PM > To: dts@dpdk.org > Cc: Wang, Yinan ; Zhu, ShuaiX > Subject: [dts][PATCH V1] tests/vdev_primary_secondary:add > create_eal_parameters function. >=20 >=20 >=20 > Signed-off-by: zhu,shuai > --- > tests/TestSuite_vdev_primary_secondary.py | 12 +++++++----- > 1 file changed, 7 insertions(+), 5 deletions(-) >=20 > diff --git a/tests/TestSuite_vdev_primary_secondary.py > b/tests/TestSuite_vdev_primary_secondary.py > index c380bec..7c557ad 100644 > --- a/tests/TestSuite_vdev_primary_secondary.py > +++ b/tests/TestSuite_vdev_primary_secondary.py > @@ -63,6 +63,7 @@ class TestVdevPrimarySecondary(TestCase): > self.coremask =3D utils.create_mask(cores) > self.verify(len(self.coremask) >=3D 6, "The machine has too few = cores.") > self.base_dir =3D self.dut.base_dir.replace('~', '/root') > + self.pci_info =3D self.dut.ports_info[0]['pci'] >=20 > def set_up(self): > """ > @@ -103,11 +104,12 @@ class TestVdevPrimarySecondary(TestCase): > """ > launch testpmd > """ > - cmd =3D "./%s/app/testpmd -l 1-6 -n %d --socket-mem 2048,2048 > --legacy-mem --file-prefix=3Dvhost" + \ > - " --vdev > 'net_vhost0,iface=3D%s/vhost-net0,queues=3D%d,client=3D1'" + \ > - " --vdev > 'net_vhost1,iface=3D%s/vhost-net1,queues=3D%d,client=3D1'" + \ > - " -- -i --nb-cores=3D4 --rxq=3D%d --txq=3D%d --txd=3D1024 = --rxd=3D1024" > - start_cmd =3D cmd % (self.target, self.mem_channels, self.base_d= ir, > self.queues, self.base_dir, self.queues, self.queues, self.queues) > + testcmd =3D self.dut.target + "/app/testpmd " > + vdev1 =3D " --vdev > 'net_vhost0,iface=3D%s/vhost-net0,queues=3D%d,client=3D1'" % (self.base_d= ir, > self.queues) > + vdev2 =3D " --vdev > 'net_vhost1,iface=3D%s/vhost-net1,queues=3D%d,client=3D1'" % (self.base_d= ir, > self.queues) > + eal_params =3D self.dut.create_eal_parameters(cores=3D"1S/12C/1T= ", > prefix=3D'vhost', ports=3D[self.pci_info]) > + para =3D " -- -i --nb-cores=3D4 --rxq=3D%d --txq=3D%d --txd=3D10= 24 --rxd=3D1024" % > (self.queues, self.queues) > + start_cmd =3D testcmd + eal_params + vdev1 + vdev2 + para > self.dut.send_expect(start_cmd, "testpmd> ", 120) > self.dut.send_expect("set fwd txonly", "testpmd> ", 120) > self.dut.send_expect("start", "testpmd> ", 120) > -- > 2.17.2