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 A36BFA05D3 for ; Sun, 24 Mar 2019 20:11:14 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 9647425D9; Sun, 24 Mar 2019 20:11:14 +0100 (CET) Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by dpdk.org (Postfix) with ESMTP id 131DB10A3 for ; Sun, 24 Mar 2019 20:11:12 +0100 (CET) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga003.jf.intel.com ([10.7.209.27]) by orsmga103.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 24 Mar 2019 12:11:12 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.60,256,1549958400"; d="scan'208";a="136885084" Received: from fmsmsx108.amr.corp.intel.com ([10.18.124.206]) by orsmga003.jf.intel.com with ESMTP; 24 Mar 2019 12:11:12 -0700 Received: from fmsmsx111.amr.corp.intel.com (10.18.116.5) by FMSMSX108.amr.corp.intel.com (10.18.124.206) with Microsoft SMTP Server (TLS) id 14.3.408.0; Sun, 24 Mar 2019 12:11:11 -0700 Received: from shsmsx102.ccr.corp.intel.com (10.239.4.154) by fmsmsx111.amr.corp.intel.com (10.18.116.5) with Microsoft SMTP Server (TLS) id 14.3.408.0; Sun, 24 Mar 2019 12:11:11 -0700 Received: from shsmsx101.ccr.corp.intel.com ([169.254.1.158]) by shsmsx102.ccr.corp.intel.com ([169.254.2.163]) with mapi id 14.03.0415.000; Mon, 25 Mar 2019 03:11:08 +0800 From: "Tu, Lijuan" To: "Peng, Yuan" , "dts@dpdk.org" CC: "Peng, Yuan" Thread-Topic: [dts] [PATCH] tests: modify key and key_len setting Thread-Index: AQHU3hOdUp9KMlI1+EiYXLtk5zofpaYbLnqA Date: Sun, 24 Mar 2019 19:11:08 +0000 Message-ID: <8CE3E05A3F976642AAB0F4675D0AD20E0BA45CF9@SHSMSX101.ccr.corp.intel.com> References: <1552973115-68537-1-git-send-email-yuan.peng@intel.com> In-Reply-To: <1552973115-68537-1-git-send-email-yuan.peng@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: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiYjQzODUwZjAtNjM5NS00ZjNkLTkwNjctNTkyYTMyOTc3MjljIiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX05UIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE3LjEwLjE4MDQuNDkiLCJUcnVzdGVkTGFiZWxIYXNoIjoieDdPR3B4c1lVNWI4YmdSRTNXblora3l2WTJcL2ZwN2QreEVCcnp3SFpyOXFWU3JFXC85Y2N0eWd3dGxKQU91aHE4In0= 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: modify key and key_len setting 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 Yuan Peng > Sent: Monday, March 18, 2019 10:25 PM > To: dts@dpdk.org > Cc: Peng, Yuan > Subject: [dts] [PATCH] tests: modify key and key_len setting >=20 > From: Peng Yuan >=20 > modify key and key_len setting in TestSuite_rss_to_rte_flow.py >=20 > Signed-off-by: Peng Yuan >=20 > diff --git a/tests/TestSuite_rss_to_rte_flow.py > b/tests/TestSuite_rss_to_rte_flow.py > index 96df3e7..12c13e7 100644 > --- a/tests/TestSuite_rss_to_rte_flow.py > +++ b/tests/TestSuite_rss_to_rte_flow.py > @@ -422,10 +422,10 @@ class TestRSS_to_Rteflow(TestCase): > list1 =3D [queue1, queue2, queue3, queue4, queue5] >=20 > # Create a rss key rule > + self.dut.send_expect("flow flush 0", "testpmd> ") > + key =3D > "1234567890123456789012345678901234567890FFFFFFFFFFFF1234567890123 > 456789012345678901234567890FFFFFFFFFFFF" > self.dut.send_expect( > - "flow flush 0", "testpmd> ") > - self.dut.send_expect( > - "flow create 0 ingress pattern end actions rss types ipv4-ud= p end key > 67108863 / end", "created") > + "flow create 0 ingress pattern end actions rss types > + ipv4-udp end key %s / end" % key, "created") > out2 =3D self.dut.send_expect("show port 0 rss-hash key", "testp= md> ", 120) > key_queue1 =3D self.send_and_check(pkt1, rss_queue) > key_queue2 =3D self.send_and_check(pkt2, rss_queue) @@ -434,18 += 434,39 > @@ class TestRSS_to_Rteflow(TestCase): > key_queue5 =3D self.send_and_check(pkt5, rss_queue) > list2 =3D [key_queue1, key_queue2, key_queue3, key_queue4, key_q= ueue5] >=20 > - self.verify((out1 !=3D out2) and (list1 !=3D list2), "the key se= tting doesn't take > effect.") > + self.verify((key in out2) and (out1 !=3D out2) and (list1 !=3D > + list2), "the key setting doesn't take effect.") >=20 > - # Create a rss key_len rule > - self.dut.send_expect( > - "flow flush 0", "testpmd> ") > - self.dut.send_expect( > - "flow create 0 ingress pattern end actions rss types ipv4-ud= p end key_len > 3 / end", "created") > - # Create a rss key rule > + # Create a rss rult with truncating key_len > + self.dut.send_expect("flow flush 0", "testpmd> ") > + key =3D > "1234567890123456789012345678901234567890FFFFFFFFFFFF1234567890123 > 456789012345678901234567890FFFFFFFFFFFF" > + key_len =3D "50" > self.dut.send_expect( > - "flow flush 0", "testpmd> ") > + "flow create 0 ingress pattern end actions rss types ipv4-ud= p end key %s > key_len %s / end" % (key, key_len), "created") > + out3 =3D self.dut.send_expect("show port 0 rss-hash key", "testp= md> ", 120) > + key_queue1 =3D self.send_and_check(pkt1, rss_queue) > + key_queue2 =3D self.send_and_check(pkt2, rss_queue) > + key_queue3 =3D self.send_and_check(pkt3, rss_queue) > + key_queue4 =3D self.send_and_check(pkt4, rss_queue) > + key_queue5 =3D self.send_and_check(pkt5, rss_queue) > + list3 =3D [key_queue1, key_queue2, key_queue3, key_queue4, > + key_queue5] > + > + self.verify((key not in out3) and (out3 !=3D out1 !=3D out2) and > + (list3 !=3D list1 !=3D list2), "the key setting doesn't take effect.") > + > + # Create a rss rule with padding key_len > + self.dut.send_expect("flow flush 0", "testpmd> ") > + key =3D > "1234567890123456789012345678901234567890FFFFFFFFFFFF1234567890123 > 456789012345678901234567890FFFFFF" > + key_len =3D "52" > self.dut.send_expect( > - "flow create 0 ingress pattern end actions rss types ipv4-ud= p end key > 67108863 key_len 3 / end", "created") > + "flow create 0 ingress pattern end actions rss types ipv4-ud= p end key %s > key_len %s / end" % (key, key_len), "created") > + out4 =3D self.dut.send_expect("show port 0 rss-hash key", "testp= md> ", 120) > + key_queue1 =3D self.send_and_check(pkt1, rss_queue) > + key_queue2 =3D self.send_and_check(pkt2, rss_queue) > + key_queue3 =3D self.send_and_check(pkt3, rss_queue) > + key_queue4 =3D self.send_and_check(pkt4, rss_queue) > + key_queue5 =3D self.send_and_check(pkt5, rss_queue) > + list4 =3D [key_queue1, key_queue2, key_queue3, key_queue4, > + key_queue5] > + > + self.verify((key in out4) and (out4 !=3D out1 !=3D out2 !=3D out= 3) > + and (list4 !=3D list1 !=3D list2), "the key setting doesn't take effect= .") >=20 > def test_disable_rss_in_commandline(self): > """ > -- > 2.7.4