[V3] tests/ice_iavf_rss_configure: add a case

Message ID 20220623153756.18119-1-songx.jiale@intel.com (mailing list archive)
State Accepted
Headers
Series [V3] tests/ice_iavf_rss_configure: add a case |

Checks

Context Check Description
ci/Intel-dts-format-test success Testing OK
ci/Intel-dts-pylama-test success Testing OK
ci/Intel-dts-doc-test success Testing OK
ci/Intel-dts-suite-test success Testing OK

Commit Message

Jiale, SongX June 23, 2022, 3:37 p.m. UTC
  add a case to test config RSS default.

Signed-off-by: Jiale Song <songx.jiale@intel.com>
---
 .../ice_iavf_rss_configure_test_plan.rst      | 23 ++++++++++++++++++-
 tests/TestSuite_ice_iavf_rss_configure.py     |  6 +++++
 2 files changed, 28 insertions(+), 1 deletion(-)
  

Comments

Tu, Lijuan June 29, 2022, 1:42 a.m. UTC | #1
On Thu, 23 Jun 2022 15:37:56 +0000, Jiale Song <songx.jiale@intel.com> wrote:
> add a case to test config RSS default.
> 
> Signed-off-by: Jiale Song <songx.jiale@intel.com>


Applied, thanks
  

Patch

diff --git a/test_plans/ice_iavf_rss_configure_test_plan.rst b/test_plans/ice_iavf_rss_configure_test_plan.rst
index 86ab957c..354840ba 100644
--- a/test_plans/ice_iavf_rss_configure_test_plan.rst
+++ b/test_plans/ice_iavf_rss_configure_test_plan.rst
@@ -60,7 +60,7 @@  Basic test steps
 
 * testpmd runtime functions::
 
-   port config all rss ip/udp/tcp/sctp/none/all
+   port config all rss ip/udp/tcp/sctp/none/all/default
 
   * The ``none`` option is equivalent to the ``--disable-rss`` command-line option.
   * The `` ip`` option is equivalent to the ``--rss-ip`` command-line option.
@@ -190,6 +190,22 @@  Basic test steps
     |                               +------------------------------+--------------------------+-----------------------------+-------------------------+
     |                               |                              |                          | MAC_IPV6_SCTP               | different hash value    |
     +-------------------------------+------------------------------+--------------------------+-----------------------------+-------------------------+
+    |                               | ALL                          | all                      | MAC_IPV4_PAY                | record hash value       |
+    |                               +------------------------------+--------------------------+-----------------------------+-------------------------+
+    |                               |                              |                          | MAC_IPV4_UDP                | different hash value    |
+    |                               +------------------------------+--------------------------+-----------------------------+-------------------------+
+    |                               |                              |                          | MAC_IPV4_TCP                | different hash value    |
+    |                               +------------------------------+--------------------------+-----------------------------+-------------------------+
+    |                               |                              |                          | MAC_IPV4_SCTP               | different hash value    |
+    |             default           +------------------------------+--------------------------+-----------------------------+-------------------------+
+    |                               |                              |                          | MAC_IPV6_PAY                | record hash value       |
+    |                               +------------------------------+--------------------------+-----------------------------+-------------------------+
+    |                               |                              |                          | MAC_IPV6_UDP                | different hash value    |
+    |                               +------------------------------+--------------------------+-----------------------------+-------------------------+
+    |                               |                              |                          | MAC_IPV6_TCP                | different hash value    |
+    |                               +------------------------------+--------------------------+-----------------------------+-------------------------+
+    |                               |                              |                          | MAC_IPV6_SCTP               | different hash value    |
+    +-------------------------------+------------------------------+--------------------------+-----------------------------+-------------------------+
     |                               |                              |                          | MAC_IPV4_PAY                | no hash value           |
     |                               +------------------------------+--------------------------+-----------------------------+-------------------------+
     |                               |                              |                          | MAC_IPV4_SCTP               | no hash value           |
@@ -273,6 +289,11 @@  Test Case: test_iavf_rss_configure_to_all
 
 Set rss to all with testpmd runtime func, transmit different protocol packets, and check hash results.
 
+Test Case: test_iavf_rss_configure_to_default
+=============================================
+
+Set rss to default with testpmd runtime func, transmit different protocol packets, and check hash results.
+
 Test Case: test_iavf_rss_configure_to_none
 ==========================================
 
diff --git a/tests/TestSuite_ice_iavf_rss_configure.py b/tests/TestSuite_ice_iavf_rss_configure.py
index 8194c81d..b227ca54 100644
--- a/tests/TestSuite_ice_iavf_rss_configure.py
+++ b/tests/TestSuite_ice_iavf_rss_configure.py
@@ -227,6 +227,8 @@  tvs_mac_disable_rss = eval(
     .replace("check_hash_different", "check_no_hash")
 )
 
+tvs_mac_default = tvs_mac_all
+
 
 class IAVFRSSConfigureTest(TestCase):
     def set_up_all(self):
@@ -360,6 +362,10 @@  class IAVFRSSConfigureTest(TestCase):
         self.set_rss_configure(rss_type="none")
         self.rssprocess.handle_rss_distribute_cases(cases_info=tvs_mac_disable_rss)
 
+    def test_iavf_rss_configure_to_default(self):
+        self.set_rss_configure(rss_type="default")
+        self.rssprocess.handle_rss_distribute_cases(cases_info=tvs_mac_default)
+
     def test_iavf_rss_command_line_to_ip(self):
         self.restart_testpmd(cmd_line="--rss-ip")
         self.rssprocess.handle_rss_distribute_cases(cases_info=tvs_mac_ip)