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 3AA5DA00E6 for ; Fri, 22 Mar 2019 04:02:04 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id F1ABA1B56B; Fri, 22 Mar 2019 04:02:03 +0100 (CET) Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by dpdk.org (Postfix) with ESMTP id C70251B566 for ; Fri, 22 Mar 2019 04:02:01 +0100 (CET) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by orsmga103.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 21 Mar 2019 20:02:00 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.60,255,1549958400"; d="scan'208";a="154039537" Received: from fmsmsx103.amr.corp.intel.com ([10.18.124.201]) by fmsmga002.fm.intel.com with ESMTP; 21 Mar 2019 20:02:00 -0700 Received: from fmsmsx118.amr.corp.intel.com (10.18.116.18) by FMSMSX103.amr.corp.intel.com (10.18.124.201) with Microsoft SMTP Server (TLS) id 14.3.408.0; Thu, 21 Mar 2019 20:01:59 -0700 Received: from shsmsx105.ccr.corp.intel.com (10.239.4.158) by fmsmsx118.amr.corp.intel.com (10.18.116.18) with Microsoft SMTP Server (TLS) id 14.3.408.0; Thu, 21 Mar 2019 20:01:59 -0700 Received: from shsmsx102.ccr.corp.intel.com ([169.254.2.163]) by SHSMSX105.ccr.corp.intel.com ([169.254.11.113]) with mapi id 14.03.0415.000; Fri, 22 Mar 2019 11:01:57 +0800 From: "Zhu, WenhuiX" To: "Yao, BingX Y" , "dts@dpdk.org" CC: "Yao, BingX Y" Thread-Topic: [dts] [PATCH V2] tests/pmdrss_hash:change hard code Thread-Index: AQHU35SB2+3US5p/20Ocggny1W9nI6YW9+5A Date: Fri, 22 Mar 2019 03:01:57 +0000 Message-ID: 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: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: 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" Tested-by: Zhu, WenhuiX -----Original Message----- From: dts [mailto:dts-bounces@dpdk.org] On Behalf Of yaobing Sent: Thursday, March 21, 2019 11:20 AM To: dts@dpdk.org Cc: Yao, BingX Y Subject: [dts] [PATCH V2] tests/pmdrss_hash:change hard code V1: change the corelist adapted to the actual cores instead of hard code V2: change hardcode of memory channel Signed-off-by: yaobing --- tests/TestSuite_pmdrss_hash.py | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/tests/TestSuite_pmdrss_hash.py b/tests/TestSuite_pmdrss_hash.p= y 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 @@ clas= s 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,=20 + 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,=20 + 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,=20 + 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,=20 + 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.tar= get, "testpmd> ", 120) + self.dut.send_expect("./%s/app/testpmd -c %s -n %d -- -i" %=20 + (self.target, self.coremask, self.dut.get_memory_channels()),=20 + "testpmd> ", 120) out =3D self.dut.send_expect("create bonded device 3 0", "testpmd>= ", 30) bond_device_id =3D int(re.search("port \d+", out).group().split(" = ")[-1].strip()) =20 -- 2.17.2