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 B46BCA05D3 for ; Sun, 24 Mar 2019 20:11:06 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 6A27C1DBD; Sun, 24 Mar 2019 20:11:06 +0100 (CET) Received: from mga06.intel.com (mga06.intel.com [134.134.136.31]) by dpdk.org (Postfix) with ESMTP id AAED510A3 for ; Sun, 24 Mar 2019 20:11:04 +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 orsmga104.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 24 Mar 2019 12:11:03 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.60,256,1549958400"; d="scan'208";a="154753991" Received: from fmsmsx105.amr.corp.intel.com ([10.18.124.203]) by fmsmga002.fm.intel.com with ESMTP; 24 Mar 2019 12:11:02 -0700 Received: from fmsmsx123.amr.corp.intel.com (10.18.125.38) by FMSMSX105.amr.corp.intel.com (10.18.124.203) with Microsoft SMTP Server (TLS) id 14.3.408.0; Sun, 24 Mar 2019 12:11:02 -0700 Received: from shsmsx151.ccr.corp.intel.com (10.239.6.50) by fmsmsx123.amr.corp.intel.com (10.18.125.38) with Microsoft SMTP Server (TLS) id 14.3.408.0; Sun, 24 Mar 2019 12:11:02 -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 03:11:00 +0800 From: "Tu, Lijuan" To: "Peng, Yuan" , "dts@dpdk.org" CC: "Peng, Yuan" Thread-Topic: [dts] [PATCH] test_plans: change key and key_len setting Thread-Index: AQHU3hN5cFizo8kRa0SQtgrIhOgPpqYbLm+w Date: Sun, 24 Mar 2019 19:10:58 +0000 Message-ID: <8CE3E05A3F976642AAB0F4675D0AD20E0BA45CEB@SHSMSX101.ccr.corp.intel.com> References: <1552973030-68263-1-git-send-email-yuan.peng@intel.com> In-Reply-To: <1552973030-68263-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: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiYjFlNDdjNjEtZTFhMy00NGFkLThiNGUtMzhiYmRjMWQyMjQzIiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX05UIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE3LjEwLjE4MDQuNDkiLCJUcnVzdGVkTGFiZWxIYXNoIjoiUmpnN3RFSXcxZ3l3VnpWdUhVQnd1REplN05OSm81cFwvT0JzazVwazU4NFpoTW9FcVo1cGEwZEh2ZEp2cmMzUXgifQ== 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] test_plans: change 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:24 PM > To: dts@dpdk.org > Cc: Peng, Yuan > Subject: [dts] [PATCH] test_plans: change key and key_len setting >=20 > From: Peng Yuan >=20 > change key and key_len setting in rss_to_rte_flow_test_plan.rst >=20 > Signed-off-by: Peng Yuan >=20 > diff --git a/test_plans/rss_to_rte_flow_test_plan.rst > b/test_plans/rss_to_rte_flow_test_plan.rst > index dbbaa28..c6158bd 100644 > --- a/test_plans/rss_to_rte_flow_test_plan.rst > +++ b/test_plans/rss_to_rte_flow_test_plan.rst > @@ -278,7 +278,7 @@ Only i40e support key and key_len setting. > testpmd> set verbose 1 > testpmd> start >=20 > -2. Set ipv4-udp RSS and show the RSS key:: > +2. Set ipv4-udp RSS and show the default RSS key:: >=20 > testpmd> flow create 0 ingress pattern end actions rss types ipv4-ud= p end / > end > testpmd> show port 0 rss-hash key > @@ -304,24 +304,26 @@ Only i40e support key and key_len setting. > 3. Set ipv4-udp key:: >=20 > testpmd> flow flush 0 > - testpmd> flow create 0 ingress pattern end actions rss types ipv4-ud= p end key > 67108863 / end > + testpmd> flow create 0 ingress pattern end actions rss types ipv4-ud= p end > key \ > + > + > 1234567890123456789012345678901234567890FFFFFFFFFFFF12345678901234 > 5678 > + 9012345678901234567890FFFFFFFFFFFF / end > testpmd> show port 0 rss-hash key > RSS functions: > ipv4-udp udp > RSS key: > - > 4439796BB54C5023B675EA5B124F9F30B8A2C03DDFDC4D02A08C9B334AF64A4 > C05C6FA343958D8557D99583AE138C92E81150366 > + > + > 1234567890123456789012345678901234567890FFFFFFFFFFFF12345678901234 > 5678 > + 9012345678901234567890FFFFFFFFFFFF >=20 > Send the same five packets to port 0, > pkt1 is distributed to queue 3. > - pkt2 is distributed to queue 3. > - pkt3 is distributed to queue 0. > - pkt4 is distributed to queue 1. > - pkt5 is distributed to queue 0. > + pkt2 is distributed to queue 2. > + pkt3 is distributed to queue 2. > + pkt4 is distributed to queue 0. > + pkt5 is distributed to queue 3. >=20 > -4. Set ipv4-udp key_len:: > +4. Set ipv4-udp with truncating key_len:: >=20 > testpmd> flow flush 0 > - testpmd> flow create 0 ingress pattern end actions rss types ipv4-ud= p end > key_len 3 / end > + testpmd> flow create 0 ingress pattern end actions rss types ipv4-ud= p end > key \ > + > + > 1234567890123456789012345678901234567890FFFFFFFFFFFF12345678901234 > 5678 > + 9012345678901234567890FFFFFFFFFFFF key_len 50 / end > testpmd> show port 0 rss-hash key > RSS functions: > ipv4-udp udp > @@ -335,22 +337,30 @@ Only i40e support key and key_len setting. > pkt4 is distributed to queue 1. > pkt5 is distributed to queue 0. >=20 > -5. Set ipv4-udp key and key_len:: > + The key length is 52 bytes, if setting it shorter than 52, the key va= lue doesn't > take effect. > + The showed key value is an invalid value, not the default value. > + The key length is different among different NIC types. > + > +5. Set ipv4-udp with padding key_len:: >=20 > testpmd> flow flush 0 > - testpmd> flow create 0 ingress pattern end actions rss types ipv4-ud= p end key > 67108863 key_len 3 / end > + testpmd> flow create 0 ingress pattern end actions rss types ipv4-ud= p end > key \ > + > + > 1234567890123456789012345678901234567890FFFFFFFFFFFF12345678901234 > 5678 > + 9012345678901234567890FFFFFF key_len 52 / end > testpmd> show port 0 rss-hash key > RSS functions: > ipv4-udp udp > RSS key: > - > 4439796BB54C5023B675EA5B124F9F30B8A2C03DDFDC4D02A08C9B334AF64A4 > C05C6FA343958D8557D99583AE138C92E81150366 > + > + > 1234567890123456789012345678901234567890FFFFFFFFFFFF12345678901234 > 5678 > + 9012345678901234567890FFFFFF657474 >=20 > Send the same five packets to port 0, > pkt1 is distributed to queue 3. > - pkt2 is distributed to queue 3. > - pkt3 is distributed to queue 0. > - pkt4 is distributed to queue 1. > - pkt5 is distributed to queue 0. > + pkt2 is distributed to queue 2. > + pkt3 is distributed to queue 2. > + pkt4 is distributed to queue 0. > + pkt5 is distributed to queue 3. > + > + The lengh of key is 49 bytes, but the key_len is 52, > + so the last three bytes of key is padded by default value. >=20 > Test case: Flow directory rule and RSS rule combination > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D > -- > 2.7.4