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 2C44AA056D; Tue, 3 Mar 2020 06:24:53 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 241EE1C00E; Tue, 3 Mar 2020 06:24:53 +0100 (CET) Received: from mga12.intel.com (mga12.intel.com [192.55.52.136]) by dpdk.org (Postfix) with ESMTP id B78813B5 for ; Tue, 3 Mar 2020 06:24:51 +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 fmsmga106.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 02 Mar 2020 21:24:50 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.70,510,1574150400"; d="scan'208";a="412617666" Received: from fmsmsx105.amr.corp.intel.com ([10.18.124.203]) by orsmga005.jf.intel.com with ESMTP; 02 Mar 2020 21:24:50 -0800 Received: from FMSMSX110.amr.corp.intel.com (10.18.116.10) by FMSMSX105.amr.corp.intel.com (10.18.124.203) with Microsoft SMTP Server (TLS) id 14.3.439.0; Mon, 2 Mar 2020 21:24:50 -0800 Received: from shsmsx152.ccr.corp.intel.com (10.239.6.52) by fmsmsx110.amr.corp.intel.com (10.18.116.10) with Microsoft SMTP Server (TLS) id 14.3.439.0; Mon, 2 Mar 2020 21:24:49 -0800 Received: from shsmsx101.ccr.corp.intel.com ([169.254.1.43]) by SHSMSX152.ccr.corp.intel.com ([169.254.6.155]) with mapi id 14.03.0439.000; Tue, 3 Mar 2020 13:24:47 +0800 From: "Tu, Lijuan" To: "Zhu, ShuaiX" , "dts@dpdk.org" CC: "Wang, Yinan" , "Zhu, ShuaiX" Thread-Topic: [dts] [PATCH V1] tests/virtio_event_idx_interrupt:add create_eal_parameters function. Thread-Index: AQHV673SAV2EWLWCvEu5UjRHC7za7Kg2YJwg Date: Tue, 3 Mar 2020 05:24:46 +0000 Message-ID: <8CE3E05A3F976642AAB0F4675D0AD20E0BBE8E53@SHSMSX101.ccr.corp.intel.com> References: <1582623151-18473-1-git-send-email-shuaix.zhu@intel.com> <1582623151-18473-2-git-send-email-shuaix.zhu@intel.com> In-Reply-To: <1582623151-18473-2-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/virtio_event_idx_interrupt: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: Tuesday, February 25, 2020 5:32 PM > To: dts@dpdk.org > Cc: Wang, Yinan ; Zhu, ShuaiX > > Subject: [dts] [PATCH V1] tests/virtio_event_idx_interrupt:add > create_eal_parameters function. >=20 >=20 >=20 > Signed-off-by: zhu,shuai > --- > tests/TestSuite_virtio_event_idx_interrupt.py | 13 +++++-------- > 1 file changed, 5 insertions(+), 8 deletions(-) >=20 > diff --git a/tests/TestSuite_virtio_event_idx_interrupt.py > b/tests/TestSuite_virtio_event_idx_interrupt.py > index 022cb6d..1fb0622 100644 > --- a/tests/TestSuite_virtio_event_idx_interrupt.py > +++ b/tests/TestSuite_virtio_event_idx_interrupt.py > @@ -57,7 +57,6 @@ class TestVirtioIdxInterrupt(TestCase): > self.ports_socket =3D self.dut.get_numa_id(self.dut_ports[0]) > self.cores_num =3D len([n for n in self.dut.cores if int(n['sock= et']) > =3D=3D self.ports_socket]) > - self.mem_channels =3D self.dut.get_memory_channels() > self.dst_mac =3D self.dut.get_mac_address(self.dut_ports[0]) > self.base_dir =3D self.dut.base_dir.replace('~', '/root') > self.pf_pci =3D self.dut.ports_info[0]['pci'] @@ -86,7 +85,6 @@ = class > TestVirtioIdxInterrupt(TestCase): > "There has not enough cores to test this case %s" % > self.running_case) > self.core_list =3D self.dut.get_core_list(self.core_config) > - self.core_mask =3D utils.create_mask(self.core_list) >=20 > def start_vhost_testpmd(self): > """ > @@ -94,12 +92,11 @@ class TestVirtioIdxInterrupt(TestCase): > """ > # get the core mask depend on the nb_cores number > self.get_core_mask() > - command_line =3D self.dut.target + "/app/testpmd -c %s -n %d -w = %s " + \ > - "--socket-mem 2048,2048 --legacy-mem --file-prefix=3Dvho= st " + \ > - "--vdev 'net_vhost,iface=3D%s/vhost-net,queues=3D%d' -- = -i " + \ > - "--nb-cores=3D%d --txd=3D1024 --rxd=3D1024 --rxq=3D%d --= txq=3D%d" > - command_line =3D command_line % (self.core_mask, self.mem_channe= ls, > self.pf_pci, > - self.base_dir, self.queues, self.nb_cores, self.= queues, > self.queues) > + testcmd =3D self.dut.target + "/app/testpmd " > + vdev =3D [r"--vdev 'net_vhost,iface=3D%s/vhost-net,queues=3D%d' = -- -i " % > (self.base_dir, self.queues)] > + eal_params =3D self.dut.create_eal_parameters(cores=3Dself.core_= list, > prefix=3D'vhost', ports=3D[self.pf_pci], vdevs=3Dvdev) > + para =3D " --nb-cores=3D%d --txd=3D1024 --rxd=3D1024 --rxq=3D%d = --txq=3D%d" % > (self.nb_cores, self.queues, self.queues) > + command_line =3D testcmd + eal_params + para > self.vhost.send_expect(command_line, "testpmd> ", 30) > self.vhost.send_expect("start", "testpmd> ", 30) >=20 > -- > 2.17.2