test suite reviews and discussions
 help / color / mirror / Atom feed
* [dts] [PATCH V1 1/2] test_plans/ice_rss_configure: add 2 cases
@ 2022-10-09 16:14 Song Jiale
  2022-10-09 16:14 ` [dts] [PATCH V1 2/2] tests/ice_rss_configure: " Song Jiale
  0 siblings, 1 reply; 3+ messages in thread
From: Song Jiale @ 2022-10-09 16:14 UTC (permalink / raw)
  To: dts; +Cc: Song Jiale

add a case to test rss config none.
add a case to test default rss command line.

Signed-off-by: Song Jiale <songx.jiale@intel.com>
---
 test_plans/ice_rss_configure_test_plan.rst | 48 +++++++++++++++++-----
 1 file changed, 38 insertions(+), 10 deletions(-)

diff --git a/test_plans/ice_rss_configure_test_plan.rst b/test_plans/ice_rss_configure_test_plan.rst
index 34cfa73a..7d86fabc 100644
--- a/test_plans/ice_rss_configure_test_plan.rst
+++ b/test_plans/ice_rss_configure_test_plan.rst
@@ -28,7 +28,7 @@ Testpmd Command-line Options:
 
 port config all rss: set the RSS (Receive Side Scaling) mode on or off.
 
-port config all rss ip/udp/tcp/sctp/all/default
+port config all rss ip/udp/tcp/sctp/all/default/none
 
 Prerequisites
 =============
@@ -52,7 +52,7 @@ Test Case: test_command_line_option_rss_ip
 
 1. Launch the testpmd in DUT::
 
-    testpmd>./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -c 0xff -n 4 -- -i --rxq=10 --txq=10 --rss-ip
+    ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -c 0xff -n 4 -- -i --rxq=10 --txq=10 --rss-ip
     testpmd>set fwd rxonly
     testpmd>set verbose 1
     testpmd>start
@@ -172,7 +172,7 @@ Test Case: test_command_line_option_rss_udp
 
 1. Launch the testpmd in DUT::
 
-    testpmd>./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -c 0xff -n 4 -- -i --rxq=10 --txq=10 --rss-udp
+    ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -c 0xff -n 4 -- -i --rxq=10 --txq=10 --rss-udp
     testpmd>set fwd rxonly
     testpmd>set verbose 1
     testpmd>start
@@ -236,7 +236,7 @@ Test Case: test_command_line_option_disable-rss
 
 1. Launch the testpmd in DUT::
 
-    testpmd>./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -c 0xff -n 4 -- -i --rxq=10 --txq=10 --disable-rss
+    ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -c 0xff -n 4 -- -i --rxq=10 --txq=10 --disable-rss
     testpmd>set fwd rxonly
     testpmd>set verbose 1
     testpmd>start
@@ -253,12 +253,24 @@ Test Case: test_command_line_option_disable-rss
         sendp([Ether(dst="00:00:00:00:01:00")/IP(src="192.168.0.2",dst="192.168.0.3")/SCTP(sport=1024,dport=1025)/("X"*40)], iface="enp27s0f2")
         sendp([Ether(dst="00:00:00:00:01:00")/IPv6(src="3ffe:2501:200:3::2",dst="3ffe:2501:200:3::3")/SCTP(sport=1024,dport=1025)/("X"*40)], iface="enp27s0f2")
 
+Test Case: test_command_line_option_rss_default
+===============================================
+
+1. Launch the testpmd in DUT::
+
+    ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -c 0xff -n 4 -- -i --rxq=10 --txq=10
+    testpmd>set fwd rxonly
+    testpmd>set verbose 1
+    testpmd>start
+
+2. The rss phenomenon of all packets is the same as that of test_command_line_option_rss_ip
+
 Test Case: test_RSS_configure_to_ip
 ===================================
 
 1. Launch the testpmd in DUT::
 
-    testpmd>./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -c 0xff -n 4 -- -i --rxq=10 --txq=10
+    ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -c 0xff -n 4 -- -i --rxq=10 --txq=10
     testpmd>set fwd rxonly
     testpmd>set verbose 1
 
@@ -382,7 +394,7 @@ Test Case: test_RSS_configure_to_udp
 
 1. Launch the testpmd in DUT::
 
-    testpmd>./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -c 0xff -n 4 -- -i --rxq=10 --txq=10
+    ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -c 0xff -n 4 -- -i --rxq=10 --txq=10
     testpmd>set fwd rxonly
     testpmd>set verbose 1
 
@@ -450,7 +462,7 @@ Test Case: test_RSS_configure_to_tcp
 
 1. Launch the testpmd in DUT::
 
-    testpmd>./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -c 0xff -n 4 -- -i --rxq=10 --txq=10
+    ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -c 0xff -n 4 -- -i --rxq=10 --txq=10
     testpmd>set fwd rxonly
     testpmd>set verbose 1
 
@@ -518,7 +530,7 @@ Test Case: test_RSS_configure_to_sctp
 
 1. Launch the testpmd in DUT::
 
-    testpmd>./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -c 0xff -n 4 -- -i --rxq=10 --txq=10
+    ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -c 0xff -n 4 -- -i --rxq=10 --txq=10
     testpmd>set fwd rxonly
     testpmd>set verbose 1
 
@@ -586,7 +598,7 @@ Test Case: test_RSS_configure_to_all
 
 1. Launch the testpmd in DUT::
 
-    testpmd>./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -c 0xff -n 4 -- -i --rxq=10 --txq=10
+    ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -c 0xff -n 4 -- -i --rxq=10 --txq=10
     testpmd>set fwd rxonly
     testpmd>set verbose 1
 
@@ -692,7 +704,7 @@ Test Case: test_RSS_configure_to_default
 
 1. Launch the testpmd in DUT::
 
-    testpmd>./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -c 0xff -n 4 -- -i --rxq=10 --txq=10
+    ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -c 0xff -n 4 -- -i --rxq=10 --txq=10
     testpmd>set fwd rxonly
     testpmd>set verbose 1
 
@@ -792,3 +804,19 @@ Test Case: test_RSS_configure_to_default
         sendp([Ether(dst="00:00:00:00:01:00")/IPv6(src="3ffe:2501:200:3::2",dst="3ffe:2501:200:3::5")/SCTP(sport=1024,dport=1025)/("X"*40)], iface="enp27s0f2")
         sendp([Ether(dst="00:00:00:00:01:00")/IPv6(src="3ffe:2501:200:3::2",dst="3ffe:2501:200:3::3")/SCTP(sport=1024,dport=1026)/("X"*40)], iface="enp27s0f2")
         sendp([Ether(dst="00:00:00:00:01:00")/IPv6(src="3ffe:2501:200:3::2",dst="3ffe:2501:200:3::3")/SCTP(sport=1026,dport=1025)/("X"*40)], iface="enp27s0f2")
+
+Test Case: test_RSS_configure_to_none
+=====================================
+
+1. Launch the testpmd in DUT::
+
+    ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -c 0xff -n 4 -- -i --rxq=10 --txq=10
+    testpmd>set fwd rxonly
+    testpmd>set verbose 1
+
+2. rss received package type configuration::
+
+    testpmd> port config all none all
+    testpmd> start
+
+3. The rss phenomenon of all packets is the same as that of test_command_line_option_disable-rss
\ No newline at end of file
-- 
2.17.1


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

* [dts] [PATCH V1 2/2] tests/ice_rss_configure: add 2 cases
  2022-10-09 16:14 [dts] [PATCH V1 1/2] test_plans/ice_rss_configure: add 2 cases Song Jiale
@ 2022-10-09 16:14 ` Song Jiale
  2022-10-10  3:36   ` lijuan.tu
  0 siblings, 1 reply; 3+ messages in thread
From: Song Jiale @ 2022-10-09 16:14 UTC (permalink / raw)
  To: dts; +Cc: Song Jiale

add a case to test rss config none.
add a case to test default rss command line.

Signed-off-by: Song Jiale <songx.jiale@intel.com>
---
 tests/TestSuite_ice_rss_configure.py | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/tests/TestSuite_ice_rss_configure.py b/tests/TestSuite_ice_rss_configure.py
index 8cc41bf0..c0f73c82 100644
--- a/tests/TestSuite_ice_rss_configure.py
+++ b/tests/TestSuite_ice_rss_configure.py
@@ -334,6 +334,10 @@ class RSSConfigureTest(TestCase):
         self.launch_testpmd(line_option="--disable-rss")
         self.rsspro.handle_rss_distribute_cases(command_line_option_disable_rss)
 
+    def test_command_line_option_rss_default(self):
+        self.launch_testpmd()
+        self.rsspro.handle_rss_distribute_cases(command_line_option_rss_ip)
+
     def test_rss_configure_to_ip(self):
         self.launch_testpmd(rss_type="ip")
         self.rsspro.handle_rss_distribute_cases(rss_configure_to_ip)
@@ -358,6 +362,10 @@ class RSSConfigureTest(TestCase):
         self.launch_testpmd(rss_type="default")
         self.rsspro.handle_rss_distribute_cases(rss_configure_to_default)
 
+    def test_rss_configure_to_none(self):
+        self.launch_testpmd(rss_type="none")
+        self.rsspro.handle_rss_distribute_cases(command_line_option_disable_rss)
+
     def tear_down(self):
         """
         Run after each test case.
-- 
2.17.1


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

* [dts] [PATCH V1 2/2] tests/ice_rss_configure: add 2 cases
  2022-10-09 16:14 ` [dts] [PATCH V1 2/2] tests/ice_rss_configure: " Song Jiale
@ 2022-10-10  3:36   ` lijuan.tu
  0 siblings, 0 replies; 3+ messages in thread
From: lijuan.tu @ 2022-10-10  3:36 UTC (permalink / raw)
  To: dts, Song Jiale; +Cc: Song Jiale

On Sun,  9 Oct 2022 16:14:33 +0000, Song Jiale <songx.jiale@intel.com> wrote:
> add a case to test rss config none.
> add a case to test default rss command line.
> 
> Signed-off-by: Song Jiale <songx.jiale@intel.com>

Acked-by: Lijuan Tu <lijuan.tu@intel.com>
Series applied, thanks

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

end of thread, other threads:[~2022-10-10  3:37 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-10-09 16:14 [dts] [PATCH V1 1/2] test_plans/ice_rss_configure: add 2 cases Song Jiale
2022-10-09 16:14 ` [dts] [PATCH V1 2/2] tests/ice_rss_configure: " Song Jiale
2022-10-10  3:36   ` lijuan.tu

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).