test suite reviews and discussions
 help / color / mirror / Atom feed
From: Hailin Xu <hailinx.xu@intel.com>
To: dts@dpdk.org, qi.fu@intel.com
Cc: Hailin Xu <hailinx.xu@intel.com>
Subject: [dts][PATCH v4 3/3] tests/rte_flow_common: change common interface
Date: Wed,  1 Dec 2021 22:31:52 +0800	[thread overview]
Message-ID: <20211201143152.20775-4-hailinx.xu@intel.com> (raw)
In-Reply-To: <20211201143152.20775-1-hailinx.xu@intel.com>

change rss common interface: support hash verify when send multiple packets

Signed-off-by: Hailin Xu <hailinx.xu@intel.com>
---
 tests/rte_flow_common.py | 11 ++++++-----
 1 file changed, 6 insertions(+), 5 deletions(-)

diff --git a/tests/rte_flow_common.py b/tests/rte_flow_common.py
index fb76bf86..969d3222 100644
--- a/tests/rte_flow_common.py
+++ b/tests/rte_flow_common.py
@@ -804,11 +804,12 @@ class RssProcessing(object):
                 self.logger.error(error_msg)
                 self.error_msgs.append(error_msg)
         else:
-            if hashes != self.hash_records[key]:
-                error_msg = 'hash value {} should be same ' \
-                            'with {} {}'.format(hashes, key, self.hash_records[key])
-                self.logger.error(error_msg)
-                self.error_msgs.append(error_msg)
+            for hash in hashes:
+                if hash not in self.hash_records[key]:
+                    error_msg = 'hash value {} should be same ' \
+                                'with {} {}'.format(hashes, key, self.hash_records[key])
+                    self.logger.error(error_msg)
+                    self.error_msgs.append(error_msg)
         if not rss_distribute:
             error_msg = 'the packet do not distribute by rss'
             self.logger.error(error_msg)
-- 
2.17.1


  parent reply	other threads:[~2021-12-01  7:02 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-12-01 14:31 [dts][PATCH v4 0/3] change test plan and test cases Hailin Xu
2021-12-01 14:31 ` [dts][PATCH v4 1/3] test_plans/cvl_rss_configure: change test plan Hailin Xu
2021-12-01 14:31 ` [dts][PATCH v4 2/3] tests/cvl_rss_configure: change test case Hailin Xu
2021-12-01  7:07   ` Xu, HailinX
2021-12-01 14:31 ` Hailin Xu [this message]
2021-12-16 10:52   ` [dts][PATCH v4 3/3] tests/rte_flow_common: change common interface Tu, Lijuan

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=20211201143152.20775-4-hailinx.xu@intel.com \
    --to=hailinx.xu@intel.com \
    --cc=dts@dpdk.org \
    --cc=qi.fu@intel.com \
    /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).