From: Aman Singh <aman.deep.singh@intel.com>
To: dev@dpdk.org
Subject: [PATCH v3] devtools/cocci: update cocci for ethdev namespace
Date: Mon, 7 Mar 2022 19:57:06 +0530 [thread overview]
Message-ID: <20220307142706.76335-1-aman.deep.singh@intel.com> (raw)
In-Reply-To: <20220123172046.1296964-1-aman.deep.singh@intel.com>
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 <aman.deep.singh@intel.com>
---
*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
next prev parent reply other threads:[~2022-03-07 14:44 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-01-23 17:20 [PATCH v2] " Aman Singh
2022-02-02 21:01 ` Thomas Monjalon
2022-02-04 6:13 ` Singh, Aman Deep
2022-02-04 7:47 ` Thomas Monjalon
2022-02-10 13:26 ` Singh, Aman Deep
2022-02-10 15:30 ` Thomas Monjalon
2022-02-11 8:07 ` Singh, Aman Deep
2022-02-11 17:28 ` Thomas Monjalon
2022-02-15 18:51 ` Singh, Aman Deep
2022-02-15 22:17 ` Thomas Monjalon
2022-02-17 6:34 ` Singh, Aman Deep
2022-03-07 14:27 ` Aman Singh [this message]
2022-03-08 13:34 ` [PATCH v3] " Thomas Monjalon
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20220307142706.76335-1-aman.deep.singh@intel.com \
--to=aman.deep.singh@intel.com \
--cc=dev@dpdk.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).