test suite reviews and discussions
 help / color / Atom feed
* [dts] [PATCH V1] tests/TestSuite_rss_to_rte_flow:Create ivp6 TCP flow rules, but send IPv4 TCP packets, modify to send IPv6 TCP packets and Add multiple package test methods
@ 2020-07-17  7:53 xizhan4x
  2020-07-17  7:54 ` Zhang, XiX
  2020-07-24  2:25 ` Tu, Lijuan
  0 siblings, 2 replies; 4+ messages in thread
From: xizhan4x @ 2020-07-17  7:53 UTC (permalink / raw)
  To: dts; +Cc: xizhan4x

Create ivp6 TCP flow rules, but send IPv4 TCP packets, modify to send IPv6 TCP packets and Add multiple package test methods

Signed-off-by: xizhan4x <xix.zhang@intel.com>
---
 tests/TestSuite_rss_to_rte_flow.py | 80 ++++++++++++++++----------------------
 1 file changed, 33 insertions(+), 47 deletions(-)

diff --git a/tests/TestSuite_rss_to_rte_flow.py b/tests/TestSuite_rss_to_rte_flow.py
index 21ba8dc..55d5a3a 100644
--- a/tests/TestSuite_rss_to_rte_flow.py
+++ b/tests/TestSuite_rss_to_rte_flow.py
@@ -622,73 +622,59 @@ class TestRSS_to_Rteflow(TestCase):
         self.dut.send_expect("set verbose 1", "testpmd> ", 120)
         self.dut.send_expect("start", "testpmd> ", 120)
         time.sleep(2)
-        rss_queue = ["0"]
-        pkts = [self.pkt1, self.pkt2, self.pkt3, self.pkt4, self.pkt5, self.pkt6, self.pkt7, self.pkt8, self.pkt9, self.pkt10, self.pkt11]
-        self.send_and_check(pkts, rss_queue, port_id=0)
+        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, "0", port_id=0)
+        self.send_check_100_packet_queue(ptype_list1, "0", port_id=1)
 
         # enable ipv4-udp and ipv6-tcp RSS function type
         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(
             "flow create 0 ingress pattern eth / ipv6 / tcp / end actions rss types ipv6-tcp end queues end / end", "created")
