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 v2 3/3] tests/rte_flow_common: change rss common interface
Date: Tue, 23 Nov 2021 20:38:17 +0800 [thread overview]
Message-ID: <20211123123817.9401-4-hailinx.xu@intel.com> (raw)
In-Reply-To: <20211123123817.9401-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-23 5:08 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-11-23 12:38 [dts][PATCH v2 0/3] change test plan and test cases Hailin Xu
2021-11-23 12:38 ` [dts][PATCH v2 1/3] test_plans/cvl_rss_configure: change test plan Hailin Xu
2021-11-23 12:38 ` [dts][PATCH v2 2/3] tests/cvl_rss_configure: change test cases Hailin Xu
2021-11-23 5:11 ` Xu, HailinX
2021-11-23 9:35 ` Fu, Qi
2021-11-23 12:38 ` 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=20211123123817.9401-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).