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 36EFAA0613 for ; Fri, 30 Aug 2019 04:59:32 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id B65C01E4DC; Fri, 30 Aug 2019 04:59:31 +0200 (CEST) Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by dpdk.org (Postfix) with ESMTP id 03A341DFF1 for ; Fri, 30 Aug 2019 04:59:29 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga003.jf.intel.com ([10.7.209.27]) by orsmga101.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 29 Aug 2019 19:59:28 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.64,445,1559545200"; d="scan'208";a="183669301" Received: from fmsmsx108.amr.corp.intel.com ([10.18.124.206]) by orsmga003.jf.intel.com with ESMTP; 29 Aug 2019 19:59:28 -0700 Received: from shsmsx106.ccr.corp.intel.com (10.239.4.159) by FMSMSX108.amr.corp.intel.com (10.18.124.206) with Microsoft SMTP Server (TLS) id 14.3.439.0; Thu, 29 Aug 2019 19:58:57 -0700 Received: from shsmsx101.ccr.corp.intel.com ([169.254.1.80]) by SHSMSX106.ccr.corp.intel.com ([169.254.10.204]) with mapi id 14.03.0439.000; Fri, 30 Aug 2019 10:57:33 +0800 From: "Tu, Lijuan" To: "Li, WenjieX A" , "dts@dpdk.org" CC: "Li, WenjieX A" Thread-Topic: [dts] [PATCH V1] tests/enable_package_download_in_ice_driver:add all ports with -w Thread-Index: AQHVVncBBJo7id6n4Eui3J6Bx7TisacTEF9w Date: Fri, 30 Aug 2019 02:57:32 +0000 Message-ID: <8CE3E05A3F976642AAB0F4675D0AD20E0BB07782@SHSMSX101.ccr.corp.intel.com> References: <1566241756-5557-1-git-send-email-wenjiex.a.li@intel.com> In-Reply-To: <1566241756-5557-1-git-send-email-wenjiex.a.li@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-ctpclassification: CTP_NT x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiOWUxOGE0ZTUtOTE4ZC00NGZmLTk4N2QtOTQ2NmMyMDdiYzMzIiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX05UIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE3LjEwLjE4MDQuNDkiLCJUcnVzdGVkTGFiZWxIYXNoIjoiazd3R084QnlpYnQ2WDA0c1Faa3pEdVVSRkxLUjY0cUhrSkdYOTRxTjE0YUJYbmVRS1Z3enZEWkJBR3lKRW1EMCJ9 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/enable_package_download_in_ice_driver:add all ports with -w 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 Wenjie Li > Sent: Tuesday, August 20, 2019 3:09 AM > To: dts@dpdk.org > Cc: Li, WenjieX A > Subject: [dts] [PATCH V1] tests/enable_package_download_in_ice_driver:add > all ports with -w >=20 > Should add ALL ports with -w parameter. > If the nic has 4 ports, all ports should be bind with -w; otherwise, the = ports > will be down in testpmd. >=20 > Signed-off-by: Wenjie Li > --- > tests/TestSuite_enable_package_download_in_ice_driver.py | 9 +++------ > 1 file changed, 3 insertions(+), 6 deletions(-) >=20 > diff --git a/tests/TestSuite_enable_package_download_in_ice_driver.py > b/tests/TestSuite_enable_package_download_in_ice_driver.py > index 9197198..b225ef3 100644 > --- a/tests/TestSuite_enable_package_download_in_ice_driver.py > +++ b/tests/TestSuite_enable_package_download_in_ice_driver.py > @@ -54,9 +54,6 @@ class > TestEnable_Package_Download_In_Ice_Driver(TestCase): > self.tester_p0_mac =3D self.tester.get_mac(localPort0) > self.dut_testpmd =3D PmdOutput(self.dut) >=20 > - self.dut_p0_pci =3D self.dut.get_port_pci(self.dut_ports[0]) > - self.dut_p1_pci =3D self.dut.get_port_pci(self.dut_ports[1]) > - > self.pkg_file =3D '/lib/firmware/intel/ice/ddp/ice.pkg' > out =3D self.dut.send_expect("ls %s" % self.pkg_file, "#") > self.verify("No such file or directory" not in out, "Cannot find= %s, please > check you system/driver." % self.pkg_file) @@ -88,10 +85,10 @@ class > TestEnable_Package_Download_In_Ice_Driver(TestCase): > self.dut.send_expect("touch %s" % self.pkg_file, "#") >=20 > def start_testpmd(self, ice_pkg=3D"true", safe_mode_support=3D"false= "): > + self.eal_param =3D "" > if safe_mode_support =3D=3D "true": > - self.eal_param=3D"-w %s,safe-mode-support=3D1 -w %s,safe-mod= e- > support=3D1" % (self.dut_p0_pci, self.dut_p1_pci) > - else: > - self.eal_param=3D"" > + for i in range(len(self.dut_ports)): > + self.eal_param =3D self.eal_param + "-w > + %s,safe-mode-support=3D1 " % self.dut.ports_info[i]['pci'] > out =3D self.dut_testpmd.start_testpmd("all", "--nb-cores=3D8 --= rxq=3D%s -- > txq=3D%s --port-topology=3Dchained" % (self.PF_QUEUE, self.PF_QUEUE), > eal_param=3Dself.eal_param) > if ice_pkg =3D=3D "false": > if safe_mode_support =3D=3D "true": > -- > 2.17.1