-        rss_queue = ["0", "1", "2", "3", "4", "5", "6", "7"]
-        pkts = [self.pkt2, self.pkt3]
-        self.send_and_check(pkts, rss_queue, port_id=0)
-        rss_queue = ["0"]
-        pkts = [self.pkt1, self.pkt4, self.pkt5, self.pkt6, self.pkt7, self.pkt8, self.pkt9, self.pkt10]
-        self.send_and_check(pkts, rss_queue, port_id=0)
-        rss_queue = ["0"]
-        pkts = [self.pkt1, self.pkt2, self.pkt3, self.pkt4, self.pkt5, self.pkt6, self.pkt7, self.pkt8, self.pkt9, self.pkt10]
-        self.send_and_check(pkts, rss_queue, port_id=1)
+
+        ptype_list1 = ["ipv4-udp", "ipv6-tcp"]
+        self.send_check_100_packet_queue(ptype_list1, "all", port_id=0)
+        ptype_list2 = ["ipv4-other", "ipv4-frag", "ipv4-tcp", "ipv4-sctp", "ipv6-other", "ipv6-frag", "ipv6-udp", "ipv6-sctp", "l2-payload"]
+        self.send_check_100_packet_queue(ptype_list2, "0", port_id=0)
+        ptype_list3 = ["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_list3, "0", port_id=1)
 
         #  set queue 1, 4, 7 into RSS queue rule
         self.dut.send_expect(
             "flow create 0 ingress pattern end actions rss types end queues 1 4 7 end / end", "created")
-        rss_queue = ["1", "4", "7"]
-        pkts = [self.pkt2, self.pkt3]
-        self.send_and_check(pkts, rss_queue, port_id=0)
-        rss_queue = ["0"]
-        pkts = [self.pkt1, self.pkt4, self.pkt5, self.pkt6, self.pkt7, self.pkt8, self.pkt9, self.pkt10]
-        self.send_and_check(pkts, rss_queue, port_id=0)
-        rss_queue = ["0"]
-        pkts = [self.pkt1, self.pkt2, self.pkt3, self.pkt4, self.pkt5, self.pkt6, self.pkt7, self.pkt8, self.pkt9, self.pkt10]
-        self.send_and_check(pkts, rss_queue, port_id=1)
+        ptype_list1 = ["ipv4-udp", "ipv6-tcp"]
+        self.send_check_100_packet_queue(ptype_list1, ["1","4","7"], port_id=0)
+        ptype_list2 = ["ipv4-other", "ipv4-frag", "ipv4-tcp", "ipv4-sctp", "ipv6-other", "ipv6-frag", "ipv6-udp", "ipv6-sctp", "l2-payload"]
+        self.send_check_100_packet_queue(ptype_list2, "0", port_id=0)
+        ptype_list3 = ["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_list3, "0", port_id=1)
 
         # enable ipv4-udp and ipv6-other RSS function type on port 1
         self.dut.send_expect(
             "flow create 1 ingress pattern eth / ipv4 / udp / end actions rss types ipv4-udp end queues end / end", "created")
         self.dut.send_expect(
             "flow create 1 ingress pattern eth / ipv6 / end actions rss types ipv6-other end queues end / end", "created")
-        rss_queue = ["1", "4", "7"]
-        pkts = [self.pkt2, self.pkt3]
-        self.send_and_check(pkts, rss_queue, port_id=0)
-        rss_queue = ["0"]
-        pkts = [self.pkt1, self.pkt4, self.pkt5, self.pkt6, self.pkt7, self.pkt8, self.pkt9, self.pkt10]
-        self.send_and_check(pkts, rss_queue, port_id=0)
-
-        rss_queue = ["0", "1", "2", "3", "4", "5", "6", "7"]
-        pkts = [self.pkt2, self.pkt8]
-        self.send_and_check(pkts, rss_queue, port_id=1)
-        rss_queue = ["0"]
-        pkts = [self.pkt1, self.pkt3, self.pkt4, self.pkt5, self.pkt6, self.pkt7, self.pkt9, self.pkt10]
-        self.send_and_check(pkts, rss_queue, port_id=1)
+        ptype_list1 = ["ipv4-udp", "ipv6-tcp"]
+        self.send_check_100_packet_queue(ptype_list1, ["1","4","7"], port_id=0)
+        ptype_list2 = ["ipv4-other", "ipv4-frag", "ipv4-tcp", "ipv4-sctp", "ipv6-other", "ipv6-frag", "ipv6-udp", "ipv6-sctp", "l2-payload"]
+        self.send_check_100_packet_queue(ptype_list2, "0", port_id=0)
+        ptype_list3 = ["ipv4-udp", "ipv6-other"]
+        self.send_check_100_packet_queue(ptype_list3, "all", port_id=1)
+        ptype_list4 = ["ipv4-other", "ipv4-frag", "ipv4-tcp", "ipv4-sctp", "ipv6-frag", "ipv6-udp", "ipv6-tcp", "ipv6-sctp", "l2-payload"]
+        self.send_check_100_packet_queue(ptype_list4, "0", port_id=1)
 
         self.dut.send_expect("flow flush 0", "testpmd> ")
-        rss_queue = ["0"]
-        pkts = [self.pkt1, self.pkt2, self.pkt3, self.pkt4, self.pkt5, self.pkt6, self.pkt7, self.pkt8, self.pkt9, self.pkt10]
-        self.send_and_check(pkts, rss_queue, port_id=0)
-        rss_queue = ["0", "1", "2", "3", "4", "5", "6", "7"]
-        pkts = [self.pkt2, self.pkt8]
-        self.send_and_check(pkts, rss_queue, port_id=1)
-        rss_queue = ["0"]
-        pkts = [self.pkt1, self.pkt3, self.pkt4, self.pkt5, self.pkt6, self.pkt7, self.pkt9, self.pkt10]
-        self.send_and_check(pkts, rss_queue, port_id=1)
+        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, "0", port_id=0)
+        ptype_list2 = ["ipv4-udp", "ipv6-other"]
+        self.send_check_100_packet_queue(ptype_list2, "all", port_id=1)
+        ptype_list3 = ["ipv4-other", "ipv4-frag", "ipv4-tcp", "ipv4-sctp", "ipv6-frag", "ipv6-udp", "ipv6-tcp", "ipv6-sctp", "l2-payload"]
+        self.send_check_100_packet_queue(ptype_list3, "0", port_id=1)
 
         self.dut.send_expect("flow flush 1", "testpmd> ")
-        rss_queue = ["0"]
-        pkts = [self.pkt1, self.pkt2, self.pkt3, self.pkt4, self.pkt5, self.pkt6, self.pkt7, self.pkt8, self.pkt9, self.pkt10]
-        self.send_and_check(pkts, rss_queue, port_id=0)
-        self.send_and_check(pkts, rss_queue, port_id=1)
+        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, "0", port_id=0)
+        self.send_check_100_packet_queue(ptype_list1, "0", port_id=1)
 
     def test_flow_director_rss_rule_combination(self):
         """
-- 
1.8.3.1


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

* Re: [dts] [PATCH V1] tests/TestSuite_rss_to_rte_flow:Create ivp6 TCP flow rules, but send IPv4 TCP packets, modify to send IPv6 TCP packets and Add multiple package test methods
  2020-07-17  7:53 [dts] [PATCH V1] tests/TestSuite_rss_to_rte_flow:Create ivp6 TCP flow rules, but send IPv4 TCP packets, modify to send IPv6 TCP packets and Add multiple package test methods xizhan4x
@ 2020-07-17  7:54 ` Zhang, XiX
  2020-07-17  7:59   ` Peng, Yuan
  2020-07-24  2:25 ` Tu, Lijuan
  1 sibling, 1 reply; 4+ messages in thread
From: Zhang, XiX @ 2020-07-17  7:54 UTC (permalink / raw)
  To: dts

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

Tested-by: Zhang, XiX <xix.zhang@intel.com>

-----Original Message-----
From: Zhang, XiX 
Sent: Friday, July 17, 2020 3:53 PM
To: dts@dpdk.org
Cc: Zhang, XiX <xix.zhang@intel.com>
Subject: [dts][PATCH V1] tests/TestSuite_rss_to_rte_flow:Create ivp6 TCP flow rules, but send IPv4 TCP packets, modify to send IPv6 TCP packets and Add multiple package test methods

Create ivp6 TCP flow rules, but send IPv4 TCP packets, modify to send IPv6 TCP packets and Add multiple package test methods

Signed-off-by: xizhan4x <xix.zhang@intel.com>
---
 tests/TestSuite_rss_to_rte_flow.py | 80 ++++++++++++++++----------------------
 1 file changed, 33 insertions(+), 47 deletions(-)

diff --git a/tests/TestSuite_rss_to_rte_flow.py b/tests/TestSuite_rss_to_rte_flow.py
index 21ba8dc..55d5a3a 100644
--- a/tests/TestSuite_rss_to_rte_flow.py
+++ b/tests/TestSuite_rss_to_rte_flow.py
@@ -622,73 +622,59 @@ class TestRSS_to_Rteflow(TestCase):
         self.dut.send_expect("set verbose 1", "testpmd> ", 120)
         self.dut.send_expect("start", "testpmd> ", 120)
         time.sleep(2)
-        rss_queue = ["0"]
-        pkts = [self.pkt1, self.pkt2, self.pkt3, self.pkt4, self.pkt5, self.pkt6, self.pkt7, self.pkt8, self.pkt9, self.pkt10, self.pkt11]
-        self.send_and_check(pkts, rss_queue, port_id=0)
+        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, "0", port_id=0)
+        self.send_check_100_packet_queue(ptype_list1, "0", port_id=1)
 
         # enable ipv4-udp and ipv6-tcp RSS function type
         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(
             "flow create 0 ingress pattern eth / ipv6 / tcp / end actions rss types ipv6-tcp end queues end / end", "created")
-        rss_queue = ["0", "1", "2", "3", "4", "5", "6", "7"]
-        pkts = [self.pkt2, self.pkt3]
-        self.send_and_check(pkts, rss_queue, port_id=0)
-        rss_queue = ["0"]
-        pkts = [self.pkt1, self.pkt4, self.pkt5, self.pkt6, self.pkt7, self.pkt8, self.pkt9, self.pkt10]
-        self.send_and_check(pkts, rss_queue, port_id=0)
-        rss_queue = ["0"]
-        pkts = [self.pkt1, self.pkt2, self.pkt3, self.pkt4, self.pkt5, self.pkt6, self.pkt7, self.pkt8, self.pkt9, self.pkt10]
-        self.send_and_check(pkts, rss_queue, port_id=1)
+
+        ptype_list1 = ["ipv4-udp", "ipv6-tcp"]
+        self.send_check_100_packet_queue(ptype_list1, "all", port_id=0)
+        ptype_list2 = ["ipv4-other", "ipv4-frag", "ipv4-tcp", "ipv4-sctp", "ipv6-other", "ipv6-frag", "ipv6-udp", "ipv6-sctp", "l2-payload"]
+        self.send_check_100_packet_queue(ptype_list2, "0", port_id=0)
+        ptype_list3 = ["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_list3, "0", port_id=1)
 
         #  set queue 1, 4, 7 into RSS queue rule
         self.dut.send_expect(
             "flow create 0 ingress pattern end actions rss types end queues 1 4 7 end / end", "created")
-        rss_queue = ["1", "4", "7"]
-        pkts = [self.pkt2, self.pkt3]
-        self.send_and_check(pkts, rss_queue, port_id=0)
-        rss_queue = ["0"]
-        pkts = [self.pkt1, self.pkt4, self.pkt5, self.pkt6, self.pkt7, self.pkt8, self.pkt9, self.pkt10]
-        self.send_and_check(pkts, rss_queue, port_id=0)
-        rss_queue = ["0"]
-        pkts = [self.pkt1, self.pkt2, self.pkt3, self.pkt4, self.pkt5, self.pkt6, self.pkt7, self.pkt8, self.pkt9, self.pkt10]
-        self.send_and_check(pkts, rss_queue, port_id=1)
+        ptype_list1 = ["ipv4-udp", "ipv6-tcp"]
+        self.send_check_100_packet_queue(ptype_list1, ["1","4","7"], port_id=0)
+        ptype_list2 = ["ipv4-other", "ipv4-frag", "ipv4-tcp", "ipv4-sctp", "ipv6-other", "ipv6-frag", "ipv6-udp", "ipv6-sctp", "l2-payload"]
+        self.send_check_100_packet_queue(ptype_list2, "0", port_id=0)
+        ptype_list3 = ["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_list3, "0", port_id=1)
 
         # enable ipv4-udp and ipv6-other RSS function type on port 1
         self.dut.send_expect(
             "flow create 1 ingress pattern eth / ipv4 / udp / end actions rss types ipv4-udp end queues end / end", "created")
         self.dut.send_expect(
             "flow create 1 ingress pattern eth / ipv6 / end actions rss types ipv6-other end queues end / end", "created")
-        rss_queue = ["1", "4", "7"]
-        pkts = [self.pkt2, self.pkt3]
-        self.send_and_check(pkts, rss_queue, port_id=0)
-        rss_queue = ["0"]
-        pkts = [self.pkt1, self.pkt4, self.pkt5, self.pkt6, self.pkt7, self.pkt8, self.pkt9, self.pkt10]
-        self.send_and_check(pkts, rss_queue, port_id=0)
-
-        rss_queue = ["0", "1", "2", "3", "4", "5", "6", "7"]
-        pkts = [self.pkt2, self.pkt8]
-        self.send_and_check(pkts, rss_queue, port_id=1)
-        rss_queue = ["0"]
-        pkts = [self.pkt1, self.pkt3, self.pkt4, self.pkt5, self.pkt6, self.pkt7, self.pkt9, self.pkt10]
-        self.send_and_check(pkts, rss_queue, port_id=1)
+        ptype_list1 = ["ipv4-udp", "ipv6-tcp"]
+        self.send_check_100_packet_queue(ptype_list1, ["1","4","7"], port_id=0)
+        ptype_list2 = ["ipv4-other", "ipv4-frag", "ipv4-tcp", "ipv4-sctp", "ipv6-other", "ipv6-frag", "ipv6-udp", "ipv6-sctp", "l2-payload"]
+        self.send_check_100_packet_queue(ptype_list2, "0", port_id=0)
+        ptype_list3 = ["ipv4-udp", "ipv6-other"]
+        self.send_check_100_packet_queue(ptype_list3, "all", port_id=1)
+        ptype_list4 = ["ipv4-other", "ipv4-frag", "ipv4-tcp", "ipv4-sctp", "ipv6-frag", "ipv6-udp", "ipv6-tcp", "ipv6-sctp", "l2-payload"]
+        self.send_check_100_packet_queue(ptype_list4, "0", port_id=1)
 
         self.dut.send_expect("flow flush 0", "testpmd> ")
-        rss_queue = ["0"]
-        pkts = [self.pkt1, self.pkt2, self.pkt3, self.pkt4, self.pkt5, self.pkt6, self.pkt7, self.pkt8, self.pkt9, self.pkt10]
-        self.send_and_check(pkts, rss_queue, port_id=0)
-        rss_queue = ["0", "1", "2", "3", "4", "5", "6", "7"]
-        pkts = [self.pkt2, self.pkt8]
-        self.send_and_check(pkts, rss_queue, port_id=1)
-        rss_queue = ["0"]
-        pkts = [self.pkt1, self.pkt3, self.pkt4, self.pkt5, self.pkt6, self.pkt7, self.pkt9, self.pkt10]
-        self.send_and_check(pkts, rss_queue, port_id=1)
+        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, "0", port_id=0)
+        ptype_list2 = ["ipv4-udp", "ipv6-other"]
+        self.send_check_100_packet_queue(ptype_list2, "all", port_id=1)
+        ptype_list3 = ["ipv4-other", "ipv4-frag", "ipv4-tcp", "ipv4-sctp", "ipv6-frag", "ipv6-udp", "ipv6-tcp", "ipv6-sctp", "l2-payload"]
+        self.send_check_100_packet_queue(ptype_list3, "0", port_id=1)
 
         self.dut.send_expect("flow flush 1", "testpmd> ")
-        rss_queue = ["0"]
-        pkts = [self.pkt1, self.pkt2, self.pkt3, self.pkt4, self.pkt5, self.pkt6, self.pkt7, self.pkt8, self.pkt9, self.pkt10]
-        self.send_and_check(pkts, rss_queue, port_id=0)
-        self.send_and_check(pkts, rss_queue, port_id=1)
+        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, "0", port_id=0)
+        self.send_check_100_packet_queue(ptype_list1, "0", port_id=1)
 
     def test_flow_director_rss_rule_combination(self):
         """
