From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by dpdk.space (Postfix) with ESMTP id 3BE12A05D3 for ; Sun, 24 Mar 2019 19:14:07 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 0CC9025D9; Sun, 24 Mar 2019 19:14:07 +0100 (CET) Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by dpdk.org (Postfix) with ESMTP id A31011B19 for ; Sun, 24 Mar 2019 19:14:05 +0100 (CET) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga008.jf.intel.com ([10.7.209.65]) by orsmga101.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 24 Mar 2019 11:14:04 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.60,256,1549958400"; d="scan'208";a="128267114" Received: from fmsmsx107.amr.corp.intel.com ([10.18.124.205]) by orsmga008.jf.intel.com with ESMTP; 24 Mar 2019 11:14:04 -0700 Received: from fmsmsx151.amr.corp.intel.com (10.18.125.4) by fmsmsx107.amr.corp.intel.com (10.18.124.205) with Microsoft SMTP Server (TLS) id 14.3.408.0; Sun, 24 Mar 2019 11:14:04 -0700 Received: from shsmsx151.ccr.corp.intel.com (10.239.6.50) by FMSMSX151.amr.corp.intel.com (10.18.125.4) with Microsoft SMTP Server (TLS) id 14.3.408.0; Sun, 24 Mar 2019 11:14:03 -0700 Received: from shsmsx101.ccr.corp.intel.com ([169.254.1.158]) by SHSMSX151.ccr.corp.intel.com ([169.254.3.26]) with mapi id 14.03.0415.000; Mon, 25 Mar 2019 02:14:01 +0800 From: "Tu, Lijuan" To: "Yao, BingX Y" , "dts@dpdk.org" CC: "Yao, BingX Y" Thread-Topic: [dts] [PATCH V2] tests/pmdrss_hash:change hard code Thread-Index: AQHU35SBoaf4R0e0UUSnY9znnu5TfqYbG3tg Date: Sun, 24 Mar 2019 18:14:00 +0000 Message-ID: <8CE3E05A3F976642AAB0F4675D0AD20E0BA45B27@SHSMSX101.ccr.corp.intel.com> References: <1553138420-72895-1-git-send-email-bingx.y.yao@intel.com> In-Reply-To: <1553138420-72895-1-git-send-email-bingx.y.yao@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.0.400.15 dlp-reaction: no-action x-ctpclassification: CTP_NT x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiYjg0NGJlY2EtODUxNC00ODdmLTg5YmMtYWZhNTk4NDUwNTYwIiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX05UIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE3LjEwLjE4MDQuNDkiLCJUcnVzdGVkTGFiZWxIYXNoIjoicUhSQTVSeGgrbUdmQVwvcTl4eU5GS2k0cklxM1JMTUYzczhmaEwxcVdYeGlyY1ZScVB5Vnp1aWltUUJNU1h6Y0QifQ== 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/pmdrss_hash:change hard code 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 yaobing > Sent: Wednesday, March 20, 2019 8:20 PM > To: dts@dpdk.org > Cc: Yao, BingX Y > Subject: [dts] [PATCH V2] tests/pmdrss_hash:change hard code >=20 > V1: > change the corelist adapted to the actual cores instead of hard code >=20 > V2: > change hardcode of memory channel >=20 >=20 > Signed-off-by: yaobing > --- > tests/TestSuite_pmdrss_hash.py | 21 +++++++++++---------- > 1 file changed, 11 insertions(+), 10 deletions(-) >=20 > diff --git a/tests/TestSuite_pmdrss_hash.py b/tests/TestSuite_pmdrss_hash= .py > index 60c9819..dd22f91 100644 > --- a/tests/TestSuite_pmdrss_hash.py > +++ b/tests/TestSuite_pmdrss_hash.py > @@ -464,7 +464,8 @@ class TestPmdrssHash(TestCase): > """ > Run before each test case. > """ > - pass > + cores =3D self.dut.get_core_list("all") > + self.coremask =3D utils.create_mask(cores) >=20 > def test_toeplitz(self): > dutPorts =3D self.dut.get_ports(self.nic) @@ -477,8 +478,8 @@ cl= ass > TestPmdrssHash(TestCase): >=20 > # test with different rss queues > self.dut.send_expect( > - "./%s/app/testpmd -c fffff -n %d -- -i --coremask=3D0xffffe= --rxq=3D%d -- > txq=3D%d" % > - (self.target, self.dut.get_memory_channels(), queue, queue),= "testpmd> > ", 120) > + "./%s/app/testpmd -c %s -n %d -- -i --rxq=3D%d --txq=3D%d" = % > + (self.target, self.coremask, > + self.dut.get_memory_channels(), queue, queue), "testpmd> ", 120) >=20 > for iptype, rsstype in iptypes.items(): > self.dut.send_expect("set verbose 8", "testpmd> ") @@ -514,8= +515,8 > @@ class TestPmdrssHash(TestCase): >=20 > # test with different rss queues > self.dut.send_expect( > - "./%s/app/testpmd -c fffff -n %d -- -i --coremask=3D0xffffe= --rxq=3D%d -- > txq=3D%d" % > - (self.target, self.dut.get_memory_channels(), queue, queue),= "testpmd> > ", 120) > + "./%s/app/testpmd -c %s -n %d -- -i --rxq=3D%d --txq=3D%d" = % > + (self.target, self.coremask, > + self.dut.get_memory_channels(), queue, queue), "testpmd> ", 120) >=20 > for iptype, rsstype in iptypes.items(): > self.dut.send_expect("set verbose 8", "testpmd> ") @@ -558,8= +559,8 > @@ class TestPmdrssHash(TestCase): >=20 > # test with different rss queues > self.dut.send_expect( > - "./%s/app/testpmd -c fffff -n %d -- -i --coremask=3D0xffffe= --rxq=3D%d -- > txq=3D%d" % > - (self.target, self.dut.get_memory_channels(), queue, queue),= "testpmd> > ", 120) > + "./%s/app/testpmd -c %s -n %d -- -i --rxq=3D%d --txq=3D%d" = % > + (self.target, self.coremask, > + self.dut.get_memory_channels(), queue, queue), "testpmd> ", 120) >=20 > for iptype, rsstype in iptypes.items(): > self.logger.info("***********************%s rss > test********************************" % iptype) @@ -597,8 +598,8 @@ > class TestPmdrssHash(TestCase): >=20 > # test with different rss queues > self.dut.send_expect( > - "./%s/app/testpmd -c fffff -n %d -- -i --coremask=3D0xffffe= --rxq=3D%d -- > txq=3D%d" % > - (self.target, self.dut.get_memory_channels(), queue, queue),= "testpmd> > ", 120) > + "./%s/app/testpmd -c %s -n %d -- -i --rxq=3D%d --txq=3D%d" = % > + (self.target, self.coremask, > + self.dut.get_memory_channels(), queue, queue), "testpmd> ", 120) >=20 > for iptype, rsstype in iptypes.items(): > self.dut.send_expect("set verbose 8", "testpmd> ") @@ -632,7= +633,7 > @@ class TestPmdrssHash(TestCase): > "fortpark_TLV", "fortville_25g"], > "NIC Unsupported: " + str(self.nic)) >=20 > - self.dut.send_expect("./%s/app/testpmd -c f -n 4 -- -i" % self.t= arget, > "testpmd> ", 120) > + self.dut.send_expect("./%s/app/testpmd -c %s -n %d -- -i" % > + (self.target, self.coremask, self.dut.get_memory_channels()), > + "testpmd> ", 120) > out =3D self.dut.send_expect("create bonded device 3 0", "testpm= d> ", 30) > bond_device_id =3D int(re.search("port \d+", out).group().split(= " ")[-1].strip()) >=20 > -- > 2.17.2