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 8003CA056D; Tue, 3 Mar 2020 08:24:36 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 771FB1BFF2; Tue, 3 Mar 2020 08:24:36 +0100 (CET) Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by dpdk.org (Postfix) with ESMTP id 743501C00E for ; Tue, 3 Mar 2020 08:24:35 +0100 (CET) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga004.jf.intel.com ([10.7.209.38]) by orsmga102.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 02 Mar 2020 23:24:34 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.70,510,1574150400"; d="scan'208";a="386664489" Received: from fmsmsx105.amr.corp.intel.com ([10.18.124.203]) by orsmga004.jf.intel.com with ESMTP; 02 Mar 2020 23:24:34 -0800 Received: from fmsmsx157.amr.corp.intel.com (10.18.116.73) by FMSMSX105.amr.corp.intel.com (10.18.124.203) with Microsoft SMTP Server (TLS) id 14.3.439.0; Mon, 2 Mar 2020 23:24:34 -0800 Received: from shsmsx106.ccr.corp.intel.com (10.239.4.159) by FMSMSX157.amr.corp.intel.com (10.18.116.73) with Microsoft SMTP Server (TLS) id 14.3.439.0; Mon, 2 Mar 2020 23:24:33 -0800 Received: from shsmsx101.ccr.corp.intel.com ([169.254.1.43]) by SHSMSX106.ccr.corp.intel.com ([169.254.10.86]) with mapi id 14.03.0439.000; Tue, 3 Mar 2020 15:24:31 +0800 From: "Tu, Lijuan" To: "Zhu, ShuaiX" , "dts@dpdk.org" CC: "Zhu, ShuaiX" Thread-Topic: [dts] [PATCH V2] tests/pvp_qemu_multi_paths_port_restart:add create_eal_parameters function. Thread-Index: AQHV7dZEXI0r0BRZf0Ky/K/x46FqFqg2feBw Date: Tue, 3 Mar 2020 07:24:31 +0000 Message-ID: <8CE3E05A3F976642AAB0F4675D0AD20E0BBE928C@SHSMSX101.ccr.corp.intel.com> References: <1582853558-66855-1-git-send-email-shuaix.zhu@intel.com> <1582853558-66855-2-git-send-email-shuaix.zhu@intel.com> In-Reply-To: <1582853558-66855-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 V2] tests/pvp_qemu_multi_paths_port_restart: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/pvp_qemu_multi_paths_port_restart:add > create_eal_parameters function. >=20 >=20 >=20 > Signed-off-by: zhu,shuai > --- > .../TestSuite_pvp_qemu_multi_paths_port_restart.py | 14 ++++++-------- > 1 file changed, 6 insertions(+), 8 deletions(-) >=20 > diff --git a/tests/TestSuite_pvp_qemu_multi_paths_port_restart.py > b/tests/TestSuite_pvp_qemu_multi_paths_port_restart.py > index ea2e1cd..601000e 100644 > --- a/tests/TestSuite_pvp_qemu_multi_paths_port_restart.py > +++ b/tests/TestSuite_pvp_qemu_multi_paths_port_restart.py > @@ -61,7 +61,6 @@ class TestPVPQemuMultiPathPortRestart(TestCase): > self.ports_socket =3D self.dut.get_numa_id(self.dut_ports[0]) > self.core_list =3D self.dut.get_core_list( > self.core_config, socket=3Dself.ports_socket) > - self.core_mask =3D utils.create_mask(self.core_list) > self.dst_mac =3D self.dut.get_mac_address(self.dut_ports[0]) > self.vm_dut =3D None > self.virtio1_mac =3D "52:54:00:00:00:01" > @@ -72,6 +71,7 @@ class TestPVPQemuMultiPathPortRestart(TestCase): > self.tester.send_expect('mkdir -p %s' % self.out_path, '# ') > # create an instance to set stream field setting > self.pktgen_helper =3D PacketGeneratorHelper() > + self.pci_info =3D self.dut.ports_info[0]['pci'] >=20 > def set_up(self): > """ > @@ -94,13 +94,11 @@ class TestPVPQemuMultiPathPortRestart(TestCase): > """ > self.dut.send_expect("killall -s INT testpmd", "#") > self.dut.send_expect("rm -rf ./vhost-net*", "#") > - command_client =3D self.dut.target + "/app/testpmd " + \ > - " -n %d -c %s --socket-mem 1024,1024 " + \ > - " --legacy-mem --file-prefix=3Dvhost " + \ > - " --vdev 'net_vhost0,iface=3Dvhost-net,queues= =3D1' " + \ > - " -- -i --nb-cores=3D1 --txd=3D1024 --rxd=3D102= 4" > - command_line_client =3D command_client % ( > - self.dut.get_memory_channels(), self.core_mask) > + testcmd =3D self.dut.target + "/app/testpmd " > + vdev =3D [r"'net_vhost0,iface=3Dvhost-net,queues=3D1'"] > + eal_params =3D self.dut.create_eal_parameters(cores=3Dself.core_= list, > prefix=3D'vhost', ports=3D[self.pci_info], vdevs=3Dvdev) > + para =3D " -- -i --nb-cores=3D1 --txd=3D1024 --rxd=3D1024" > + command_line_client =3D testcmd + eal_params + para > self.vhost.send_expect(command_line_client, "testpmd> ", 120) > self.vhost.send_expect("set fwd mac", "testpmd> ", 120) > self.vhost.send_expect("start", "testpmd> ", 120) > -- > 2.17.2