-- 
1.8.3.1


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

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

* Re: [dts] [PATCH V1] tests/TestSuite_rss_to_rte_flow:Create ivp6 TCP flow rules, but send IPv4 TCP packets, modify to send IPv6 TCP packets and Add multiple package test methods
  2020-07-17  7:54 ` Zhang, XiX
@ 2020-07-17  7:59   ` Peng, Yuan
  0 siblings, 0 replies; 4+ messages in thread
From: Peng, Yuan @ 2020-07-17  7:59 UTC (permalink / raw)
  To: Zhang, XiX, dts

Acked-by Peng, Yuan <yuan.peng@intel.com>

-----Original Message-----
From: dts <dts-bounces@dpdk.org> On Behalf Of Zhang, XiX
Sent: Friday, July 17, 2020 3:55 PM
To: dts@dpdk.org
Subject: Re: [dts] [PATCH V1] tests/TestSuite_rss_to_rte_flow:Create ivp6 TCP flow rules, but send IPv4 TCP packets, modify to send IPv6 TCP packets and Add multiple package test methods

Tested-by: Zhang, XiX <xix.zhang@intel.com>

-----Original Message-----
From: Zhang, XiX 
Sent: Friday, July 17, 2020 3:53 PM
To: dts@dpdk.org
Cc: Zhang, XiX <xix.zhang@intel.com>
Subject: [dts][PATCH V1] tests/TestSuite_rss_to_rte_flow:Create ivp6 TCP flow rules, but send IPv4 TCP packets, modify to send IPv6 TCP packets and Add multiple package test methods

