From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id D2AE0A052A; Wed, 11 Nov 2020 04:01:04 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id C9B1AF90; Wed, 11 Nov 2020 04:01:03 +0100 (CET) Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by dpdk.org (Postfix) with ESMTP id DF0E12AB for ; Wed, 11 Nov 2020 04:01:02 +0100 (CET) IronPort-SDR: luj8v6XJJ+XiiLhI5uZqWA/VdfcuRfSLgPITya6tCXru5dp1dIH5faaEBUhnL/yCvPeLv5tP2E UkZyAvdIlHpA== X-IronPort-AV: E=McAfee;i="6000,8403,9801"; a="166577043" X-IronPort-AV: E=Sophos;i="5.77,468,1596524400"; d="scan'208";a="166577043" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 10 Nov 2020 19:01:01 -0800 IronPort-SDR: urBV3zVrAahy8Qv1au+D7atRvaPP0A7Iwk6hbL+5Er/8RJmG3Kqb+A7QKcz6ibmr7lnsI4TpvJ 6PsczROxzUyg== X-IronPort-AV: E=Sophos;i="5.77,468,1596524400"; d="scan'208";a="308298390" Received: from unknown (HELO localhost.localdomain) ([10.240.183.105]) by fmsmga008-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 10 Nov 2020 19:00:59 -0800 From: sunqin To: dts@dpdk.org Cc: sunqin Date: Wed, 11 Nov 2020 11:37:54 +0000 Message-Id: <20201111113754.12739-1-qinx.sun@intel.com> X-Mailer: git-send-email 2.17.1 Subject: [dts] [PATCH V1] tests/rte_flow_common modify iavf_fdir queue verify method X-BeenThere: dts@dpdk.org X-Mailman-Version: 2.1.15 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 Sender: "dts" create a fdir rule, send mismatch packet, sometimes queue id may hit the defaule value set in the rule, so can not just compared the queue value to judgle the case failed. Now,use 'verify_iavf_fdir_directed_by_rss' to check queue is correctly or not after mark id is verifed. Signed-off-by: sunqin --- tests/rte_flow_common.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/rte_flow_common.py b/tests/rte_flow_common.py index 43c0eab..e0a378f 100644 --- a/tests/rte_flow_common.py +++ b/tests/rte_flow_common.py @@ -454,7 +454,7 @@ def check_iavf_fdir_queue(out, pkt_num, check_param, stats=True): raise Exception("wrong queue value, expect int or list") else: if isinstance(queue, int): - verify(not any(q == queue for q in res_queue), "fail: queue id should not matched, expect queue %s, got %s" % (queue, res_queue)) + verify_iavf_fdir_directed_by_rss(out, rxq=CVL_TXQ_RXQ_NUMBER, stats=True) print((GREEN("pass: queue id %s not matched" % res_queue))) elif isinstance(queue, list): verify_iavf_fdir_directed_by_rss(out, rxq=CVL_TXQ_RXQ_NUMBER, stats=True) -- 2.17.1