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 D266EA0C52; Wed, 1 Dec 2021 08:02:11 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id BC4814122E; Wed, 1 Dec 2021 08:02:11 +0100 (CET) Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by mails.dpdk.org (Postfix) with ESMTP id 417D04120A for ; Wed, 1 Dec 2021 08:02:10 +0100 (CET) X-IronPort-AV: E=McAfee;i="6200,9189,10184"; a="235127500" X-IronPort-AV: E=Sophos;i="5.87,278,1631602800"; d="scan'208";a="235127500" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 30 Nov 2021 23:02:09 -0800 X-IronPort-AV: E=Sophos;i="5.87,278,1631602800"; d="scan'208";a="512567681" Received: from unknown (HELO localhost.localdomain) ([10.240.183.55]) by orsmga008-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 30 Nov 2021 23:02:07 -0800 From: Hailin Xu To: dts@dpdk.org, qi.fu@intel.com Cc: Hailin Xu Subject: [dts][PATCH v4 3/3] tests/rte_flow_common: change common interface Date: Wed, 1 Dec 2021 22:31:52 +0800 Message-Id: <20211201143152.20775-4-hailinx.xu@intel.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20211201143152.20775-1-hailinx.xu@intel.com> References: <20211201143152.20775-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