[v4,3/3] tests/rte_flow_common: change common interface
Checks
Context |
Check |
Description |
ci/Intel-dts-doc-test |
success
|
Testing OK
|
ci/Intel-dts-suite-test |
success
|
Testing OK
|
Commit Message
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(-)
Comments
> -----Original Message-----
> From: Hailin Xu <hailinx.xu@intel.com>
> Sent: 2021年12月1日 22:32
> To: dts@dpdk.org; Fu, Qi <qi.fu@intel.com>
> Cc: Xu, HailinX <hailinx.xu@intel.com>
> Subject: [dts][PATCH v4 3/3] tests/rte_flow_common: change common
> interface
>
> change rss common interface: support hash verify when send multiple packets
>
> Signed-off-by: Hailin Xu <hailinx.xu@intel.com>
Applied
@@ -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)