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 A1F06A0093; Mon, 7 Mar 2022 15:44:41 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 610E240688; Mon, 7 Mar 2022 15:44:41 +0100 (CET) Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by mails.dpdk.org (Postfix) with ESMTP id 7C8074014E for ; Mon, 7 Mar 2022 15:44:40 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1646664280; x=1678200280; h=from:to:subject:date:message-id:in-reply-to:references: mime-version:content-transfer-encoding; bh=S7lrNwqk0M4gc4WzxU7tIF/iMr8PjNl3+Pd0LPIJmqo=; b=JBC9U07zQOMa896NmaCXuRfHIdInlME0d/nI/kBwr3PmD/RwURZscczk M9vYqr8C8DlifJkyRCHLkY4wBrXs1NVuaYGZOB1obS6oC42o9dsLDezHp gYq5938sgA6TI3goWXHb1dAtsZPNMF+PL4r1gGW6XinSacfUIdljAMTNL 87slWQrlOEk4/TboyynrPhBB50VTw+05Q1ATaXpbv6oshtJD3X0zsYgNq VI79yZYMAC7HvaNPRroDTrULVI6Qc74oB4/SDnadiqP7u8UjhQGZnF2Ty jre7WI4rU/TW84zLekSlfoQ7eCRKTn/oxgZvASBJ5RA1eSr0OgHFlvbaU Q==; X-IronPort-AV: E=McAfee;i="6200,9189,10278"; a="254344257" X-IronPort-AV: E=Sophos;i="5.90,162,1643702400"; d="scan'208";a="254344257" Received: from orsmga005.jf.intel.com ([10.7.209.41]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 07 Mar 2022 06:44:39 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.90,162,1643702400"; d="scan'208";a="711128214" Received: from external.iind.intel.com (HELO localhost.localdomain) ([10.190.213.111]) by orsmga005.jf.intel.com with ESMTP; 07 Mar 2022 06:44:38 -0800 From: Aman Singh To: dev@dpdk.org Subject: [PATCH v3] devtools/cocci: update cocci for ethdev namespace Date: Mon, 7 Mar 2022 19:57:06 +0530 Message-Id: <20220307142706.76335-1-aman.deep.singh@intel.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220123172046.1296964-1-aman.deep.singh@intel.com> References: <20220123172046.1296964-1-aman.deep.singh@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Changed the filter from ETH_SPEED to ETH_SPEED_NUM to make the match more specific. Added check for ETH_TUNNEL_FILTER and ETH_RSS_RETA as these were missed before. Signed-off-by: Aman Singh --- *v3: Rather than exception for ETH_SPEED_10G & ETH_SPEED_25G macro's made search filter more specific to ETH_SPEED_NUM. As per comments. *v2: Added check for ETH_TUNNEL_FILTER and ETH_RSS_RETA devtools/cocci/namespace_ethdev.cocci | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/devtools/cocci/namespace_ethdev.cocci b/devtools/cocci/namespace_ethdev.cocci index d5de41e117..125adc44c5 100644 --- a/devtools/cocci/namespace_ethdev.cocci +++ b/devtools/cocci/namespace_ethdev.cocci @@ -1,7 +1,8 @@ @rule1@ identifier I =~ "^(RTE_FC_|ETH_MQ_|ETH_RSS|DEV_RX_|DEV_TX_|ETH_LINK|RTE_RETA| |ETH_DCB|RTE_TUNNEL|ETH_VLAN|ETH_4|ETH_8|ETH_16|ETH_32|ETH_64|RTE_FDIR|RTE_L2| -|ETH_SPEED|ETH_MIRROR|ETH_VMDQ|ETH_NUM|ETH_QINQ|ETH_MAX_)"; +|ETH_SPEED_NUM|ETH_TUNNEL_FILT|ETH_RSS_RETA_|ETH_VMDQ|ETH_NUM|ETH_QINQ| +|ETH_MAX_)"; @@ I @@ -16,7 +17,7 @@ exception_matches = ["ETH_VLAN_FILTER_CLASSIFY","ETH_VLAN_FILTER_ANY", "RTE_FDIR_NO","RTE_FDIR_REPORT","ETH_MAX_RX_CLIENTS_E1H", "ETH_MAX_AGGREGATION_QUEUES_E1","ETH_RSS_ENGINE_NUM","ETH_NUM_MAC_FILTERS", "ETH_MAX_NUM_RX_QUEUES_PER_VF_QUAD","ETH_RSS_IND_TABLE_ENTRIES_NUM", -"ETH_RSS_KEY_SIZE_REGS","ETH_NUM_STATISTIC_COUNTERS","ETH_SPEED_"] +"ETH_RSS_KEY_SIZE_REGS","ETH_NUM_STATISTIC_COUNTERS"] if any(x in I for x in exception_matches): coccinelle .J= I; -- 2.25.1