Create ivp6 TCP flow rules, but send IPv4 TCP packets, modify to send IPv6 TCP packets and Add multiple package test methods

Signed-off-by: xizhan4x <xix.zhang@intel.com>
---
 tests/TestSuite_rss_to_rte_flow.py | 80 ++++++++++++++++----------------------
 1 file changed, 33 insertions(+), 47 deletions(-)

diff --git a/tests/TestSuite_rss_to_rte_flow.py b/tests/TestSuite_rss_to_rte_flow.py
index 21ba8dc..55d5a3a 100644
--- a/tests/TestSuite_rss_to_rte_flow.py
+++ b/tests/TestSuite_rss_to_rte_flow.py
@@ -622,73 +622,59 @@ class TestRSS_to_Rteflow(TestCase):
         self.dut.send_expect("set verbose 1", "testpmd> ", 120)
         self.dut.send_expect("start", "testpmd> ", 120)
         time.sleep(2)
-        rss_queue = ["0"]
-        pkts = [self.pkt1, self.pkt2, self.pkt3, self.pkt4, self.pkt5, self.pkt6, self.pkt7, self.pkt8, self.pkt9, self.pkt10, self.pkt11]
-        self.send_and_check(pkts, rss_queue, port_id=0)
+        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, "0", port_id=0)
+        self.send_check_100_packet_queue(ptype_list1, "0", port_id=1)
 
         # enable ipv4-udp and ipv6-tcp RSS function type
         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(
             "flow create 0 ingress pattern eth / ipv6 / tcp / end actions rss types ipv6-tcp end queues end / end", "created")
