test suite reviews and discussions
 help / color / mirror / Atom feed
* [dts][PATCH V1] tests/rss_to_rte_flow:fix rss type display
@ 2021-11-24 16:38 Lewei Yang
  2021-11-30  3:40 ` Tu, Lijuan
  0 siblings, 1 reply; 2+ messages in thread
From: Lewei Yang @ 2021-11-24 16:38 UTC (permalink / raw)
  To: dts; +Cc: Lewei Yang

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 <leweix.yang@intel.com>
---
 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


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-11-30  3:40 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-11-24 16:38 [dts][PATCH V1] tests/rss_to_rte_flow:fix rss type display Lewei Yang
2021-11-30  3:40 ` Tu, Lijuan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).