test suite reviews and discussions
 help / color / mirror / Atom feed
* [dts] [PATCH v1] tests/TestSuite_rss_to_rte_flow.py:support carlsville nic.
@ 2020-04-13  4:29 Xu Hailin
  2020-04-20  4:55 ` Tu, Lijuan
  0 siblings, 1 reply; 2+ messages in thread
From: Xu Hailin @ 2020-04-13  4:29 UTC (permalink / raw)
  To: dts; +Cc: xu,hailin

From: "xu,hailin" <hailinx.xu@intel.com>

Add carlsville nic Judge conditions,The operation is the same as FVL.

Signed-off-by: xu,hailin <hailinx.xu@intel.com>
---
 tests/TestSuite_rss_to_rte_flow.py | 22 +++++++++++-----------
 1 file changed, 11 insertions(+), 11 deletions(-)

diff --git a/tests/TestSuite_rss_to_rte_flow.py b/tests/TestSuite_rss_to_rte_flow.py
index 593d694..7ce9a92 100644
--- a/tests/TestSuite_rss_to_rte_flow.py
+++ b/tests/TestSuite_rss_to_rte_flow.py
@@ -176,7 +176,7 @@ class TestRSS_to_Rteflow(TestCase):
 
         # Show port default RSS functions
         if (self.nic in ["fortville_eagle", "fortville_spirit",
-                         "fortville_spirit_single", "fortpark_TLV", "fortville_25g"]):
+                         "fortville_spirit_single", "fortpark_TLV", "fortville_25g", "carlsville"]):
             self.dut.send_expect(
                 "show port 0 rss-hash", "ipv4-frag ipv4-other ipv6-frag ipv6-other ip")
         else:
@@ -202,7 +202,7 @@ class TestRSS_to_Rteflow(TestCase):
         self.dut.send_expect(
             "flow create 0 ingress pattern end actions rss types all end / end", "created")
         if (self.nic in ["fortville_eagle", "fortville_spirit",
-                         "fortville_spirit_single", "fortpark_TLV", "fortville_25g"]):
+                         "fortville_spirit_single", "fortpark_TLV", "fortville_25g", "carlsville"]):
             self.dut.send_expect(
                 "show port 0 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")
         else:
@@ -225,7 +225,7 @@ class TestRSS_to_Rteflow(TestCase):
 
         # Show port default RSS fucntions
         if (self.nic in ["fortville_eagle", "fortville_spirit",
-                         "fortville_spirit_single", "fortpark_TLV", "fortville_25g"]):
+                         "fortville_spirit_single", "fortpark_TLV", "fortville_25g", "carlsville"]):
             self.dut.send_expect(
                 "show port 0 rss-hash", "ipv4-frag ipv4-other ipv6-frag ipv6-other ip")
         else:
@@ -239,7 +239,7 @@ class TestRSS_to_Rteflow(TestCase):
         self.send_packet("ipv4-udp", self.tester_itf)
         out = self.dut.send_expect("stop", "testpmd> ", 120)
         if (self.nic in ["fortville_eagle", "fortville_spirit",
-                         "fortville_spirit_single", "fortpark_TLV", "fortville_25g"]):
+                         "fortville_spirit_single", "fortpark_TLV", "fortville_25g", "carlsville"]):
             self.check_packet_queue("0", out)
         else:
             self.check_packet_queue("all", out)
@@ -277,7 +277,7 @@ class TestRSS_to_Rteflow(TestCase):
         # ipv4-other and ipv6-other is enabled by default.
         # i40e
         if (self.nic in ["fortville_eagle", "fortville_spirit",
-                         "fortville_spirit_single", "fortpark_TLV", "fortville_25g"]):
+                         "fortville_spirit_single", "fortpark_TLV", "fortville_25g", "carlsville"]):
             rss_queue = ["1", "4", "7"]
             self.send_and_check(self.pkt4, rss_queue)
             self.send_and_check(self.pkt8, rss_queue)
@@ -310,7 +310,7 @@ class TestRSS_to_Rteflow(TestCase):
             "flow create 0 ingress pattern end actions rss queues 3 end / end", "created")
         # Send the packets and verify the results
         if (self.nic in ["fortville_eagle", "fortville_spirit",
-                         "fortville_spirit_single", "fortpark_TLV", "fortville_25g"]):
+                         "fortville_spirit_single", "fortpark_TLV", "fortville_25g", "carlsville"]):
             rss_queue = ["3"]
             self.send_and_check(self.pkt4, rss_queue)
             self.send_and_check(self.pkt8, rss_queue)
@@ -355,7 +355,7 @@ class TestRSS_to_Rteflow(TestCase):
             "flow create 0 ingress pattern end actions rss types udp ipv4-tcp ipv6-sctp ipv4-other end queues 1 4 7 end / end", "created")
         # send the packets and verify the results
         if (self.nic in ["fortville_eagle", "fortville_spirit",
-                         "fortville_spirit_single", "fortpark_TLV", "fortville_25g"]):
+                         "fortville_spirit_single", "fortpark_TLV", "fortville_25g", "carlsville"]):
             rss_queue = ["1", "4", "7"]
             self.send_and_check(self.pkt2, rss_queue)
             self.send_and_check(self.pkt3, rss_queue)
@@ -493,7 +493,7 @@ class TestRSS_to_Rteflow(TestCase):
             "flow create 0 ingress pattern end actions rss types ipv6-tcp ipv4-udp sctp ipv6-other end queues 5 6 7 end / end", "created")
         # send the packets and verify the results
         if (self.nic in ["fortville_eagle", "fortville_spirit",
-                         "fortville_spirit_single", "fortpark_TLV", "fortville_25g"]):
+                         "fortville_spirit_single", "fortpark_TLV", "fortville_25g", "carlsille"]):
             rss_queue = ["5", "6", "7"]
             self.send_and_check(self.pkt1, rss_queue)
             self.send_and_check(self.pkt2, rss_queue)
@@ -569,7 +569,7 @@ class TestRSS_to_Rteflow(TestCase):
         Set RSS queue rule with queue region API.
         """
         self.verify(self.nic in ["fortville_eagle", "fortville_spirit",
-                                 "fortville_spirit_single", "fortpark_TLV", "fortville_25g"], "NIC Unsupported: " + str(self.nic))
+                                 "fortville_spirit_single", "fortpark_TLV", "fortville_25g", "carlsville"], "NIC Unsupported: " + str(self.nic))
         self.pmdout.start_testpmd("%s" % self.cores, "--rxq=16 --txq=16 --port-topology=chained")
         self.dut.send_expect("set fwd rxonly", "testpmd> ", 120)
         self.dut.send_expect("set verbose 1", "testpmd> ", 120)
@@ -613,7 +613,7 @@ class TestRSS_to_Rteflow(TestCase):
         Set RSS queue rule with invalid parameter in queue region API.
         """
         self.verify(self.nic in ["fortville_eagle", "fortville_spirit",
-                                 "fortville_spirit_single", "fortpark_TLV", "fortville_25g"], "NIC Unsupported: " + str(self.nic))
+                                 "fortville_spirit_single", "fortpark_TLV", "fortville_25g", "carlsville"], "NIC Unsupported: " + str(self.nic))
         self.pmdout.start_testpmd("%s" % self.cores, "--rxq=16 --txq=16 --port-topology=chained")
         self.dut.send_expect("set fwd rxonly", "testpmd> ", 120)
         self.dut.send_expect("set verbose 1", "testpmd> ", 120)
@@ -639,7 +639,7 @@ class TestRSS_to_Rteflow(TestCase):
         The queue region is priority to RSS queue rule.
         """
         self.verify(self.nic in ["fortville_eagle", "fortville_spirit",
-                                 "fortville_spirit_single", "fortpark_TLV", "fortville_25g"], "NIC Unsupported: " + str(self.nic))
+                                 "fortville_spirit_single", "fortpark_TLV", "fortville_25g", "carlsville"], "NIC Unsupported: " + str(self.nic))
         self.pmdout.start_testpmd("%s" % self.cores, "--rxq=16 --txq=16 --port-topology=chained")
         self.dut.send_expect("port config all rss all", "testpmd> ", 120)
         self.dut.send_expect("set fwd rxonly", "testpmd> ", 120)
-- 
1.8.3.1


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

* Re: [dts] [PATCH v1] tests/TestSuite_rss_to_rte_flow.py:support carlsville nic.
  2020-04-13  4:29 [dts] [PATCH v1] tests/TestSuite_rss_to_rte_flow.py:support carlsville nic Xu Hailin
@ 2020-04-20  4:55 ` Tu, Lijuan
  0 siblings, 0 replies; 2+ messages in thread
