test suite reviews and discussions
 help / color / mirror / Atom feed
From: Jiale Song <songx.jiale@intel.com>
To: dts@dpdk.org
Cc: Jiale Song <songx.jiale@intel.com>
Subject: [dts] [PATCH V1] tests/ice_iavf_rss_configure: add a case
Date: Wed, 22 Jun 2022 17:02:33 +0000	[thread overview]
Message-ID: <20220622170233.24862-1-songx.jiale@intel.com> (raw)

add a case to test config RSS default.

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

diff --git a/test_plans/ice_iavf_rss_configure_test_plan.rst b/test_plans/ice_iavf_rss_configure_test_plan.rst
index 86ab957c..886d1eab 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           |
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)
-- 
2.17.1


                 reply	other threads:[~2022-06-22  8:38 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20220622170233.24862-1-songx.jiale@intel.com \
    --to=songx.jiale@intel.com \
    --cc=dts@dpdk.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).