From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 67A69A0C53; Wed, 24 Nov 2021 04:28:23 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 630F0410EA; Wed, 24 Nov 2021 04:28:23 +0100 (CET) Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by mails.dpdk.org (Postfix) with ESMTP id CEEC840040 for ; Wed, 24 Nov 2021 04:28:21 +0100 (CET) X-IronPort-AV: E=McAfee;i="6200,9189,10177"; a="235013829" X-IronPort-AV: E=Sophos;i="5.87,258,1631602800"; d="scan'208";a="235013829" Received: from orsmga007.jf.intel.com ([10.7.209.58]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 23 Nov 2021 19:28:21 -0800 X-IronPort-AV: E=Sophos;i="5.87,258,1631602800"; d="scan'208";a="497517718" Received: from unknown (HELO localhost.localdomain) ([10.240.183.55]) by orsmga007-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 23 Nov 2021 19:28:19 -0800 From: Hailin Xu To: dts@dpdk.org, qi.fu@intel.com Cc: Hailin Xu Subject: [dts][PATCH v3 3/3] tests/rte_flow_common: change common interface Date: Wed, 24 Nov 2021 18:58:15 +0800 Message-Id: <20211124105815.32225-4-hailinx.xu@intel.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20211124105815.32225-1-hailinx.xu@intel.com> References: <20211124105815.32225-1-hailinx.xu@intel.com> X-BeenThere: dts@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: test suite reviews and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dts-bounces@dpdk.org change rss common interface: support hash verify when send multiple packets Signed-off-by: Hailin Xu --- 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