-        rss_queue = ["0", "1", "2", "3", "4", "5", "6", "7"]
-        pkts = [self.pkt2, self.pkt3]
-        self.send_and_check(pkts, rss_queue, port_id=0)
-        rss_queue = ["0"]
-        pkts = [self.pkt1, self.pkt4, self.pkt5, self.pkt6, self.pkt7, self.pkt8, self.pkt9, self.pkt10]
-        self.send_and_check(pkts, rss_queue, port_id=0)
-        rss_queue = ["0"]
-        pkts = [self.pkt1, self.pkt2, self.pkt3, self.pkt4, self.pkt5, self.pkt6, self.pkt7, self.pkt8, self.pkt9, self.pkt10]
-        self.send_and_check(pkts, rss_queue, port_id=1)
+
+        ptype_list1 = ["ipv4-udp", "ipv6-tcp"]
+        self.send_check_100_packet_queue(ptype_list1, "all", port_id=0)
+        ptype_list2 = ["ipv4-other", "ipv4-frag", "ipv4-tcp", "ipv4-sctp", "ipv6-other", "ipv6-frag", "ipv6-udp", "ipv6-sctp", "l2-payload"]
+        self.send_check_100_packet_queue(ptype_list2, "0", port_id=0)
+        ptype_list3 = ["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_list3, "0", port_id=1)
 
         #  set queue 1, 4, 7 into RSS queue rule
         self.dut.send_expect(
             "flow create 0 ingress pattern end actions rss types end queues 1 4 7 end / end", "created")
-        rss_queue = ["1", "4", "7"]
-        pkts = [self.pkt2, self.pkt3]
-        self.send_and_check(pkts, rss_queue, port_id=0)
-        rss_queue = ["0"]
-        pkts = [self.pkt1, self.pkt4, self.pkt5, self.pkt6, self.pkt7, self.pkt8, self.pkt9, self.pkt10]
-        self.send_and_check(pkts, rss_queue, port_id=0)
-        rss_queue = ["0"]
-        pkts = [self.pkt1, self.pkt2, self.pkt3, self.pkt4, self.pkt5, self.pkt6, self.pkt7, self.pkt8, self.pkt9, self.pkt10]
-        self.send_and_check(pkts, rss_queue, port_id=1)
+        ptype_list1 = ["ipv4-udp", "ipv6-tcp"]
+        self.send_check_100_packet_queue(ptype_list1, ["1","4","7"], port_id=0)
+        ptype_list2 = ["ipv4-other", "ipv4-frag", "ipv4-tcp", "ipv4-sctp", "ipv6-other", "ipv6-frag", "ipv6-udp", "ipv6-sctp", "l2-payload"]
+        self.send_check_100_packet_queue(ptype_list2, "0", port_id=0)
+        ptype_list3 = ["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_list3, "0", port_id=1)
 
         # enable ipv4-udp and ipv6-other RSS function type on port 1
         self.dut.send_expect(
             "flow create 1 ingress pattern eth / ipv4 / udp / end actions rss types ipv4-udp end queues end / end", "created")
         self.dut.send_expect(
             "flow create 1 ingress pattern eth / ipv6 / end actions rss types ipv6-other end queues end / end", "created")
-        rss_queue = ["1", "4", "7"]
-        pkts = [self.pkt2, self.pkt3]
-        self.send_and_check(pkts, rss_queue, port_id=0)
-        rss_queue = ["0"]
-        pkts = [self.pkt1, self.pkt4, self.pkt5, self.pkt6, self.pkt7, self.pkt8, self.pkt9, self.pkt10]
-        self.send_and_check(pkts, rss_queue, port_id=0)
-
-        rss_queue = ["0", "1", "2", "3", "4", "5", "6", "7"]
-        pkts = [self.pkt2, self.pkt8]
-        self.send_and_check(pkts, rss_queue, port_id=1)
-        rss_queue = ["0"]
-        pkts = [self.pkt1, self.pkt3, self.pkt4, self.pkt5, self.pkt6, self.pkt7, self.pkt9, self.pkt10]
-        self.send_and_check(pkts, rss_queue, port_id=1)
+        ptype_list1 = ["ipv4-udp", "ipv6-tcp"]
+        self.send_check_100_packet_queue(ptype_list1, ["1","4","7"], port_id=0)
+        ptype_list2 = ["ipv4-other", "ipv4-frag", "ipv4-tcp", "ipv4-sctp", "ipv6-other", "ipv6-frag", "ipv6-udp", "ipv6-sctp", "l2-payload"]
+        self.send_check_100_packet_queue(ptype_list2, "0", port_id=0)
+        ptype_list3 = ["ipv4-udp", "ipv6-other"]
+        self.send_check_100_packet_queue(ptype_list3, "all", port_id=1)
+        ptype_list4 = ["ipv4-other", "ipv4-frag", "ipv4-tcp", "ipv4-sctp", "ipv6-frag", "ipv6-udp", "ipv6-tcp", "ipv6-sctp", "l2-payload"]
+        self.send_check_100_packet_queue(ptype_list4, "0", port_id=1)
 
         self.dut.send_expect("flow flush 0", "testpmd> ")
-        rss_queue = ["0"]
-        pkts = [self.pkt1, self.pkt2, self.pkt3, self.pkt4, self.pkt5, self.pkt6, self.pkt7, self.pkt8, self.pkt9, self.pkt10]
-        self.send_and_check(pkts, rss_queue, port_id=0)
-        rss_queue = ["0", "1", "2", "3", "4", "5", "6", "7"]
-        pkts = [self.pkt2, self.pkt8]
-        self.send_and_check(pkts, rss_queue, port_id=1)
-        rss_queue = ["0"]
-        pkts = [self.pkt1, self.pkt3, self.pkt4, self.pkt5, self.pkt6, self.pkt7, self.pkt9, self.pkt10]
-        self.send_and_check(pkts, rss_queue, port_id=1)
+        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, "0", port_id=0)
+        ptype_list2 = ["ipv4-udp", "ipv6-other"]
+        self.send_check_100_packet_queue(ptype_list2, "all", port_id=1)
+        ptype_list3 = ["ipv4-other", "ipv4-frag", "ipv4-tcp", "ipv4-sctp", "ipv6-frag", "ipv6-udp", "ipv6-tcp", "ipv6-sctp", "l2-payload"]
+        self.send_check_100_packet_queue(ptype_list3, "0", port_id=1)
 
         self.dut.send_expect("flow flush 1", "testpmd> ")
-        rss_queue = ["0"]
-        pkts = [self.pkt1, self.pkt2, self.pkt3, self.pkt4, self.pkt5, self.pkt6, self.pkt7, self.pkt8, self.pkt9, self.pkt10]
-        self.send_and_check(pkts, rss_queue, port_id=0)
-        self.send_and_check(pkts, rss_queue, port_id=1)
+        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, "0", port_id=0)
+        self.send_check_100_packet_queue(ptype_list1, "0", port_id=1)
 
     def test_flow_director_rss_rule_combination(self):
         """
-- 
1.8.3.1


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

* Re: [dts] [PATCH V1] tests/TestSuite_rss_to_rte_flow:Create ivp6 TCP flow rules, but send IPv4 TCP packets, modify to send IPv6 TCP packets and Add multiple package test methods
  2020-07-17  7:53 [dts] [PATCH V1] tests/TestSuite_rss_to_rte_flow:Create ivp6 TCP flow rules, but send IPv4 TCP packets, modify to send IPv6 TCP packets and Add multiple package test methods xizhan4x
  2020-07-17  7:54 ` Zhang, XiX
@ 2020-07-24  2:25 ` Tu, Lijuan
  1 sibling, 0 replies; 4+ messages in thread
From: Tu, Lijuan @ 2020-07-24  2:25 UTC (permalink / raw)
  To: Zhang, XiX, dts; +Cc: Zhang, XiX

Applied, thanks

> -----Original Message-----
> From: dts <dts-bounces@dpdk.org> On Behalf Of xizhan4x
> Sent: 2020^[$BG/^[(B7^[$B7n^[(B17^[$BF|^[(B 15:53
> To: dts@dpdk.org
> Cc: Zhang, XiX <xix.zhang@intel.com>
> Subject: [dts] [PATCH V1] tests/TestSuite_rss_to_rte_flow:Create ivp6 TCP flow
> rules, but send IPv4 TCP packets, modify to send IPv6 TCP packets and Add
> multiple package test methods
> 
> Create ivp6 TCP flow rules, but send IPv4 TCP packets, modify to send IPv6 TCP
> packets and Add multiple package test methods
> 
> Signed-off-by: xizhan4x <xix.zhang@intel.com>
> ---
>  tests/TestSuite_rss_to_rte_flow.py | 80 ++++++++++++++++----------------------
>  1 file changed, 33 insertions(+), 47 deletions(-)
> 
> diff --git a/tests/TestSuite_rss_to_rte_flow.py
> b/tests/TestSuite_rss_to_rte_flow.py
> index 21ba8dc..55d5a3a 100644
> --- a/tests/TestSuite_rss_to_rte_flow.py
> +++ b/tests/TestSuite_rss_to_rte_flow.py
> @@ -622,73 +622,59 @@ class TestRSS_to_Rteflow(TestCase):
>          self.dut.send_expect("set verbose 1", "testpmd> ", 120)
>          self.dut.send_expect("start", "testpmd> ", 120)
>          time.sleep(2)
> -        rss_queue = ["0"]
> -        pkts = [self.pkt1, self.pkt2, self.pkt3, self.pkt4, self.pkt5, self.pkt6, self.pkt7,
> self.pkt8, self.pkt9, self.pkt10, self.pkt11]
> -        self.send_and_check(pkts, rss_queue, port_id=0)
> +        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, "0", port_id=0)
> +        self.send_check_100_packet_queue(ptype_list1, "0", port_id=1)
> 
>          # enable ipv4-udp and ipv6-tcp RSS function type
>          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(
>              "flow create 0 ingress pattern eth / ipv6 / tcp / end actions rss types ipv6-
> tcp end queues end / end", "created")
> -        rss_queue = ["0", "1", "2", "3", "4", "5", "6", "7"]
> -        pkts = [self.pkt2, self.pkt3]
> -        self.send_and_check(pkts, rss_queue, port_id=0)
> -        rss_queue = ["0"]
> -        pkts = [self.pkt1, self.pkt4, self.pkt5, self.pkt6, self.pkt7, self.pkt8, self.pkt9,
> self.pkt10]
> -        self.send_and_check(pkts, rss_queue, port_id=0)
> -        rss_queue = ["0"]
> -        pkts = [self.pkt1, self.pkt2, self.pkt3, self.pkt4, self.pkt5, self.pkt6, self.pkt7,
> self.pkt8, self.pkt9, self.pkt10]
> -        self.send_and_check(pkts, rss_queue, port_id=1)
> +
> +        ptype_list1 = ["ipv4-udp", "ipv6-tcp"]
> +        self.send_check_100_packet_queue(ptype_list1, "all", port_id=0)
> +        ptype_list2 = ["ipv4-other", "ipv4-frag", "ipv4-tcp", "ipv4-sctp", "ipv6-
> other", "ipv6-frag", "ipv6-udp", "ipv6-sctp", "l2-payload"]
> +        self.send_check_100_packet_queue(ptype_list2, "0", port_id=0)
> +        ptype_list3 = ["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_list3, "0", port_id=1)
> 
>          #  set queue 1, 4, 7 into RSS queue rule
>          self.dut.send_expect(
>              "flow create 0 ingress pattern end actions rss types end queues 1 4 7 end
> / end", "created")
> -        rss_queue = ["1", "4", "7"]
> -        pkts = [self.pkt2, self.pkt3]
> -        self.send_and_check(pkts, rss_queue, port_id=0)
> -        rss_queue = ["0"]
> -        pkts = [self.pkt1, self.pkt4, self.pkt5, self.pkt6, self.pkt7, self.pkt8, self.pkt9,
> self.pkt10]
> -        self.send_and_check(pkts, rss_queue, port_id=0)
> -        rss_queue = ["0"]
> -        pkts = [self.pkt1, self.pkt2, self.pkt3, self.pkt4, self.pkt5, self.pkt6, self.pkt7,
> self.pkt8, self.pkt9, self.pkt10]
> -        self.send_and_check(pkts, rss_queue, port_id=1)
> +        ptype_list1 = ["ipv4-udp", "ipv6-tcp"]
> +        self.send_check_100_packet_queue(ptype_list1, ["1","4","7"], port_id=0)
> +        ptype_list2 = ["ipv4-other", "ipv4-frag", "ipv4-tcp", "ipv4-sctp", "ipv6-
> other", "ipv6-frag", "ipv6-udp", "ipv6-sctp", "l2-payload"]
> +        self.send_check_100_packet_queue(ptype_list2, "0", port_id=0)
> +        ptype_list3 = ["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_list3, "0", port_id=1)
> 
>          # enable ipv4-udp and ipv6-other RSS function type on port 1
>          self.dut.send_expect(
>              "flow create 1 ingress pattern eth / ipv4 / udp / end actions rss types
> ipv4-udp end queues end / end", "created")
>          self.dut.send_expect(
>              "flow create 1 ingress pattern eth / ipv6 / end actions rss types ipv6-other
> end queues end / end", "created")
> -        rss_queue = ["1", "4", "7"]
> -        pkts = [self.pkt2, self.pkt3]
> -        self.send_and_check(pkts, rss_queue, port_id=0)
> -        rss_queue = ["0"]
> -        pkts = [self.pkt1, self.pkt4, self.pkt5, self.pkt6, self.pkt7, self.pkt8, self.pkt9,
> self.pkt10]
> -        self.send_and_check(pkts, rss_queue, port_id=0)
> -
> -        rss_queue = ["0", "1", "2", "3", "4", "5", "6", "7"]
> -        pkts = [self.pkt2, self.pkt8]
> -        self.send_and_check(pkts, rss_queue, port_id=1)
> -        rss_queue = ["0"]
> -        pkts = [self.pkt1, self.pkt3, self.pkt4, self.pkt5, self.pkt6, self.pkt7, self.pkt9,
> self.pkt10]
> -        self.send_and_check(pkts, rss_queue, port_id=1)
> +        ptype_list1 = ["ipv4-udp", "ipv6-tcp"]
> +        self.send_check_100_packet_queue(ptype_list1, ["1","4","7"], port_id=0)
> +        ptype_list2 = ["ipv4-other", "ipv4-frag", "ipv4-tcp", "ipv4-sctp", "ipv6-
> other", "ipv6-frag", "ipv6-udp", "ipv6-sctp", "l2-payload"]
> +        self.send_check_100_packet_queue(ptype_list2, "0", port_id=0)
> +        ptype_list3 = ["ipv4-udp", "ipv6-other"]
> +        self.send_check_100_packet_queue(ptype_list3, "all", port_id=1)
> +        ptype_list4 = ["ipv4-other", "ipv4-frag", "ipv4-tcp", "ipv4-sctp", "ipv6-frag",
> "ipv6-udp", "ipv6-tcp", "ipv6-sctp", "l2-payload"]
> +        self.send_check_100_packet_queue(ptype_list4, "0", port_id=1)
> 
>          self.dut.send_expect("flow flush 0", "testpmd> ")
> -        rss_queue = ["0"]
> -        pkts = [self.pkt1, self.pkt2, self.pkt3, self.pkt4, self.pkt5, self.pkt6, self.pkt7,
> self.pkt8, self.pkt9, self.pkt10]
> -        self.send_and_check(pkts, rss_queue, port_id=0)
> -        rss_queue = ["0", "1", "2", "3", "4", "5", "6", "7"]
> -        pkts = [self.pkt2, self.pkt8]
> -        self.send_and_check(pkts, rss_queue, port_id=1)
> -        rss_queue = ["0"]
> -        pkts = [self.pkt1, self.pkt3, self.pkt4, self.pkt5, self.pkt6, self.pkt7, self.pkt9,
> self.pkt10]
> -        self.send_and_check(pkts, rss_queue, port_id=1)
> +        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, "0", port_id=0)
> +        ptype_list2 = ["ipv4-udp", "ipv6-other"]
> +        self.send_check_100_packet_queue(ptype_list2, "all", port_id=1)
> +        ptype_list3 = ["ipv4-other", "ipv4-frag", "ipv4-tcp", "ipv4-sctp", "ipv6-frag",
> "ipv6-udp", "ipv6-tcp", "ipv6-sctp", "l2-payload"]
> +        self.send_check_100_packet_queue(ptype_list3, "0", port_id=1)
> 
>          self.dut.send_expect("flow flush 1", "testpmd> ")
> -        rss_queue = ["0"]
> -        pkts = [self.pkt1, self.pkt2, self.pkt3, self.pkt4, self.pkt5, self.pkt6, self.pkt7,
> self.pkt8, self.pkt9, self.pkt10]
> -        self.send_and_check(pkts, rss_queue, port_id=0)
> -        self.send_and_check(pkts, rss_queue, port_id=1)
> +        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, "0", port_id=0)
> +        self.send_check_100_packet_queue(ptype_list1, "0", port_id=1)
> 
>      def test_flow_director_rss_rule_combination(self):
>          """
> --
> 1.8.3.1


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

end of thread, back to index

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-07-17  7:53 [dts] [PATCH V1] tests/TestSuite_rss_to_rte_flow:Create ivp6 TCP flow rules, but send IPv4 TCP packets, modify to send IPv6 TCP packets and Add multiple package test methods xizhan4x
2020-07-17  7:54 ` Zhang, XiX
2020-07-17  7:59   ` Peng, Yuan
2020-07-24  2:25 ` 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