From: Tu, Lijuan @ 2020-04-20  4:55 UTC (permalink / raw)
  To: Xu, HailinX, dts; +Cc: Xu, HailinX

Applied failed, please rework, thanks

> -----Original Message-----
> From: dts [mailto:dts-bounces@dpdk.org] On Behalf Of Xu Hailin
> Sent: Monday, April 13, 2020 12:29 PM
> To: dts@dpdk.org
> Cc: Xu, HailinX <hailinx.xu@intel.com>
> Subject: [dts] [PATCH v1] tests/TestSuite_rss_to_rte_flow.py:support
> carlsville nic.
> 
> From: "xu,hailin" <hailinx.xu@intel.com>
> 
> Add carlsville nic Judge conditions,The operation is the same as FVL.
> 
> Signed-off-by: xu,hailin <hailinx.xu@intel.com>
> ---
>  tests/TestSuite_rss_to_rte_flow.py | 22 +++++++++++-----------
>  1 file changed, 11 insertions(+), 11 deletions(-)
> 
> diff --git a/tests/TestSuite_rss_to_rte_flow.py
> b/tests/TestSuite_rss_to_rte_flow.py
> index 593d694..7ce9a92 100644
> --- a/tests/TestSuite_rss_to_rte_flow.py
> +++ b/tests/TestSuite_rss_to_rte_flow.py
> @@ -176,7 +176,7 @@ class TestRSS_to_Rteflow(TestCase):
> 
>          # Show port default RSS functions
>          if (self.nic in ["fortville_eagle", "fortville_spirit",
> -                         "fortville_spirit_single", "fortpark_TLV", "fortville_25g"]):
> +                         "fortville_spirit_single", "fortpark_TLV", "fortville_25g",
> "carlsville"]):
>              self.dut.send_expect(
>                  "show port 0 rss-hash", "ipv4-frag ipv4-other ipv6-frag ipv6-other
> ip")
>          else:
> @@ -202,7 +202,7 @@ class TestRSS_to_Rteflow(TestCase):
>          self.dut.send_expect(
>              "flow create 0 ingress pattern end actions rss types all end / end",
> "created")
>          if (self.nic in ["fortville_eagle", "fortville_spirit",
> -                         "fortville_spirit_single", "fortpark_TLV", "fortville_25g"]):
> +                         "fortville_spirit_single", "fortpark_TLV", "fortville_25g",
> "carlsville"]):
>              self.dut.send_expect(
>                  "show port 0 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")
>          else:
> @@ -225,7 +225,7 @@ class TestRSS_to_Rteflow(TestCase):
> 
>          # Show port default RSS fucntions
>          if (self.nic in ["fortville_eagle", "fortville_spirit",
> -                         "fortville_spirit_single", "fortpark_TLV", "fortville_25g"]):
> +                         "fortville_spirit_single", "fortpark_TLV", "fortville_25g",
> "carlsville"]):
>              self.dut.send_expect(
>                  "show port 0 rss-hash", "ipv4-frag ipv4-other ipv6-frag ipv6-other
> ip")
>          else:
> @@ -239,7 +239,7 @@ class TestRSS_to_Rteflow(TestCase):
>          self.send_packet("ipv4-udp", self.tester_itf)
>          out = self.dut.send_expect("stop", "testpmd> ", 120)
>          if (self.nic in ["fortville_eagle", "fortville_spirit",
> -                         "fortville_spirit_single", "fortpark_TLV", "fortville_25g"]):
> +                         "fortville_spirit_single", "fortpark_TLV", "fortville_25g",
> "carlsville"]):
>              self.check_packet_queue("0", out)
>          else:
>              self.check_packet_queue("all", out) @@ -277,7 +277,7 @@ class
> TestRSS_to_Rteflow(TestCase):
>          # ipv4-other and ipv6-other is enabled by default.
>          # i40e
>          if (self.nic in ["fortville_eagle", "fortville_spirit",
> -                         "fortville_spirit_single", "fortpark_TLV", "fortville_25g"]):
> +                         "fortville_spirit_single", "fortpark_TLV", "fortville_25g",
> "carlsville"]):
>              rss_queue = ["1", "4", "7"]
>              self.send_and_check(self.pkt4, rss_queue)
>              self.send_and_check(self.pkt8, rss_queue) @@ -310,7 +310,7 @@
> class TestRSS_to_Rteflow(TestCase):
>              "flow create 0 ingress pattern end actions rss queues 3 end / end",
> "created")
>          # Send the packets and verify the results
>          if (self.nic in ["fortville_eagle", "fortville_spirit",
> -                         "fortville_spirit_single", "fortpark_TLV", "fortville_25g"]):
> +                         "fortville_spirit_single", "fortpark_TLV", "fortville_25g",
> "carlsville"]):
>              rss_queue = ["3"]
>              self.send_and_check(self.pkt4, rss_queue)
>              self.send_and_check(self.pkt8, rss_queue) @@ -355,7 +355,7 @@
> class TestRSS_to_Rteflow(TestCase):
>              "flow create 0 ingress pattern end actions rss types udp ipv4-tcp ipv6-
> sctp ipv4-other end queues 1 4 7 end / end", "created")
>          # send the packets and verify the results
>          if (self.nic in ["fortville_eagle", "fortville_spirit",
> -                         "fortville_spirit_single", "fortpark_TLV", "fortville_25g"]):
> +                         "fortville_spirit_single", "fortpark_TLV", "fortville_25g",
> "carlsville"]):
>              rss_queue = ["1", "4", "7"]
>              self.send_and_check(self.pkt2, rss_queue)
>              self.send_and_check(self.pkt3, rss_queue) @@ -493,7 +493,7 @@
> class TestRSS_to_Rteflow(TestCase):
>              "flow create 0 ingress pattern end actions rss types ipv6-tcp ipv4-udp
> sctp ipv6-other end queues 5 6 7 end / end", "created")
>          # send the packets and verify the results
>          if (self.nic in ["fortville_eagle", "fortville_spirit",
> -                         "fortville_spirit_single", "fortpark_TLV", "fortville_25g"]):
> +                         "fortville_spirit_single", "fortpark_TLV", "fortville_25g",
> "carlsille"]):
>              rss_queue = ["5", "6", "7"]
>              self.send_and_check(self.pkt1, rss_queue)
>              self.send_and_check(self.pkt2, rss_queue) @@ -569,7 +569,7 @@
> class TestRSS_to_Rteflow(TestCase):
>          Set RSS queue rule with queue region API.
>          """
>          self.verify(self.nic in ["fortville_eagle", "fortville_spirit",
> -                                 "fortville_spirit_single", "fortpark_TLV", "fortville_25g"],
> "NIC Unsupported: " + str(self.nic))
> +                                 "fortville_spirit_single",
> + "fortpark_TLV", "fortville_25g", "carlsville"], "NIC Unsupported: " +
> + str(self.nic))
>          self.pmdout.start_testpmd("%s" % self.cores, "--rxq=16 --txq=16 --port-
> topology=chained")
>          self.dut.send_expect("set fwd rxonly", "testpmd> ", 120)
>          self.dut.send_expect("set verbose 1", "testpmd> ", 120) @@ -613,7
> +613,7 @@ class TestRSS_to_Rteflow(TestCase):
>          Set RSS queue rule with invalid parameter in queue region API.
>          """
>          self.verify(self.nic in ["fortville_eagle", "fortville_spirit",
> -                                 "fortville_spirit_single", "fortpark_TLV", "fortville_25g"],
> "NIC Unsupported: " + str(self.nic))
> +                                 "fortville_spirit_single",
> + "fortpark_TLV", "fortville_25g", "carlsville"], "NIC Unsupported: " +
> + str(self.nic))
>          self.pmdout.start_testpmd("%s" % self.cores, "--rxq=16 --txq=16 --port-
> topology=chained")
>          self.dut.send_expect("set fwd rxonly", "testpmd> ", 120)
>          self.dut.send_expect("set verbose 1", "testpmd> ", 120) @@ -639,7
> +639,7 @@ class TestRSS_to_Rteflow(TestCase):
>          The queue region is priority to RSS queue rule.
>          """
>          self.verify(self.nic in ["fortville_eagle", "fortville_spirit",
> -                                 "fortville_spirit_single", "fortpark_TLV", "fortville_25g"],
> "NIC Unsupported: " + str(self.nic))
> +                                 "fortville_spirit_single",
> + "fortpark_TLV", "fortville_25g", "carlsville"], "NIC Unsupported: " +
> + str(self.nic))
>          self.pmdout.start_testpmd("%s" % self.cores, "--rxq=16 --txq=16 --port-
> topology=chained")
>          self.dut.send_expect("port config all rss all", "testpmd> ", 120)
>          self.dut.send_expect("set fwd rxonly", "testpmd> ", 120)
> --
> 1.8.3.1


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

end of thread, other threads:[~2020-04-20  4:55 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-04-13  4:29 [dts] [PATCH v1] tests/TestSuite_rss_to_rte_flow.py:support carlsville nic Xu Hailin
2020-04-20  4:55 ` 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).