From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 05912A0C52; Wed, 24 Nov 2021 09:37:33 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id C0C4E40A4B; Wed, 24 Nov 2021 09:37:33 +0100 (CET) Received: from mga06.intel.com (mga06.intel.com [134.134.136.31]) by mails.dpdk.org (Postfix) with ESMTP id 12C4940688 for ; Wed, 24 Nov 2021 09:37:30 +0100 (CET) X-IronPort-AV: E=McAfee;i="6200,9189,10177"; a="296037953" X-IronPort-AV: E=Sophos;i="5.87,260,1631602800"; d="scan'208";a="296037953" Received: from fmsmga007.fm.intel.com ([10.253.24.52]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 Nov 2021 00:37:30 -0800 X-IronPort-AV: E=Sophos;i="5.87,260,1631602800"; d="scan'208";a="509397891" Received: from unknown (HELO dpdk.lan) ([10.240.183.77]) by fmsmga007-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 Nov 2021 00:37:27 -0800 From: Lewei Yang To: dts@dpdk.org Cc: Lewei Yang Subject: [dts][PATCH V1] tests/rss_to_rte_flow:fix rss type display Date: Wed, 24 Nov 2021 16:38:12 +0000 Message-Id: <20211124163812.132611-1-leweix.yang@intel.com> X-Mailer: git-send-email 2.33.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: dts@dpdk.org X-Mailman-Version: 2.1.29 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 According to dpdk commit 88232b54eed8("app/testpmd: fix RSS type display"), fixes the display of the RSS hash types configured in the port, which displayed "all" even if only a single type was configured Signed-off-by: Lewei Yang --- test_plans/rss_to_rte_flow_test_plan.rst | 22 ++++++++++---------- tests/TestSuite_rss_to_rte_flow.py | 26 ++++++++++++------------ 2 files changed, 24 insertions(+), 24 deletions(-) diff --git a/test_plans/rss_to_rte_flow_test_plan.rst b/test_plans/rss_to_rte_flow_test_plan.rst index 4d332568..f770d975 100644 --- a/test_plans/rss_to_rte_flow_test_plan.rst +++ b/test_plans/rss_to_rte_flow_test_plan.rst @@ -93,11 +93,11 @@ Test case: set rss types on two ports (I40E) testpmd> show port 0 rss-hash RSS functions: - ipv4-frag ipv4-other ipv6-frag ipv6-other ip + ipv4-frag ipv4-other ipv6-frag ipv6-other testpmd> show port 1 rss-hash RSS functions: - ipv4-frag ipv4-other ipv6-frag ipv6-other ip + ipv4-frag ipv4-other ipv6-frag ipv6-other Send the ipv4-other/ipv4-frag/ipv6-other/ipv6-frag packets with different src/dst ip address to two ports. All the packets are distributed to all the four queues of two ports. @@ -111,11 +111,11 @@ Test case: set rss types on two ports (I40E) testpmd> show port 0 rss-hash RSS functions: - ipv4-udp udp + ipv4-udp testpmd> show port 1 rss-hash RSS functions: - ipv4-frag ipv4-other ipv6-frag ipv6-other ip + ipv4-frag ipv4-other ipv6-frag ipv6-other Send the ipv4-other/ipv4-frag/ipv6-other/ipv6-frag packets with different src/dst ip address to two ports. @@ -149,7 +149,7 @@ Test case: set rss types on two ports (I40E) testpmd> show port 1 rss-hash RSS functions: - all ipv4-frag ipv4-tcp ipv4-udp ipv4-sctp ipv4-other ipv6-frag ipv6-tcp ipv6-udp ipv6-sctp ipv6-other l2-payload ip udp tcp sctp + ipv4-frag ipv4-tcp ipv4-udp ipv4-sctp ipv4-other ipv6-frag ipv6-tcp ipv6-udp ipv6-sctp ipv6-other l2-payload sctp Send the ipv4-other/ipv4-frag/ipv4-udp/ipv4-tcp/ipv4-sctp/ipv6-other/ipv6-frag/ipv6-udp/ipv6-tcp/ipv6-sctp packets with different src/dst ip address or different sport/dport to port 1. All the packets are distributed to all the four queues of port 1. @@ -341,7 +341,7 @@ Test case: set rss types and rss queues on two ports (I40E) testpmd> show port 0 rss-hash RSS functions: - ipv4-frag ipv4-other ipv6-frag ipv6-other ip + ipv4-frag ipv4-other ipv6-frag ipv6-other Send the ipv4-other packets with different src/dst ip address to port 0. All the packets are distributed to all the four queues. @@ -764,7 +764,7 @@ Test case: disable and enable rss testpmd> show port 0 rss-hash RSS functions: - all ipv4 ipv6 ipv6-ex ip + ipv4 ipv6 ipv6-ex Send the ipv4-other/ipv4-udp/ipv4-tcp/ipv4-sctp/ipv4-frag/ipv6-other/ipv6-frag/ipv6-udp/ipv6-tcp/ipv6-sctp packets with different src/dst ip address. All the packets are distributed to all the four queues. @@ -785,7 +785,7 @@ Test case: disable and enable rss Flow rule #1 created testpmd> show port 0 rss-hash RSS functions: - all ipv4 ipv4-tcp ipv4-udp ipv6 ipv6-tcp ipv6-udp ipv6-ex ipv6-tcp-ex ipv6-udp-ex ip udp tcp + ipv4 ipv4-tcp ipv4-udp ipv6 ipv6-tcp ipv6-udp ipv6-ex ipv6-tcp-ex ipv6-udp-ex Send the ipv4-other/ipv4-udp/ipv4-tcp/ipv4-sctp/ipv4-frag/ipv6-other/ipv6-frag/ipv6-udp/ipv6-tcp/ipv6-sctp packets with different src/dst ip address. All the packets are distributed to all the four queues. @@ -814,7 +814,7 @@ Test case: enable ipv4-udp rss Flow rule #0 created testpmd> show port 0 rss-hash RSS functions: - all ipv4-udp udp + ipv4-udp Send the ipv4-other/ipv4-tcp/ipv4-sctp/ipv4-frag/ipv6-other/ipv6-frag/ipv6-udp/ipv6-tcp/ipv6-sctp packets with different src/dst ip address. All the packets are distributed to queue 0. @@ -889,7 +889,7 @@ Test case: Different packet types testpmd> flow create 0 ingress pattern end actions rss types udp ipv4-tcp ipv6-sctp ipv4-other end queues 1 8 15 end / end testpmd> show port 0 rss-hash RSS functions: - all ipv4-tcp ipv4-udp ipv6-udp ipv6-udp-ex udp tcp + ipv4-tcp ipv4-udp ipv6-udp ipv6-udp-ex udp 3. Send ipv4-other/ipv4-udp/ipv4-tcp/ipv4-sctp/ipv4-frag/ipv6-other/ipv6-frag/ipv6-udp/ipv6-tcp/ipv6-sctp packets with different src/dst ip address. ipv4-udp/ipv4-tcp/ipv6-udp are distributed to queue 1/8/15. @@ -901,7 +901,7 @@ Test case: Different packet types testpmd> flow create 0 ingress pattern end actions rss types ipv6 ipv4 end queues 3 8 end / end testpmd> show port 0 rss-hash RSS functions: - all ipv4 ipv6 ip + ipv4 ipv6 5. Send ipv4-other/ipv4-udp/ipv4-tcp/ipv4-sctp/ipv4-frag/ipv6-other/ipv6-frag/ipv6-udp/ipv6-tcp/ipv6-sctp packets with different src/dst ip address. all the packets are distributed to queue 1/8/15. diff --git a/tests/TestSuite_rss_to_rte_flow.py b/tests/TestSuite_rss_to_rte_flow.py index 0f69938e..4a0f92e3 100644 --- a/tests/TestSuite_rss_to_rte_flow.py +++ b/tests/TestSuite_rss_to_rte_flow.py @@ -310,9 +310,9 @@ class TestRSS_to_Rteflow(TestCase): # Show port default RSS functions self.dut.send_expect( - "show port 0 rss-hash", "ipv4-frag ipv4-other ipv6-frag ipv6-other ip") + "show port 0 rss-hash", "ipv4-frag ipv4-other ipv6-frag ipv6-other") self.dut.send_expect( - "show port 1 rss-hash", "ipv4-frag ipv4-other ipv6-frag ipv6-other ip") + "show port 1 rss-hash", "ipv4-frag ipv4-other ipv6-frag ipv6-other") self.send_check_100_packet_queue("ipv4-other", "all", port_id=0) self.send_check_100_packet_queue("ipv4-other", "all", port_id=1) @@ -324,7 +324,7 @@ class TestRSS_to_Rteflow(TestCase): self.dut.send_expect( "flow create 0 ingress pattern eth / ipv4 / udp / end actions rss types ipv4-udp end queues end / end", "created") self.dut.send_expect( - "show port 0 rss-hash", "ipv4-udp udp") + "show port 0 rss-hash", "ipv4-udp") self.send_check_100_packet_queue("ipv4-other", "0", port_id=0) self.send_check_100_packet_queue("ipv4-other", "all", port_id=1) self.send_check_100_packet_queue("ipv4-udp", "all", port_id=0) @@ -344,7 +344,7 @@ class TestRSS_to_Rteflow(TestCase): self.dut.send_expect("flow create 1 ingress pattern eth / ipv6 / sctp / end actions rss types ipv6-sctp end queues end / end", "created") self.dut.send_expect( - "show port 1 rss-hash", "all ipv4-frag ipv4-tcp ipv4-udp ipv4-sctp ipv4-other ipv6-frag ipv6-tcp ipv6-udp ipv6-sctp ipv6-other l2-payload ip udp tcp sctp") + "show port 1 rss-hash", "ipv4-frag ipv4-tcp ipv4-udp ipv4-sctp ipv4-other ipv6-frag ipv6-tcp ipv6-udp ipv6-sctp ipv6-other l2-payload sctp") # send the packets and verify the results ptype_list1 = ["ipv4-other", "ipv4-frag", "ipv4-udp", "ipv4-tcp", "ipv4-sctp", "ipv6-other", "ipv6-frag", "ipv6-udp", "ipv6-tcp", "ipv6-sctp", "l2-payload"] self.send_check_100_packet_queue(ptype_list1, "all", port_id=1) @@ -411,7 +411,7 @@ class TestRSS_to_Rteflow(TestCase): self.dut.send_expect( "flow create 0 ingress pattern end actions rss types end queues 1 4 7 end / end", "created") self.dut.send_expect( - "show port 0 rss-hash", "ipv4-frag ipv4-other ipv6-frag ipv6-other ip") + "show port 0 rss-hash", "ipv4-frag ipv4-other ipv6-frag ipv6-other") # send the packets and verify the results self.send_check_100_packet_queue("ipv4-other", ["1","4","7"], port_id=0) @@ -436,7 +436,7 @@ class TestRSS_to_Rteflow(TestCase): # flush rule on port 0 self.dut.send_expect("flow flush 0", "testpmd> ") - self.dut.send_expect("show port 0 rss-hash", "ipv4-frag ipv4-other ipv6-frag ipv6-other ip") + self.dut.send_expect("show port 0 rss-hash", "ipv4-frag ipv4-other ipv6-frag ipv6-other") # send the packets and verify the results self.send_check_100_packet_queue("ipv4-other", "all", port_id=0) self.send_check_100_packet_queue("ipv4-other", ["1","4","7"], port_id=1) @@ -834,7 +834,7 @@ class TestRSS_to_Rteflow(TestCase): time.sleep(2) # Show port default RSS functions - self.dut.send_expect("show port 0 rss-hash", "all ipv4 ipv6 ipv6-ex ip") + self.dut.send_expect("show port 0 rss-hash", "ipv4 ipv6 ipv6-ex") ptype_list1 = ["ipv4-other", "ipv4-frag", "ipv4-udp", "ipv4-tcp", "ipv4-sctp", "ipv6-other", "ipv6-frag", "ipv6-udp", "ipv6-tcp", "ipv6-sctp"] self.send_check_100_packet_queue(ptype_list1, "all", port_id=0) @@ -849,7 +849,7 @@ class TestRSS_to_Rteflow(TestCase): self.dut.send_expect( "flow create 0 ingress pattern end actions rss types all end / end", "created") self.dut.send_expect( - "show port 0 rss-hash", "all ipv4 ipv4-tcp ipv4-udp ipv6 ipv6-tcp ipv6-udp ipv6-ex ipv6-tcp-ex ipv6-udp-ex ip udp tcp") + "show port 0 rss-hash", "ipv4 ipv4-tcp ipv4-udp ipv6 ipv6-tcp ipv6-udp ipv6-ex ipv6-tcp-ex ipv6-udp-ex") self.send_check_100_packet_queue(ptype_list1, "all", port_id=0) def test_enable_ipv4_udp_rss_ixgbe_igb(self): @@ -866,12 +866,12 @@ class TestRSS_to_Rteflow(TestCase): # Show port default RSS fucntions self.dut.send_expect( - "show port 0 rss-hash", "all ipv4 ipv6 ipv6-ex ip") + "show port 0 rss-hash", "ipv4 ipv6 ipv6-ex") # enable ipv4-udp rss function self.dut.send_expect( "flow create 0 ingress pattern end actions rss types ipv4-udp end / end", "created") self.dut.send_expect( - "show port 0 rss-hash", "all ipv4-udp udp") + "show port 0 rss-hash", "ipv4-udp") # send the packets and verify the results self.send_check_100_packet_queue("ipv4-udp", "all", port_id=0) ptype_list1 = ["ipv4-other", "ipv4-frag", "ipv4-tcp", "ipv4-sctp", "ipv6-other", "ipv6-frag", "ipv6-udp", "ipv6-tcp", "ipv6-sctp"] @@ -957,7 +957,7 @@ class TestRSS_to_Rteflow(TestCase): self.dut.send_expect( "flow create 0 ingress pattern end actions rss types udp ipv4-tcp ipv6-sctp ipv4-other end queues 1 4 7 end / end", "created") self.dut.send_expect( - "show port 0 rss-hash", "all ipv4-tcp ipv4-udp ipv6-udp ipv6-udp-ex udp tcp") + "show port 0 rss-hash", "ipv4-tcp ipv4-udp ipv6-udp ipv6-udp-ex") ptype_list1 = ["ipv4-udp", "ipv4-tcp", "ipv6-udp"] ptype_list2 = ["ipv4-other", "ipv4-frag", "ipv4-sctp", "ipv6-other", "ipv6-frag", "ipv6-tcp", "ipv6-sctp"] @@ -981,7 +981,7 @@ class TestRSS_to_Rteflow(TestCase): self.dut.send_expect( "flow create 0 ingress pattern end actions rss types ipv4 ipv6 end queues 3 7 end / end", "created") self.dut.send_expect( - "show port 0 rss-hash", "all ipv4 ipv6 ip") + "show port 0 rss-hash", "ipv4 ipv6") ptype_list3 = ["ipv4-other", "ipv4-frag", "ipv4-udp", "ipv4-tcp", "ipv4-sctp", "ipv6-other", "ipv6-frag", "ipv6-udp", "ipv6-tcp", "ipv6-sctp"] if self.nic in ["foxville", "springville"]: self.send_check_100_packet_queue(ptype_list3, ["1", "3"], port_id=0) @@ -1023,7 +1023,7 @@ class TestRSS_to_Rteflow(TestCase): self.dut.send_expect( "flow create 0 ingress pattern end actions rss types ipv6-tcp ipv4-udp end queues 5 6 7 end / end", "created") self.dut.send_expect( - "show port 0 rss-hash", "all ipv4-udp ipv6-tcp udp tcp") + "show port 0 rss-hash", "ipv4-udp ipv6-tcp") # send the packets and verify the results ptype_list2 = ["ipv4-udp", "ipv6-tcp"] -- 2.33.1