test suite reviews and discussions
 help / color / Atom feed
* [dts] [PATCH V1] tests/TestSuite_rss_to_rte_flow:Support of network adapter for foxville
@ 2020-07-07  7:52 Chen Linglix
  2020-07-07  9:17 ` Chen, LingliX
  2020-07-24  1:44 ` Tu, Lijuan
  0 siblings, 2 replies; 3+ messages in thread
From: Chen Linglix @ 2020-07-07  7:52 UTC (permalink / raw)
  To: dts; +Cc: chenlinglix

From: chenlinglix <linglix.chen@intel.com>

add foxville support case

Signed-off-by: chenlinglix <linglix.chen@intel.com>
---
 conf/test_case_supportlist.json    | 15 ++++++++++-----
 tests/TestSuite_rss_to_rte_flow.py | 32 ++++++++++++++++----------------
 2 files changed, 26 insertions(+), 21 deletions(-)

diff --git a/conf/test_case_supportlist.json b/conf/test_case_supportlist.json
index 496f0af..a9cb7a6 100644
--- a/conf/test_case_supportlist.json
+++ b/conf/test_case_supportlist.json
@@ -2090,7 +2090,8 @@
                 "sageville",
                 "sagepond",
                 "springville",
-                "powerville"
+                "powerville",
+		"foxville"
             ],
             "Target": [
                 "ALL"
@@ -2134,7 +2135,8 @@
                 "sageville",
                 "sagepond",
                 "springville",
-                "powerville"
+                "powerville",
+		"foxville"
             ],
             "Target": [
                 "ALL"
@@ -2156,7 +2158,8 @@
                 "sageville",
                 "sagepond",
                 "springville",
-                "powerville"
+                "powerville",
+		"foxville"
             ],
             "Target": [
                 "ALL"
@@ -2178,7 +2181,8 @@
                 "sageville",
                 "sagepond",
                 "springville",
-                "powerville"
+                "powerville",
+		"foxville"
             ],
             "Target": [
                 "ALL"
@@ -2200,7 +2204,8 @@
                 "sageville",
                 "sagepond",
                 "springville",
-                "powerville"
+                "powerville",
+		"foxville"
             ],
             "Target": [
                 "ALL"
diff --git a/tests/TestSuite_rss_to_rte_flow.py b/tests/TestSuite_rss_to_rte_flow.py
index 21ba8dc..756a0b5 100644
--- a/tests/TestSuite_rss_to_rte_flow.py
+++ b/tests/TestSuite_rss_to_rte_flow.py
@@ -897,7 +897,7 @@ class TestRSS_to_Rteflow(TestCase):
         """
         self.verify(self.nic not in ["fortville_eagle", "fortville_spirit", "carlsville",
                                  "fortville_spirit_single", "fortpark_TLV", "fortville_25g","fortpark_BASE-T"], "NIC Unsupported: " + str(self.nic))
-        if self.nic == 'springville':
+        if self.nic in ["foxville", "springville"]:
             self.pmdout.start_testpmd("%s" % self.cores, "--rxq=4 --txq=4 --port-topology=chained")
         else:
             self.pmdout.start_testpmd("%s" % self.cores, "--rxq=8 --txq=8 --port-topology=chained")
@@ -907,7 +907,7 @@ class TestRSS_to_Rteflow(TestCase):
         time.sleep(2)
 
         # Create a rss queue rule
-        if self.nic == 'springville':
+        if self.nic in ["foxville", "springville"]:
             self.dut.send_expect(
                 "flow create 0 ingress pattern end actions rss queues 1 2 end / end", "created")
         else:
@@ -915,7 +915,7 @@ class TestRSS_to_Rteflow(TestCase):
                 "flow create 0 ingress pattern end actions rss queues 1 4 7 end / end", "created")
         # 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"]
-        if self.nic == 'springville':
+        if self.nic in ["foxville", "springville"]:
             self.send_check_100_packet_queue(ptype_list1, ["1", "2"], port_id=0)
         else:
             self.send_check_100_packet_queue(ptype_list1, ["1","4","7"], port_id=0)
@@ -940,7 +940,7 @@ class TestRSS_to_Rteflow(TestCase):
         self.dut.send_expect(
             "flow create 0 ingress pattern end actions rss queues 8 end / end", "error")
         # Set all the queues to the rule
-        if self.nic == 'springville':
+        if self.nic in ["foxville", "springville"]:
             self.dut.send_expect(
                 "flow create 0 ingress pattern end actions rss queues 0 1 2 3 end / end", "created")
         else:
@@ -954,7 +954,7 @@ class TestRSS_to_Rteflow(TestCase):
         """
         self.verify(self.nic not in ["fortville_eagle", "fortville_spirit", "carlsville",
                                  "fortville_spirit_single", "fortpark_TLV", "fortville_25g","fortpark_BASE-T"], "NIC Unsupported: " + str(self.nic))
-        if self.nic == 'springville':
+        if self.nic in ["foxville", "springville"]:
             self.pmdout.start_testpmd("%s" % self.cores, "--rxq=4 --txq=4 --port-topology=chained")
         else:
             self.pmdout.start_testpmd("%s" % self.cores, "--rxq=8 --txq=8 --port-topology=chained")
@@ -964,7 +964,7 @@ class TestRSS_to_Rteflow(TestCase):
         time.sleep(2)
 
         # Create a rss queue rule
-        if self.nic == 'springville':
+        if self.nic in ["foxville", "springville"]:
             self.dut.send_expect(
                 "flow create 0 ingress pattern end actions rss types udp ipv4-tcp ipv6-sctp ipv4-other end queues 1 2 3 end / end","created")
         else:
@@ -978,7 +978,7 @@ class TestRSS_to_Rteflow(TestCase):
         # send the packets and verify the results
         if(self.nic in ["cavium_a063", "cavium_a064"]):
             self.send_check_100_packet_queue(ptype_list1, ["1","4","7"], port_id=0)
-        elif self.nic == 'springville':
+        elif self.nic in ["foxville", "springville"]:
             self.send_check_100_packet_queue(ptype_list1, ["1", "2", "3"], port_id=0)
             self.send_check_100_packet_queue(ptype_list2, "0", port_id=0)
         else:
@@ -988,7 +988,7 @@ class TestRSS_to_Rteflow(TestCase):
         # Create different ptype rss rule.
         self.dut.send_expect("flow flush 0", "testpmd> ")
 
-        if self.nic == 'springville':
+        if self.nic in ["foxville", "springville"]:
             self.dut.send_expect(
                 "flow create 0 ingress pattern end actions rss types ipv4 ipv6 end queues 1 3 end / end", "created")
         else:
@@ -997,7 +997,7 @@ class TestRSS_to_Rteflow(TestCase):
         self.dut.send_expect(
             "show port 0 rss-hash", "all ipv4 ipv6 ip")
         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 == 'springville':
+        if self.nic in ["foxville", "springville"]:
             self.send_check_100_packet_queue(ptype_list3, ["1", "3"], port_id=0)
         else:
             self.send_check_100_packet_queue(ptype_list3, ["3","7"], port_id=0)
@@ -1008,7 +1008,7 @@ class TestRSS_to_Rteflow(TestCase):
         """
         self.verify(self.nic not in ["fortville_eagle", "fortville_spirit", "carlsville",
                                  "fortville_spirit_single", "fortpark_TLV", "fortville_25g","fortpark_BASE-T"], "NIC Unsupported: " + str(self.nic))
-        if self.nic == 'springville':
+        if self.nic in ["foxville", "springville"]:
             self.pmdout.start_testpmd("%s" % self.cores, "--rxq=4 --txq=4 --disable-rss --port-topology=chained")
         else:
             self.pmdout.start_testpmd("%s" % self.cores, "--rxq=8 --txq=8 --disable-rss --port-topology=chained")
@@ -1030,7 +1030,7 @@ class TestRSS_to_Rteflow(TestCase):
         self.send_check_100_packet_queue(ptype_list1, "0", port_id=0)
 
         # Create a rss queue rule
-        if self.nic == 'springville':
+        if self.nic in ["foxville", "springville"]:
             self.dut.send_expect(
                 "flow create 0 ingress pattern end actions rss types ipv6-tcp ipv4-udp end queues 1 2 3 end / end", "created")
         else:
@@ -1042,7 +1042,7 @@ class TestRSS_to_Rteflow(TestCase):
         # send the packets and verify the results
         ptype_list2 = ["ipv4-udp", "ipv6-tcp"]
         ptype_list3 = ["ipv4-other", "ipv4-frag", "ipv4-tcp", "ipv4-sctp", "ipv6-other", "ipv6-frag", "ipv6-udp", "ipv6-sctp"]
-        if self.nic == 'springville':
+        if self.nic in ["foxville", "springville"]:
             self.send_check_100_packet_queue(ptype_list2, ["1", "2", "3"], port_id=0)
         else:
             self.send_check_100_packet_queue(ptype_list2, ["5","6","7"], port_id=0)
@@ -1054,7 +1054,7 @@ class TestRSS_to_Rteflow(TestCase):
         """
         self.verify(self.nic not in ["fortville_eagle", "fortville_spirit", "carlsville",
                                  "fortville_spirit_single", "fortpark_TLV", "fortville_25g","fortpark_BASE-T"], "NIC Unsupported: " + str(self.nic))
-        if self.nic == 'springville':
+        if self.nic in ["foxville", "springville"]:
             self.pmdout.start_testpmd("%s" % self.cores, "--rxq=4 --txq=4 --disable-rss --port-topology=chained")
         else:
             self.pmdout.start_testpmd("%s" % self.cores, "--rxq=8 --txq=8 --pkt-filter-mode=perfect")
@@ -1064,7 +1064,7 @@ class TestRSS_to_Rteflow(TestCase):
         time.sleep(2)
 
         # Create a rss queue rule
-        if self.nic == 'springville':
+        if self.nic in ["foxville", "springville"]:
             self.dut.send_expect(
                 "flow create 0 ingress pattern end actions rss types ipv4-udp end queues 2 3 end / end", "created")
             self.send_and_check(self.pkt2, ["2", "3"], port_id=0)
@@ -1074,7 +1074,7 @@ class TestRSS_to_Rteflow(TestCase):
             self.send_and_check(self.pkt2, ["3", "4", "5"], port_id=0)
 
         # Create a flow director rule
-        if (self.nic in ["bartonhills", "powerville" , "springville"]):
+        if (self.nic in ["bartonhills", "powerville" , "springville","foxville"]):
             self.dut.send_expect(
                 "flow create 0 ingress pattern eth / ipv4 proto is 17 / udp dst is 50 / end actions queue index 1 / end", "created")
             self.send_and_check(self.pkt2, ["1"], port_id=0)
@@ -1084,7 +1084,7 @@ class TestRSS_to_Rteflow(TestCase):
             self.send_and_check(self.pkt2, ["1"], port_id=0)
         # Delete the fdir rule
         self.dut.send_expect("flow destroy 0 rule 1", "testpmd> ")
-        if self.nic == 'springville':
+        if self.nic in ["foxville", "springville"]:
             self.send_and_check(self.pkt2, ["2", "3"], port_id=0)
         else:
             self.send_and_check(self.pkt2, ["3", "4", "5"], port_id=0)
-- 
1.8.3.1


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

* Re: [dts] [PATCH V1] tests/TestSuite_rss_to_rte_flow:Support of network adapter for foxville
  2020-07-07  7:52 [dts] [PATCH V1] tests/TestSuite_rss_to_rte_flow:Support of network adapter for foxville Chen Linglix
@ 2020-07-07  9:17 ` Chen, LingliX
  2020-07-24  1:44 ` Tu, Lijuan
  1 sibling, 0 replies; 3+ messages in thread
From: Chen, LingliX @ 2020-07-07  9:17 UTC (permalink / raw)
  To: dts

[-- Attachment #1: Type: text/plain, Size: 10840 bytes --]

Tested-by:  Chen, LingliX <linglix.chen@intel.com>

Regards,
Chen, LingliX

-----Original Message-----
From: Chen, LingliX 
Sent: Tuesday, July 7, 2020 3:52 PM
To: dts@dpdk.org
Cc: Chen, LingliX <linglix.chen@intel.com>
Subject: [dts][PATCH V1] tests/TestSuite_rss_to_rte_flow:Support of network adapter for foxville

From: chenlinglix <linglix.chen@intel.com>

add foxville support case

Signed-off-by: chenlinglix <linglix.chen@intel.com>
---
 conf/test_case_supportlist.json    | 15 ++++++++++-----
 tests/TestSuite_rss_to_rte_flow.py | 32 ++++++++++++++++----------------
 2 files changed, 26 insertions(+), 21 deletions(-)

diff --git a/conf/test_case_supportlist.json b/conf/test_case_supportlist.json index 496f0af..a9cb7a6 100644
--- a/conf/test_case_supportlist.json
+++ b/conf/test_case_supportlist.json
@@ -2090,7 +2090,8 @@
                 "sageville",
                 "sagepond",
                 "springville",
-                "powerville"
+                "powerville",
+		"foxville"
             ],
             "Target": [
                 "ALL"
@@ -2134,7 +2135,8 @@
                 "sageville",
                 "sagepond",
                 "springville",
-                "powerville"
+                "powerville",
+		"foxville"
             ],
             "Target": [
                 "ALL"
@@ -2156,7 +2158,8 @@
                 "sageville",
                 "sagepond",
                 "springville",
-                "powerville"
+                "powerville",
+		"foxville"
             ],
             "Target": [
                 "ALL"
@@ -2178,7 +2181,8 @@
                 "sageville",
                 "sagepond",
                 "springville",
-                "powerville"
+                "powerville",
+		"foxville"
             ],
             "Target": [
                 "ALL"
@@ -2200,7 +2204,8 @@
                 "sageville",
                 "sagepond",
                 "springville",
-                "powerville"
+                "powerville",
+		"foxville"
             ],
             "Target": [
                 "ALL"
diff --git a/tests/TestSuite_rss_to_rte_flow.py b/tests/TestSuite_rss_to_rte_flow.py
index 21ba8dc..756a0b5 100644
--- a/tests/TestSuite_rss_to_rte_flow.py
+++ b/tests/TestSuite_rss_to_rte_flow.py
@@ -897,7 +897,7 @@ class TestRSS_to_Rteflow(TestCase):
         """
         self.verify(self.nic not in ["fortville_eagle", "fortville_spirit", "carlsville",
                                  "fortville_spirit_single", "fortpark_TLV", "fortville_25g","fortpark_BASE-T"], "NIC Unsupported: " + str(self.nic))
-        if self.nic == 'springville':
+        if self.nic in ["foxville", "springville"]:
             self.pmdout.start_testpmd("%s" % self.cores, "--rxq=4 --txq=4 --port-topology=chained")
         else:
             self.pmdout.start_testpmd("%s" % self.cores, "--rxq=8 --txq=8 --port-topology=chained") @@ -907,7 +907,7 @@ class TestRSS_to_Rteflow(TestCase):
         time.sleep(2)
 
         # Create a rss queue rule
-        if self.nic == 'springville':
+        if self.nic in ["foxville", "springville"]:
             self.dut.send_expect(
                 "flow create 0 ingress pattern end actions rss queues 1 2 end / end", "created")
         else:
@@ -915,7 +915,7 @@ class TestRSS_to_Rteflow(TestCase):
                 "flow create 0 ingress pattern end actions rss queues 1 4 7 end / end", "created")
         # 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"]
-        if self.nic == 'springville':
+        if self.nic in ["foxville", "springville"]:
             self.send_check_100_packet_queue(ptype_list1, ["1", "2"], port_id=0)
         else:
             self.send_check_100_packet_queue(ptype_list1, ["1","4","7"], port_id=0) @@ -940,7 +940,7 @@ class TestRSS_to_Rteflow(TestCase):
         self.dut.send_expect(
             "flow create 0 ingress pattern end actions rss queues 8 end / end", "error")
         # Set all the queues to the rule
-        if self.nic == 'springville':
+        if self.nic in ["foxville", "springville"]:
             self.dut.send_expect(
                 "flow create 0 ingress pattern end actions rss queues 0 1 2 3 end / end", "created")
         else:
@@ -954,7 +954,7 @@ class TestRSS_to_Rteflow(TestCase):
         """
         self.verify(self.nic not in ["fortville_eagle", "fortville_spirit", "carlsville",
                                  "fortville_spirit_single", "fortpark_TLV", "fortville_25g","fortpark_BASE-T"], "NIC Unsupported: " + str(self.nic))
-        if self.nic == 'springville':
+        if self.nic in ["foxville", "springville"]:
             self.pmdout.start_testpmd("%s" % self.cores, "--rxq=4 --txq=4 --port-topology=chained")
         else:
             self.pmdout.start_testpmd("%s" % self.cores, "--rxq=8 --txq=8 --port-topology=chained") @@ -964,7 +964,7 @@ class TestRSS_to_Rteflow(TestCase):
         time.sleep(2)
 
         # Create a rss queue rule
-        if self.nic == 'springville':
+        if self.nic in ["foxville", "springville"]:
             self.dut.send_expect(
                 "flow create 0 ingress pattern end actions rss types udp ipv4-tcp ipv6-sctp ipv4-other end queues 1 2 3 end / end","created")
         else:
@@ -978,7 +978,7 @@ class TestRSS_to_Rteflow(TestCase):
         # send the packets and verify the results
         if(self.nic in ["cavium_a063", "cavium_a064"]):
             self.send_check_100_packet_queue(ptype_list1, ["1","4","7"], port_id=0)
-        elif self.nic == 'springville':
+        elif self.nic in ["foxville", "springville"]:
             self.send_check_100_packet_queue(ptype_list1, ["1", "2", "3"], port_id=0)
             self.send_check_100_packet_queue(ptype_list2, "0", port_id=0)
         else:
@@ -988,7 +988,7 @@ class TestRSS_to_Rteflow(TestCase):
         # Create different ptype rss rule.
         self.dut.send_expect("flow flush 0", "testpmd> ")
 
-        if self.nic == 'springville':
+        if self.nic in ["foxville", "springville"]:
             self.dut.send_expect(
                 "flow create 0 ingress pattern end actions rss types ipv4 ipv6 end queues 1 3 end / end", "created")
         else:
@@ -997,7 +997,7 @@ class TestRSS_to_Rteflow(TestCase):
         self.dut.send_expect(
             "show port 0 rss-hash", "all ipv4 ipv6 ip")
         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 == 'springville':
+        if self.nic in ["foxville", "springville"]:
             self.send_check_100_packet_queue(ptype_list3, ["1", "3"], port_id=0)
         else:
             self.send_check_100_packet_queue(ptype_list3, ["3","7"], port_id=0) @@ -1008,7 +1008,7 @@ class TestRSS_to_Rteflow(TestCase):
         """
         self.verify(self.nic not in ["fortville_eagle", "fortville_spirit", "carlsville",
                                  "fortville_spirit_single", "fortpark_TLV", "fortville_25g","fortpark_BASE-T"], "NIC Unsupported: " + str(self.nic))
-        if self.nic == 'springville':
+        if self.nic in ["foxville", "springville"]:
             self.pmdout.start_testpmd("%s" % self.cores, "--rxq=4 --txq=4 --disable-rss --port-topology=chained")
         else:
             self.pmdout.start_testpmd("%s" % self.cores, "--rxq=8 --txq=8 --disable-rss --port-topology=chained") @@ -1030,7 +1030,7 @@ class TestRSS_to_Rteflow(TestCase):
         self.send_check_100_packet_queue(ptype_list1, "0", port_id=0)
 
         # Create a rss queue rule
-        if self.nic == 'springville':
+        if self.nic in ["foxville", "springville"]:
             self.dut.send_expect(
                 "flow create 0 ingress pattern end actions rss types ipv6-tcp ipv4-udp end queues 1 2 3 end / end", "created")
         else:
@@ -1042,7 +1042,7 @@ class TestRSS_to_Rteflow(TestCase):
         # send the packets and verify the results
         ptype_list2 = ["ipv4-udp", "ipv6-tcp"]
         ptype_list3 = ["ipv4-other", "ipv4-frag", "ipv4-tcp", "ipv4-sctp", "ipv6-other", "ipv6-frag", "ipv6-udp", "ipv6-sctp"]
-        if self.nic == 'springville':
+        if self.nic in ["foxville", "springville"]:
             self.send_check_100_packet_queue(ptype_list2, ["1", "2", "3"], port_id=0)
         else:
             self.send_check_100_packet_queue(ptype_list2, ["5","6","7"], port_id=0) @@ -1054,7 +1054,7 @@ class TestRSS_to_Rteflow(TestCase):
         """
         self.verify(self.nic not in ["fortville_eagle", "fortville_spirit", "carlsville",
                                  "fortville_spirit_single", "fortpark_TLV", "fortville_25g","fortpark_BASE-T"], "NIC Unsupported: " + str(self.nic))
-        if self.nic == 'springville':
+        if self.nic in ["foxville", "springville"]:
             self.pmdout.start_testpmd("%s" % self.cores, "--rxq=4 --txq=4 --disable-rss --port-topology=chained")
         else:
             self.pmdout.start_testpmd("%s" % self.cores, "--rxq=8 --txq=8 --pkt-filter-mode=perfect") @@ -1064,7 +1064,7 @@ class TestRSS_to_Rteflow(TestCase):
         time.sleep(2)
 
         # Create a rss queue rule
-        if self.nic == 'springville':
+        if self.nic in ["foxville", "springville"]:
             self.dut.send_expect(
                 "flow create 0 ingress pattern end actions rss types ipv4-udp end queues 2 3 end / end", "created")
             self.send_and_check(self.pkt2, ["2", "3"], port_id=0) @@ -1074,7 +1074,7 @@ class TestRSS_to_Rteflow(TestCase):
             self.send_and_check(self.pkt2, ["3", "4", "5"], port_id=0)
 
         # Create a flow director rule
-        if (self.nic in ["bartonhills", "powerville" , "springville"]):
+        if (self.nic in ["bartonhills", "powerville" , "springville","foxville"]):
             self.dut.send_expect(
                 "flow create 0 ingress pattern eth / ipv4 proto is 17 / udp dst is 50 / end actions queue index 1 / end", "created")
             self.send_and_check(self.pkt2, ["1"], port_id=0) @@ -1084,7 +1084,7 @@ class TestRSS_to_Rteflow(TestCase):
             self.send_and_check(self.pkt2, ["1"], port_id=0)
         # Delete the fdir rule
         self.dut.send_expect("flow destroy 0 rule 1", "testpmd> ")
-        if self.nic == 'springville':
+        if self.nic in ["foxville", "springville"]:
             self.send_and_check(self.pkt2, ["2", "3"], port_id=0)
         else:
             self.send_and_check(self.pkt2, ["3", "4", "5"], port_id=0)
--
1.8.3.1


[-- Attachment #2: TestRSS_to_Rteflow.log --]
[-- Type: application/octet-stream, Size: 2766188 bytes --]

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

* Re: [dts] [PATCH V1] tests/TestSuite_rss_to_rte_flow:Support of network adapter for foxville
  2020-07-07  7:52 [dts] [PATCH V1] tests/TestSuite_rss_to_rte_flow:Support of network adapter for foxville Chen Linglix
  2020-07-07  9:17 ` Chen, LingliX
@ 2020-07-24  1:44 ` Tu, Lijuan
  1 sibling, 0 replies; 3+ messages in thread
From: Tu, Lijuan @ 2020-07-24  1:44 UTC (permalink / raw)
  To: Chen, LingliX, dts; +Cc: Chen, LingliX

Applied, thanks

> -----Original Message-----
> From: dts <dts-bounces@dpdk.org> On Behalf Of Chen Linglix
> Sent: 2020^[$BG/^[(B7^[$B7n^[(B7^[$BF|^[(B 15:52
> To: dts@dpdk.org
> Cc: Chen, LingliX <linglix.chen@intel.com>
> Subject: [dts] [PATCH V1] tests/TestSuite_rss_to_rte_flow:Support of network
> adapter for foxville
> 
> From: chenlinglix <linglix.chen@intel.com>
> 
> add foxville support case
> 
> Signed-off-by: chenlinglix <linglix.chen@intel.com>
> ---
>  conf/test_case_supportlist.json    | 15 ++++++++++-----
>  tests/TestSuite_rss_to_rte_flow.py | 32 ++++++++++++++++----------------
>  2 files changed, 26 insertions(+), 21 deletions(-)
> 
> diff --git a/conf/test_case_supportlist.json b/conf/test_case_supportlist.json
> index 496f0af..a9cb7a6 100644
> --- a/conf/test_case_supportlist.json
> +++ b/conf/test_case_supportlist.json
> @@ -2090,7 +2090,8 @@
>                  "sageville",
>                  "sagepond",
>                  "springville",
> -                "powerville"
> +                "powerville",
> +		"foxville"
>              ],
>              "Target": [
>                  "ALL"
> @@ -2134,7 +2135,8 @@
>                  "sageville",
>                  "sagepond",
>                  "springville",
> -                "powerville"
> +                "powerville",
> +		"foxville"
>              ],
>              "Target": [
>                  "ALL"
> @@ -2156,7 +2158,8 @@
>                  "sageville",
>                  "sagepond",
>                  "springville",
> -                "powerville"
> +                "powerville",
> +		"foxville"
>              ],
>              "Target": [
>                  "ALL"
> @@ -2178,7 +2181,8 @@
>                  "sageville",
>                  "sagepond",
>                  "springville",
> -                "powerville"
> +                "powerville",
> +		"foxville"
>              ],
>              "Target": [
>                  "ALL"
> @@ -2200,7 +2204,8 @@
>                  "sageville",
>                  "sagepond",
>                  "springville",
> -                "powerville"
> +                "powerville",
> +		"foxville"
>              ],
>              "Target": [
>                  "ALL"
> diff --git a/tests/TestSuite_rss_to_rte_flow.py
> b/tests/TestSuite_rss_to_rte_flow.py
> index 21ba8dc..756a0b5 100644
> --- a/tests/TestSuite_rss_to_rte_flow.py
> +++ b/tests/TestSuite_rss_to_rte_flow.py
> @@ -897,7 +897,7 @@ class TestRSS_to_Rteflow(TestCase):
>          """
>          self.verify(self.nic not in ["fortville_eagle", "fortville_spirit", "carlsville",
>                                   "fortville_spirit_single", "fortpark_TLV",
> "fortville_25g","fortpark_BASE-T"], "NIC Unsupported: " + str(self.nic))
> -        if self.nic == 'springville':
> +        if self.nic in ["foxville", "springville"]:
>              self.pmdout.start_testpmd("%s" % self.cores, "--rxq=4 --txq=4 --port-
> topology=chained")
>          else:
>              self.pmdout.start_testpmd("%s" % self.cores, "--rxq=8 --txq=8 --port-
> topology=chained") @@ -907,7 +907,7 @@ class
> TestRSS_to_Rteflow(TestCase):
>          time.sleep(2)
> 
>          # Create a rss queue rule
> -        if self.nic == 'springville':
> +        if self.nic in ["foxville", "springville"]:
>              self.dut.send_expect(
>                  "flow create 0 ingress pattern end actions rss queues 1 2 end / end",
> "created")
>          else:
> @@ -915,7 +915,7 @@ class TestRSS_to_Rteflow(TestCase):
>                  "flow create 0 ingress pattern end actions rss queues 1 4 7 end / end",
> "created")
>          # 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"]
> -        if self.nic == 'springville':
> +        if self.nic in ["foxville", "springville"]:
>              self.send_check_100_packet_queue(ptype_list1, ["1", "2"], port_id=0)
>          else:
>              self.send_check_100_packet_queue(ptype_list1, ["1","4","7"], port_id=0)
> @@ -940,7 +940,7 @@ class TestRSS_to_Rteflow(TestCase):
>          self.dut.send_expect(
>              "flow create 0 ingress pattern end actions rss queues 8 end / end",
> "error")
>          # Set all the queues to the rule
> -        if self.nic == 'springville':
> +        if self.nic in ["foxville", "springville"]:
>              self.dut.send_expect(
>                  "flow create 0 ingress pattern end actions rss queues 0 1 2 3 end / end",
> "created")
>          else:
> @@ -954,7 +954,7 @@ class TestRSS_to_Rteflow(TestCase):
>          """
>          self.verify(self.nic not in ["fortville_eagle", "fortville_spirit", "carlsville",
>                                   "fortville_spirit_single", "fortpark_TLV",
> "fortville_25g","fortpark_BASE-T"], "NIC Unsupported: " + str(self.nic))
> -        if self.nic == 'springville':
> +        if self.nic in ["foxville", "springville"]:
>              self.pmdout.start_testpmd("%s" % self.cores, "--rxq=4 --txq=4 --port-
> topology=chained")
>          else:
>              self.pmdout.start_testpmd("%s" % self.cores, "--rxq=8 --txq=8 --port-
> topology=chained") @@ -964,7 +964,7 @@ class
> TestRSS_to_Rteflow(TestCase):
>          time.sleep(2)
> 
>          # Create a rss queue rule
> -        if self.nic == 'springville':
> +        if self.nic in ["foxville", "springville"]:
>              self.dut.send_expect(
>                  "flow create 0 ingress pattern end actions rss types udp ipv4-tcp ipv6-
> sctp ipv4-other end queues 1 2 3 end / end","created")
>          else:
> @@ -978,7 +978,7 @@ class TestRSS_to_Rteflow(TestCase):
>          # send the packets and verify the results
>          if(self.nic in ["cavium_a063", "cavium_a064"]):
>              self.send_check_100_packet_queue(ptype_list1, ["1","4","7"], port_id=0)
> -        elif self.nic == 'springville':
> +        elif self.nic in ["foxville", "springville"]:
>              self.send_check_100_packet_queue(ptype_list1, ["1", "2", "3"],
> port_id=0)
>              self.send_check_100_packet_queue(ptype_list2, "0", port_id=0)
>          else:
> @@ -988,7 +988,7 @@ class TestRSS_to_Rteflow(TestCase):
>          # Create different ptype rss rule.
>          self.dut.send_expect("flow flush 0", "testpmd> ")
> 
> -        if self.nic == 'springville':
> +        if self.nic in ["foxville", "springville"]:
>              self.dut.send_expect(
>                  "flow create 0 ingress pattern end actions rss types ipv4 ipv6 end
> queues 1 3 end / end", "created")
>          else:
> @@ -997,7 +997,7 @@ class TestRSS_to_Rteflow(TestCase):
>          self.dut.send_expect(
>              "show port 0 rss-hash", "all ipv4 ipv6 ip")
>          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 == 'springville':
> +        if self.nic in ["foxville", "springville"]:
>              self.send_check_100_packet_queue(ptype_list3, ["1", "3"], port_id=0)
>          else:
>              self.send_check_100_packet_queue(ptype_list3, ["3","7"], port_id=0)
> @@ -1008,7 +1008,7 @@ class TestRSS_to_Rteflow(TestCase):
>          """
>          self.verify(self.nic not in ["fortville_eagle", "fortville_spirit", "carlsville",
>                                   "fortville_spirit_single", "fortpark_TLV",
> "fortville_25g","fortpark_BASE-T"], "NIC Unsupported: " + str(self.nic))
> -        if self.nic == 'springville':
> +        if self.nic in ["foxville", "springville"]:
>              self.pmdout.start_testpmd("%s" % self.cores, "--rxq=4 --txq=4 --disable-
> rss --port-topology=chained")
>          else:
>              self.pmdout.start_testpmd("%s" % self.cores, "--rxq=8 --txq=8 --disable-
> rss --port-topology=chained") @@ -1030,7 +1030,7 @@ class
> TestRSS_to_Rteflow(TestCase):
>          self.send_check_100_packet_queue(ptype_list1, "0", port_id=0)
> 
>          # Create a rss queue rule
> -        if self.nic == 'springville':
> +        if self.nic in ["foxville", "springville"]:
>              self.dut.send_expect(
>                  "flow create 0 ingress pattern end actions rss types ipv6-tcp ipv4-udp
> end queues 1 2 3 end / end", "created")
>          else:
> @@ -1042,7 +1042,7 @@ class TestRSS_to_Rteflow(TestCase):
>          # send the packets and verify the results
>          ptype_list2 = ["ipv4-udp", "ipv6-tcp"]
>          ptype_list3 = ["ipv4-other", "ipv4-frag", "ipv4-tcp", "ipv4-sctp", "ipv6-other",
> "ipv6-frag", "ipv6-udp", "ipv6-sctp"]
> -        if self.nic == 'springville':
> +        if self.nic in ["foxville", "springville"]:
>              self.send_check_100_packet_queue(ptype_list2, ["1", "2", "3"],
> port_id=0)
>          else:
>              self.send_check_100_packet_queue(ptype_list2, ["5","6","7"], port_id=0)
> @@ -1054,7 +1054,7 @@ class TestRSS_to_Rteflow(TestCase):
>          """
>          self.verify(self.nic not in ["fortville_eagle", "fortville_spirit", "carlsville",
>                                   "fortville_spirit_single", "fortpark_TLV",
> "fortville_25g","fortpark_BASE-T"], "NIC Unsupported: " + str(self.nic))
> -        if self.nic == 'springville':
> +        if self.nic in ["foxville", "springville"]:
>              self.pmdout.start_testpmd("%s" % self.cores, "--rxq=4 --txq=4 --disable-
> rss --port-topology=chained")
>          else:
>              self.pmdout.start_testpmd("%s" % self.cores, "--rxq=8 --txq=8 --pkt-
> filter-mode=perfect") @@ -1064,7 +1064,7 @@ class
> TestRSS_to_Rteflow(TestCase):
>          time.sleep(2)
> 
>          # Create a rss queue rule
> -        if self.nic == 'springville':
> +        if self.nic in ["foxville", "springville"]:
>              self.dut.send_expect(
>                  "flow create 0 ingress pattern end actions rss types ipv4-udp end
> queues 2 3 end / end", "created")
>              self.send_and_check(self.pkt2, ["2", "3"], port_id=0) @@ -1074,7
> +1074,7 @@ class TestRSS_to_Rteflow(TestCase):
>              self.send_and_check(self.pkt2, ["3", "4", "5"], port_id=0)
> 
>          # Create a flow director rule
> -        if (self.nic in ["bartonhills", "powerville" , "springville"]):
> +        if (self.nic in ["bartonhills", "powerville" , "springville","foxville"]):
>              self.dut.send_expect(
>                  "flow create 0 ingress pattern eth / ipv4 proto is 17 / udp dst is 50 / end
> actions queue index 1 / end", "created")
>              self.send_and_check(self.pkt2, ["1"], port_id=0) @@ -1084,7 +1084,7
> @@ class TestRSS_to_Rteflow(TestCase):
>              self.send_and_check(self.pkt2, ["1"], port_id=0)
>          # Delete the fdir rule
>          self.dut.send_expect("flow destroy 0 rule 1", "testpmd> ")
> -        if self.nic == 'springville':
> +        if self.nic in ["foxville", "springville"]:
>              self.send_and_check(self.pkt2, ["2", "3"], port_id=0)
>          else:
>              self.send_and_check(self.pkt2, ["3", "4", "5"], port_id=0)
> --
> 1.8.3.1


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

end of thread, back to index

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-07-07  7:52 [dts] [PATCH V1] tests/TestSuite_rss_to_rte_flow:Support of network adapter for foxville Chen Linglix
2020-07-07  9:17 ` Chen, LingliX
2020-07-24  1:44 ` Tu, Lijuan

test suite reviews and discussions

Archives are clonable:
	git clone --mirror http://inbox.dpdk.org/dts/0 dts/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 dts dts/ http://inbox.dpdk.org/dts \
		dts@dpdk.org
	public-inbox-index dts


Newsgroup available over NNTP:
	nntp://inbox.dpdk.org/inbox.dpdk.dts


AGPL code for this site: git clone https://public-inbox.org/ public-inbox