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 C95B1A056D; Tue, 3 Mar 2020 06:41:35 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id C176C1BFF7; Tue, 3 Mar 2020 06:41:35 +0100 (CET) Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by dpdk.org (Postfix) with ESMTP id 83B902BB8 for ; Tue, 3 Mar 2020 06:41:34 +0100 (CET) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by fmsmga104.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 02 Mar 2020 21:41:33 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.70,510,1574150400"; d="scan'208";a="286881394" Received: from fmsmsx103.amr.corp.intel.com ([10.18.124.201]) by FMSMGA003.fm.intel.com with ESMTP; 02 Mar 2020 21:41:33 -0800 Received: from fmsmsx102.amr.corp.intel.com (10.18.124.200) by FMSMSX103.amr.corp.intel.com (10.18.124.201) with Microsoft SMTP Server (TLS) id 14.3.439.0; Mon, 2 Mar 2020 21:41:33 -0800 Received: from shsmsx104.ccr.corp.intel.com (10.239.4.70) by FMSMSX102.amr.corp.intel.com (10.18.124.200) with Microsoft SMTP Server (TLS) id 14.3.439.0; Mon, 2 Mar 2020 21:41:32 -0800 Received: from shsmsx101.ccr.corp.intel.com ([169.254.1.43]) by SHSMSX104.ccr.corp.intel.com ([169.254.5.206]) with mapi id 14.03.0439.000; Tue, 3 Mar 2020 13:41:30 +0800 From: "Tu, Lijuan" To: "Zhu, ShuaiX" , "dts@dpdk.org" CC: "Wang, Yinan" , "Zhu, ShuaiX" Thread-Topic: [dts] [PATCH V1] tests/pvp_vhost_user_reconnect:add create_eal_parameters function. Thread-Index: AQHV7IUX4kI5ELsQv0S3wr+FKjcyx6g2Y7dQ Date: Tue, 3 Mar 2020 05:41:29 +0000 Message-ID: <8CE3E05A3F976642AAB0F4675D0AD20E0BBE8F64@SHSMSX101.ccr.corp.intel.com> References: <1582708737-36706-1-git-send-email-shuaix.zhu@intel.com> <1582708737-36706-4-git-send-email-shuaix.zhu@intel.com> In-Reply-To: <1582708737-36706-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 V1] tests/pvp_vhost_user_reconnect: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: Wednesday, February 26, 2020 5:19 PM > To: dts@dpdk.org > Cc: Wang, Yinan ; Zhu, ShuaiX > > Subject: [dts] [PATCH V1] tests/pvp_vhost_user_reconnect:add > create_eal_parameters function. >=20 >=20 >=20 > Signed-off-by: zhu,shuai > --- > tests/TestSuite_pvp_vhost_user_reconnect.py | 26 +++++++-------------- > 1 file changed, 9 insertions(+), 17 deletions(-) >=20 > diff --git a/tests/TestSuite_pvp_vhost_user_reconnect.py > b/tests/TestSuite_pvp_vhost_user_reconnect.py > index 7b201a0..f361373 100644 > --- a/tests/TestSuite_pvp_vhost_user_reconnect.py > +++ b/tests/TestSuite_pvp_vhost_user_reconnect.py > @@ -56,10 +56,9 @@ class TestPVPVhostUserReconnect(TestCase): > # Get the port's socket > self.pf =3D self.dut_ports[0] > netdev =3D self.dut.ports_info[self.pf]['port'] > + self.pci_info =3D self.dut.ports_info[0]['pci'] > self.socket =3D netdev.get_nic_socket() > self.cores =3D self.dut.get_core_list("1S/2C/1T", socket=3Dself.= socket) > - self.coremask =3D utils.create_mask(self.cores) > - self.memory_channel =3D self.dut.get_memory_channels() > self.dst_mac =3D self.dut.get_mac_address(self.dut_ports[0]) > # set diff arg about mem_socket base on socket number > if len(set([int(core['socket']) for core in self.dut.cores])) = =3D=3D 1: > @@ -101,14 +100,10 @@ class TestPVPVhostUserReconnect(TestCase): > vdev_info =3D "" > for i in range(self.vm_num): > vdev_info +=3D "--vdev 'net_vhost%d,iface=3Dvhost- > net%d,client=3D1,queues=3D1' " % (i, i) > - self.vhostapp_testcmd =3D self.dut.base_dir + \ > - "/%s/app/testpmd -c %s -n %d --socket-mem %s --legac= y-mem" + > \ > - " --file-prefix=3Dvhost %s" + \ > - " -- -i --port-topology=3Dchained --nb-cores=3D1" + = \ > - " --txd=3D1024 --rxd=3D1024" > - self.vhostapp_testcmd =3D self.vhostapp_testcmd % (self.target, > - self.coremask, self.memory_channel, > - self.socket_mem, vdev_info) > + testcmd =3D self.dut.base_dir + "/%s/app/testpmd " % self.target > + eal_params =3D self.dut.create_eal_parameters(cores=3Dself.cores= , > prefix=3D'vhost', ports=3D[self.pci_info]) > + para =3D " -- -i --port-topology=3Dchained --nb-cores=3D1 --txd= =3D1024 -- > rxd=3D1024" > + self.vhostapp_testcmd =3D testcmd + eal_params + vdev_info + par= a > self.vhost_user.send_expect(self.vhostapp_testcmd, "testpmd> ", = 40) > self.vhost_user.send_expect("set fwd mac", "testpmd> ", 40) > self.vhost_user.send_expect("start", "testpmd> ", 40) @@ -120,13 > +115,10 @@ class TestPVPVhostUserReconnect(TestCase): > vdev_info =3D "" > for i in range(self.vm_num): > vdev_info +=3D "--vdev 'net_vhost%d,iface=3Dvhost- > net%d,client=3D1,queues=3D1' " % (i, i) > - self.vhostapp_testcmd =3D self.dut.base_dir + \ > - "/%s/app/testpmd -c %s -n %d --socket-mem %s --legac= y-mem" + > \ > - " --no-pci --file-prefix=3Dvhost %s" + \ > - " -- -i --nb-cores=3D1 --txd=3D1024 --rxd=3D1024" > - self.vhostapp_testcmd =3D self.vhostapp_testcmd % (self.target, > - self.coremask, self.memory_channel, > - self.socket_mem, vdev_info) > + testcmd =3D self.dut.base_dir + "/%s/app/testpmd " % self.target > + eal_params =3D self.dut.create_eal_parameters(cores=3Dself.cores= , > no_pci=3DTrue, prefix=3D'vhost', ports=3D[self.pci_info]) > + para =3D " -- -i --nb-cores=3D1 --txd=3D1024 --rxd=3D1024" > + self.vhostapp_testcmd =3D testcmd + eal_params + vdev_info + par= a > self.vhost_user.send_expect(self.vhostapp_testcmd, "testpmd> ", = 40) > self.vhost_user.send_expect("start", "testpmd> ", 40) >=20 > -- > 2.17.2