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 4FED5A05FE for ; Tue, 19 Mar 2019 06:19:55 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 1104F1B19; Tue, 19 Mar 2019 06:19:55 +0100 (CET) Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by dpdk.org (Postfix) with ESMTP id D38BEA3 for ; Tue, 19 Mar 2019 06:19:52 +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 fmsmga101.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 18 Mar 2019 22:19:51 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.58,496,1544515200"; d="scan'208";a="152973586" Received: from unknown (HELO localhost.localdomain.sh.intel.com) ([10.240.176.135]) by fmsmga002.fm.intel.com with ESMTP; 18 Mar 2019 22:19:50 -0700 From: Yuan Peng To: dts@dpdk.org Cc: Peng Yuan Date: Tue, 19 Mar 2019 13:23:50 +0800 Message-Id: <1552973030-68263-1-git-send-email-yuan.peng@intel.com> X-Mailer: git-send-email 1.9.3 Subject: [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" From: Peng Yuan change key and key_len setting in rss_to_rte_flow_test_plan.rst Signed-off-by: Peng Yuan 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 -2. Set ipv4-udp RSS and show the RSS key:: +2. Set ipv4-udp RSS and show the default RSS key:: testpmd> flow create 0 ingress pattern end actions rss types ipv4-udp 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:: testpmd> flow flush 0 - testpmd> flow create 0 ingress pattern end actions rss types ipv4-udp end key 67108863 / end + testpmd> flow create 0 ingress pattern end actions rss types ipv4-udp end key \ + 1234567890123456789012345678901234567890FFFFFFFFFFFF1234567890123456789012345678901234567890FFFFFFFFFFFF / end testpmd> show port 0 rss-hash key RSS functions: ipv4-udp udp RSS key: - 4439796BB54C5023B675EA5B124F9F30B8A2C03DDFDC4D02A08C9B334AF64A4C05C6FA343958D8557D99583AE138C92E81150366 + 1234567890123456789012345678901234567890FFFFFFFFFFFF1234567890123456789012345678901234567890FFFFFFFFFFFF 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. -4. Set ipv4-udp key_len:: +4. Set ipv4-udp with truncating key_len:: testpmd> flow flush 0 - testpmd> flow create 0 ingress pattern end actions rss types ipv4-udp end key_len 3 / end + testpmd> flow create 0 ingress pattern end actions rss types ipv4-udp end key \ + 1234567890123456789012345678901234567890FFFFFFFFFFFF1234567890123456789012345678901234567890FFFFFFFFFFFF 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. -5. Set ipv4-udp key and key_len:: + The key length is 52 bytes, if setting it shorter than 52, the key value 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:: testpmd> flow flush 0 - testpmd> flow create 0 ingress pattern end actions rss types ipv4-udp end key 67108863 key_len 3 / end + testpmd> flow create 0 ingress pattern end actions rss types ipv4-udp end key \ + 1234567890123456789012345678901234567890FFFFFFFFFFFF1234567890123456789012345678901234567890FFFFFF key_len 52 / end testpmd> show port 0 rss-hash key RSS functions: ipv4-udp udp RSS key: - 4439796BB54C5023B675EA5B124F9F30B8A2C03DDFDC4D02A08C9B334AF64A4C05C6FA343958D8557D99583AE138C92E81150366 + 1234567890123456789012345678901234567890FFFFFFFFFFFF1234567890123456789012345678901234567890FFFFFF657474 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. Test case: Flow directory rule and RSS rule combination ======================================================= -- 2.7.4