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 6F6A1A00E6 for ; Mon, 15 Apr 2019 21:56:18 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 64DFF1B3B8; Mon, 15 Apr 2019 21:56:18 +0200 (CEST) Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by dpdk.org (Postfix) with ESMTP id 1EF661B3B5 for ; Mon, 15 Apr 2019 21:56:15 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by fmsmga103.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 15 Apr 2019 12:56:15 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.60,354,1549958400"; d="scan'208";a="140920675" Received: from fmsmsx107.amr.corp.intel.com ([10.18.124.205]) by fmsmga008.fm.intel.com with ESMTP; 15 Apr 2019 12:56:15 -0700 Received: from fmsmsx155.amr.corp.intel.com (10.18.116.71) by fmsmsx107.amr.corp.intel.com (10.18.124.205) with Microsoft SMTP Server (TLS) id 14.3.408.0; Mon, 15 Apr 2019 12:56:15 -0700 Received: from shsmsx108.ccr.corp.intel.com (10.239.4.97) by FMSMSX155.amr.corp.intel.com (10.18.116.71) with Microsoft SMTP Server (TLS) id 14.3.408.0; Mon, 15 Apr 2019 12:56:14 -0700 Received: from shsmsx101.ccr.corp.intel.com ([169.254.1.164]) by SHSMSX108.ccr.corp.intel.com ([169.254.8.147]) with mapi id 14.03.0415.000; Tue, 16 Apr 2019 03:56:12 +0800 From: "Tu, Lijuan" To: Rami Rosen , "dts@dpdk.org" Thread-Topic: [dts] [PATCH] tests/pmdrss: add support for RSS RETA test on Huawei hinic Thread-Index: AdTveBz3dl1bium4TrSgKr0Jm2HvLQETSR/A Date: Mon, 15 Apr 2019 19:56:11 +0000 Message-ID: <8CE3E05A3F976642AAB0F4675D0AD20E0BA61B1E@SHSMSX101.ccr.corp.intel.com> References: <5151E1D101B7B04382075E3B0EF69373EA6383@lhreml503-mbs> In-Reply-To: <5151E1D101B7B04382075E3B0EF69373EA6383@lhreml503-mbs> 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.600.7 dlp-reaction: no-action x-ctpclassification: CTP_NT x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiOGEzZWVlNzctNmU1Ni00MTZhLWFjZjUtNzFmNzk4MzVjZjRlIiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX05UIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE3LjEwLjE4MDQuNDkiLCJUcnVzdGVkTGFiZWxIYXNoIjoiZ1Jxd1wveFM2VUJjTTliNlhwRkE4TDB5dzB5N1crR2lUQlhuVVByZVwvWm5NdGZpNDh3cUlRZTc4KzZhRHlyK3prIn0= 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] tests/pmdrss: add support for RSS RETA test on Huawei hinic 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 Rami Rosen > Sent: Wednesday, April 10, 2019 1:34 AM > To: dts@dpdk.org > Subject: [dts] [PATCH] tests/pmdrss: add support for RSS RETA test on > Huawei hinic >=20 > This patch adds support for RSS RETA test on Huawei hinic >=20 > Signed-off-by: Rami Rosen > --- > tests/TestSuite_pmdrssreta.py | 13 ++++++++++--- > 1 file changed, 10 insertions(+), 3 deletions(-) >=20 > diff --git a/tests/TestSuite_pmdrssreta.py b/tests/TestSuite_pmdrssreta.p= y > index 89086c1..4a2bfd3 100644 > --- a/tests/TestSuite_pmdrssreta.py > +++ b/tests/TestSuite_pmdrssreta.py > @@ -148,7 +148,9 @@ class TestPmdrssreta(TestCase): > i =3D 0 > for tmp_reta_line in reta_lines: > status =3D "false" > - if(self.nic in ["niantic", "redrockcanyou", "atwood", "bould= errapid"]): > + if(self.nic in ["hi1822"]): > + hash_index =3D int(tmp_reta_line["RSS hash"], 16) % 256 > + elif (self.nic in ["niantic", "redrockcanyou", "atwood", > "boulderrapid"]): > # compute the hash result of five tuple into the 7 LSBs = value. > hash_index =3D int(tmp_reta_line["RSS hash"], 16) % 128 > else: > @@ -221,7 +223,12 @@ class TestPmdrssreta(TestCase): > self.verify("error" not in out, "Configuration of RSS ha= sh failed: > Invalid argument") >=20 > # configure the reta with specific mappings. > - if(self.nic in ["niantic", "redrockcanyou", "atwood", > "boulderrapid"]): > + if(self.nic in ["hi1822"]): > + for i in range(256): > + reta_entries.insert(i, random.randint(0, queue -= 1)) > + self.dut.send_expect( > + "port config 0 rss reta (%d,%d)" % (i, reta_= entries[i]), > "testpmd> ") > + elif (self.nic in ["niantic", "redrockcanyou", "atwood", > "boulderrapid"]): > for i in range(128): > reta_entries.insert(i, random.randint(0, queue -= 1)) > self.dut.send_expect( @@ -237,7 +244,7 @@ class > TestPmdrssreta(TestCase): > self.dut.send_expect("quit", "# ", 30) >=20 > def test_rss_key_size(self): > - nic_rss_key_size =3D {"fortville_eagle": 52, "fortville_spirit":= 52, > "fortville_spirit_single": 52, "fortville_25g": 52, "niantic": 40, "e1000= ": 40, > "redrockcanyou": 40, "atwood": 40, "boulderrapid": 40, "fortpark_TLV": 5= 2} > + nic_rss_key_size =3D {"fortville_eagle": 52, "fortville_spirit": > + 52, "fortville_spirit_single": 52, "fortville_25g": 52, "niantic": 40, > + "e1000": 40, "redrockcanyou": 40, "atwood": 40, "boulderrapid": 40, > + "fortpark_TLV": 52, "hi1822": 40} > self.verify(self.nic in nic_rss_key_size.keys(), "Not supporte r= ss key > on %s" % self.nic) >=20 > dutPorts =3D self.dut.get_ports(self.nic) > -- > 2.17.1