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 v3 3/3] tests/rte_flow_common: change common interface
Date: Wed, 24 Nov 2021 18:58:15 +0800 [thread overview]
Message-ID: <20211124105815.32225-4-hailinx.xu@intel.com> (raw)
In-Reply-To: <20211124105815.32225-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
prev parent reply other threads:[~2021-11-24 3:28 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-11-24 10:58 [dts][PATCH v3 0/3] change test plan and test cases Hailin Xu
2021-11-24 10:58 ` [dts][PATCH v3 1/3] test_plans/cvl_rss_configure: change test plan Hailin Xu
2021-11-30 3:26 ` Tu, Lijuan
2021-11-24 10:58 ` [dts][PATCH v3 2/3] tests/cvl_rss_configure: change test case Hailin Xu
2021-11-24 3:30 ` Xu, HailinX
2021-11-24 10:58 ` Hailin Xu [this message]
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=20211124105815.32225-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).