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 40FA5A04A4; Sun, 23 Jan 2022 18:39:12 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 193CB42797; Sun, 23 Jan 2022 18:39:11 +0100 (CET) Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by mails.dpdk.org (Postfix) with ESMTP id CF15340040 for ; Sun, 23 Jan 2022 18:39:09 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1642959549; x=1674495549; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=gWn2ddCZXgwxTozN0lqFVNka53OqLFpVhThg/888L/0=; b=bBMSa5RaCaDqSBFcn8VxjutMMukaRDnfslmewzC6Bims8j20NOcEYKs8 AEN+KJmXWwRCPKC4IMX2n0tjcl77+MdVQM5H2+CyRK4dYBC5E9hCBAI6h YSzkaKx1Jo8P7iuP6u+akJVoQf/3vqOLUKUzungUg0CQ+CHg3ATvFVpYf 1h5gVPmuDKx8uMq7+V9Ts7BI9XAlOlCx1LEKtay2Kk2Q7TXJZKQBQJQi+ 3GGvABC4Eia370ns44pEEdEI0fqv8ank3VDpDkfxKg1Su46HFC9EF3Vbr /w0Ns6NeXRTOh4gCYMQIEto6yCDLXcsHgUb99m+vWJ0aj3mTroeKJbU25 w==; X-IronPort-AV: E=McAfee;i="6200,9189,10235"; a="246130600" X-IronPort-AV: E=Sophos;i="5.88,310,1635231600"; d="scan'208";a="246130600" Received: from orsmga001.jf.intel.com ([10.7.209.18]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 23 Jan 2022 09:39:08 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.88,310,1635231600"; d="scan'208";a="562412964" Received: from unknown (HELO localhost.localdomain) ([10.190.213.111]) by orsmga001.jf.intel.com with ESMTP; 23 Jan 2022 09:39:07 -0800 From: Aman Singh To: dev@dpdk.org Cc: ferruh.yigit@intel.com Subject: [PATCH v2] devtools/cocci: update cocci for ethdev namespace Date: Sun, 23 Jan 2022 22:50:46 +0530 Message-Id: <20220123172046.1296964-1-aman.deep.singh@intel.com> X-Mailer: git-send-email 2.25.1 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 Added two specific exceptions for ETH_SPEED_10G and ETH_SPEED_25G to avoid there name change. Added check for ETH_TUNNEL_FILTER and ETH_RSS_RETA Signed-off-by: Aman Singh --- 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..50a1d296f3 100644 --- a/devtools/cocci/namespace_ethdev.cocci +++ b/devtools/cocci/namespace_ethdev.cocci @@ -1,7 +1,7 @@ @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|ETH_TUNNEL_FILT|ETH_RSS_RETA_|ETH_VMDQ|ETH_NUM|ETH_QINQ|ETH_MAX_)"; @@ I @@ -16,7 +16,8 @@ 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","ETH_SPEED_10G", +"ETH_SPEED_25G"] if any(x in I for x in exception_matches): coccinelle .J= I; -- 2.25.1