* [PATCH v2] devtools/cocci: update cocci for ethdev namespace
@ 2022-01-23 17:20 Aman Singh
2022-02-02 21:01 ` Thomas Monjalon
2022-03-07 14:27 ` [PATCH v3] " Aman Singh
0 siblings, 2 replies; 13+ messages in thread
From: Aman Singh @ 2022-01-23 17:20 UTC (permalink / raw)
To: dev; +Cc: ferruh.yigit
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 <aman.deep.singh@intel.com>
---
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
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [PATCH v2] devtools/cocci: update cocci for ethdev namespace
2022-01-23 17:20 [PATCH v2] devtools/cocci: update cocci for ethdev namespace Aman Singh
@ 2022-02-02 21:01 ` Thomas Monjalon
2022-02-04 6:13 ` Singh, Aman Deep
2022-03-07 14:27 ` [PATCH v3] " Aman Singh
1 sibling, 1 reply; 13+ messages in thread
From: Thomas Monjalon @ 2022-02-02 21:01 UTC (permalink / raw)
To: Aman Singh; +Cc: dev, ferruh.yigit
23/01/2022 18:20, Aman Singh:
> 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
Please could you explain why?
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [PATCH v2] devtools/cocci: update cocci for ethdev namespace
2022-02-02 21:01 ` Thomas Monjalon
@ 2022-02-04 6:13 ` Singh, Aman Deep
2022-02-04 7:47 ` Thomas Monjalon
0 siblings, 1 reply; 13+ messages in thread
From: Singh, Aman Deep @ 2022-02-04 6:13 UTC (permalink / raw)
To: Thomas Monjalon; +Cc: dev, ferruh.yigit
Hi Thomas
On 2/3/2022 2:31 AM, Thomas Monjalon wrote:
> 23/01/2022 18:20, Aman Singh:
>> 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
> Please could you explain why?
These two macro's ETH_SPEED_10G & ETH_SPEED_25G are used by ifpga
driver and script should no change these.
There are multiple ETH_SPEED_NUM_xxx macro that need to be changed
to RTE_ETH_SPEED_NUM_xxx. So added above two as specific exceptions.
The other two patterns ETH_TUNNEL_FILTER & ETH_RSS_RETA were missed before.
The script should change these to RTE_ETH_TUNNEL_FILTER & RTE_ETH_RSS_RETA
>
>
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [PATCH v2] devtools/cocci: update cocci for ethdev namespace
2022-02-04 6:13 ` Singh, Aman Deep
@ 2022-02-04 7:47 ` Thomas Monjalon
2022-02-10 13:26 ` Singh, Aman Deep
0 siblings, 1 reply; 13+ messages in thread
From: Thomas Monjalon @ 2022-02-04 7:47 UTC (permalink / raw)
To: Singh, Aman Deep; +Cc: dev, ferruh.yigit
04/02/2022 07:13, Singh, Aman Deep:
> Hi Thomas
>
> On 2/3/2022 2:31 AM, Thomas Monjalon wrote:
> > 23/01/2022 18:20, Aman Singh:
> >> 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
> > Please could you explain why?
> These two macro's ETH_SPEED_10G & ETH_SPEED_25G are used by ifpga
> driver and script should no change these.
> There are multiple ETH_SPEED_NUM_xxx macro that need to be changed
> to RTE_ETH_SPEED_NUM_xxx. So added above two as specific exceptions.
Why doing this exception? What is special with ifpga?
> The other two patterns ETH_TUNNEL_FILTER & ETH_RSS_RETA were missed before.
> The script should change these to RTE_ETH_TUNNEL_FILTER & RTE_ETH_RSS_RETA
The explanations should be part of the commit log please.
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [PATCH v2] devtools/cocci: update cocci for ethdev namespace
2022-02-04 7:47 ` Thomas Monjalon
@ 2022-02-10 13:26 ` Singh, Aman Deep
2022-02-10 15:30 ` Thomas Monjalon
0 siblings, 1 reply; 13+ messages in thread
From: Singh, Aman Deep @ 2022-02-10 13:26 UTC (permalink / raw)
To: Thomas Monjalon; +Cc: dev, ferruh.yigit
[-- Attachment #1: Type: text/plain, Size: 1107 bytes --]
On 2/4/2022 1:17 PM, Thomas Monjalon wrote:
> 04/02/2022 07:13, Singh, Aman Deep:
>> Hi Thomas
>>
>> On 2/3/2022 2:31 AM, Thomas Monjalon wrote:
>>> 23/01/2022 18:20, Aman Singh:
>>>> 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
>>> Please could you explain why?
>> These two macro's ETH_SPEED_10G & ETH_SPEED_25G are used by ifpga
>> driver and script should no change these.
>> There are multiple ETH_SPEED_NUM_xxx macro that need to be changed
>> to RTE_ETH_SPEED_NUM_xxx. So added above two as specific exceptions.
> Why doing this exception? What is special with ifpga?
These two macro's are defined in 'ifpga/base/opae_eth_group.h'
we don't intend to change these. Target is ethdev namespace only.
>
>> The other two patterns ETH_TUNNEL_FILTER & ETH_RSS_RETA were missed before.
>> The script should change these to RTE_ETH_TUNNEL_FILTER & RTE_ETH_RSS_RETA
> The explanations should be part of the commit log please.
Sure, if this explanation is fine? Will update in next version.
>
>
>
[-- Attachment #2: Type: text/html, Size: 2298 bytes --]
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [PATCH v2] devtools/cocci: update cocci for ethdev namespace
2022-02-10 13:26 ` Singh, Aman Deep
@ 2022-02-10 15:30 ` Thomas Monjalon
2022-02-11 8:07 ` Singh, Aman Deep
0 siblings, 1 reply; 13+ messages in thread
From: Thomas Monjalon @ 2022-02-10 15:30 UTC (permalink / raw)
To: Singh, Aman Deep; +Cc: dev, ferruh.yigit
10/02/2022 14:26, Singh, Aman Deep:
> On 2/4/2022 1:17 PM, Thomas Monjalon wrote:
> > 04/02/2022 07:13, Singh, Aman Deep:
> >> Hi Thomas
> >>
> >> On 2/3/2022 2:31 AM, Thomas Monjalon wrote:
> >>> 23/01/2022 18:20, Aman Singh:
> >>>> 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
> >>> Please could you explain why?
> >> These two macro's ETH_SPEED_10G & ETH_SPEED_25G are used by ifpga
> >> driver and script should no change these.
> >> There are multiple ETH_SPEED_NUM_xxx macro that need to be changed
> >> to RTE_ETH_SPEED_NUM_xxx. So added above two as specific exceptions.
> > Why doing this exception? What is special with ifpga?
>
> These two macro's are defined in 'ifpga/base/opae_eth_group.h'
> we don't intend to change these. Target is ethdev namespace only.
So we will miss future use of a deprecated macro
because ifpga is redefining it?
I think it is a wrong approach.
We should not make any exception in the check.
Instead we can just ignore the warning for ifpga.
> >> The other two patterns ETH_TUNNEL_FILTER & ETH_RSS_RETA were missed before.
> >> The script should change these to RTE_ETH_TUNNEL_FILTER & RTE_ETH_RSS_RETA
> > The explanations should be part of the commit log please.
>
> Sure, if this explanation is fine? Will update in next version.
Yes thanks.
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [PATCH v2] devtools/cocci: update cocci for ethdev namespace
2022-02-10 15:30 ` Thomas Monjalon
@ 2022-02-11 8:07 ` Singh, Aman Deep
2022-02-11 17:28 ` Thomas Monjalon
0 siblings, 1 reply; 13+ messages in thread
From: Singh, Aman Deep @ 2022-02-11 8:07 UTC (permalink / raw)
To: Thomas Monjalon; +Cc: dev, ferruh.yigit
[-- Attachment #1: Type: text/plain, Size: 1762 bytes --]
On 2/10/2022 9:00 PM, Thomas Monjalon wrote:
> 10/02/2022 14:26, Singh, Aman Deep:
>> On 2/4/2022 1:17 PM, Thomas Monjalon wrote:
>>> 04/02/2022 07:13, Singh, Aman Deep:
>>>> Hi Thomas
>>>>
>>>> On 2/3/2022 2:31 AM, Thomas Monjalon wrote:
>>>>> 23/01/2022 18:20, Aman Singh:
>>>>>> 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
>>>>> Please could you explain why?
>>>> These two macro's ETH_SPEED_10G & ETH_SPEED_25G are used by ifpga
>>>> driver and script should no change these.
>>>> There are multiple ETH_SPEED_NUM_xxx macro that need to be changed
>>>> to RTE_ETH_SPEED_NUM_xxx. So added above two as specific exceptions.
>>> Why doing this exception? What is special with ifpga?
>> These two macro's are defined in 'ifpga/base/opae_eth_group.h'
>> we don't intend to change these. Target is ethdev namespace only.
> So we will miss future use of a deprecated macro
> because ifpga is redefining it?
> I think it is a wrong approach.
> We should not make any exception in the check.
> Instead we can just ignore the warning for ifpga.
Actually ifpga is not redefining these two macro's ETH_SPEED_10G & ETH_SPEED_25G,
they are unique to it. Only there prefix, matches with ethdev macro's
ETH_SPEED_NUM_xxx, which caused coccinelle script to modify these to
RTE_ETH_SPEED_10G & RTE_ETH_SPEED_25G. So just avoiding it by this change.
>
>>>> The other two patterns ETH_TUNNEL_FILTER & ETH_RSS_RETA were missed before.
>>>> The script should change these to RTE_ETH_TUNNEL_FILTER & RTE_ETH_RSS_RETA
>>> The explanations should be part of the commit log please.
>> Sure, if this explanation is fine? Will update in next version.
> Yes thanks.
>
>
[-- Attachment #2: Type: text/html, Size: 3333 bytes --]
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [PATCH v2] devtools/cocci: update cocci for ethdev namespace
2022-02-11 8:07 ` Singh, Aman Deep
@ 2022-02-11 17:28 ` Thomas Monjalon
2022-02-15 18:51 ` Singh, Aman Deep
0 siblings, 1 reply; 13+ messages in thread
From: Thomas Monjalon @ 2022-02-11 17:28 UTC (permalink / raw)
To: Singh, Aman Deep; +Cc: dev, ferruh.yigit
11/02/2022 09:07, Singh, Aman Deep:
> On 2/10/2022 9:00 PM, Thomas Monjalon wrote:
> > 10/02/2022 14:26, Singh, Aman Deep:
> >> On 2/4/2022 1:17 PM, Thomas Monjalon wrote:
> >>> 04/02/2022 07:13, Singh, Aman Deep:
> >>>> Hi Thomas
> >>>>
> >>>> On 2/3/2022 2:31 AM, Thomas Monjalon wrote:
> >>>>> 23/01/2022 18:20, Aman Singh:
> >>>>>> 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
> >>>>> Please could you explain why?
> >>>> These two macro's ETH_SPEED_10G & ETH_SPEED_25G are used by ifpga
> >>>> driver and script should no change these.
> >>>> There are multiple ETH_SPEED_NUM_xxx macro that need to be changed
> >>>> to RTE_ETH_SPEED_NUM_xxx. So added above two as specific exceptions.
> >>> Why doing this exception? What is special with ifpga?
> >> These two macro's are defined in 'ifpga/base/opae_eth_group.h'
> >> we don't intend to change these. Target is ethdev namespace only.
> > So we will miss future use of a deprecated macro
> > because ifpga is redefining it?
> > I think it is a wrong approach.
> > We should not make any exception in the check.
> > Instead we can just ignore the warning for ifpga.
>
> Actually ifpga is not redefining these two macro's ETH_SPEED_10G & ETH_SPEED_25G,
> they are unique to it. Only there prefix, matches with ethdev macro's
> ETH_SPEED_NUM_xxx, which caused coccinelle script to modify these to
> RTE_ETH_SPEED_10G & RTE_ETH_SPEED_25G. So just avoiding it by this change.
Would it work to restrict the match to ETH_SPEED_NUM?
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [PATCH v2] devtools/cocci: update cocci for ethdev namespace
2022-02-11 17:28 ` Thomas Monjalon
@ 2022-02-15 18:51 ` Singh, Aman Deep
2022-02-15 22:17 ` Thomas Monjalon
0 siblings, 1 reply; 13+ messages in thread
From: Singh, Aman Deep @ 2022-02-15 18:51 UTC (permalink / raw)
To: Thomas Monjalon; +Cc: dev, ferruh.yigit
[-- Attachment #1: Type: text/plain, Size: 1756 bytes --]
On 2/11/2022 10:58 PM, Thomas Monjalon wrote:
> 11/02/2022 09:07, Singh, Aman Deep:
>> On 2/10/2022 9:00 PM, Thomas Monjalon wrote:
>>> 10/02/2022 14:26, Singh, Aman Deep:
>>>> On 2/4/2022 1:17 PM, Thomas Monjalon wrote:
>>>>> 04/02/2022 07:13, Singh, Aman Deep:
>>>>>> Hi Thomas
>>>>>>
>>>>>> On 2/3/2022 2:31 AM, Thomas Monjalon wrote:
>>>>>>> 23/01/2022 18:20, Aman Singh:
>>>>>>>> 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
>>>>>>> Please could you explain why?
>>>>>> These two macro's ETH_SPEED_10G & ETH_SPEED_25G are used by ifpga
>>>>>> driver and script should no change these.
>>>>>> There are multiple ETH_SPEED_NUM_xxx macro that need to be changed
>>>>>> to RTE_ETH_SPEED_NUM_xxx. So added above two as specific exceptions.
>>>>> Why doing this exception? What is special with ifpga?
>>>> These two macro's are defined in 'ifpga/base/opae_eth_group.h'
>>>> we don't intend to change these. Target is ethdev namespace only.
>>> So we will miss future use of a deprecated macro
>>> because ifpga is redefining it?
>>> I think it is a wrong approach.
>>> We should not make any exception in the check.
>>> Instead we can just ignore the warning for ifpga.
>> Actually ifpga is not redefining these two macro's ETH_SPEED_10G & ETH_SPEED_25G,
>> they are unique to it. Only there prefix, matches with ethdev macro's
>> ETH_SPEED_NUM_xxx, which caused coccinelle script to modify these to
>> RTE_ETH_SPEED_10G & RTE_ETH_SPEED_25G. So just avoiding it by this change.
> Would it work to restrict the match to ETH_SPEED_NUM?
The script will change ETH_SPEED_NUM_xxx macros to RTE_ETH_SPEED_NUM_xxx
as per the requirement.
>
>
>
[-- Attachment #2: Type: text/html, Size: 3289 bytes --]
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [PATCH v2] devtools/cocci: update cocci for ethdev namespace
2022-02-15 18:51 ` Singh, Aman Deep
@ 2022-02-15 22:17 ` Thomas Monjalon
2022-02-17 6:34 ` Singh, Aman Deep
0 siblings, 1 reply; 13+ messages in thread
From: Thomas Monjalon @ 2022-02-15 22:17 UTC (permalink / raw)
To: Singh, Aman Deep; +Cc: dev, ferruh.yigit
15/02/2022 19:51, Singh, Aman Deep:
> On 2/11/2022 10:58 PM, Thomas Monjalon wrote:
> > 11/02/2022 09:07, Singh, Aman Deep:
> >> On 2/10/2022 9:00 PM, Thomas Monjalon wrote:
> >>> 10/02/2022 14:26, Singh, Aman Deep:
> >>>> On 2/4/2022 1:17 PM, Thomas Monjalon wrote:
> >>>>> 04/02/2022 07:13, Singh, Aman Deep:
> >>>>>> Hi Thomas
> >>>>>>
> >>>>>> On 2/3/2022 2:31 AM, Thomas Monjalon wrote:
> >>>>>>> 23/01/2022 18:20, Aman Singh:
> >>>>>>>> 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
> >>>>>>> Please could you explain why?
> >>>>>> These two macro's ETH_SPEED_10G & ETH_SPEED_25G are used by ifpga
> >>>>>> driver and script should no change these.
> >>>>>> There are multiple ETH_SPEED_NUM_xxx macro that need to be changed
> >>>>>> to RTE_ETH_SPEED_NUM_xxx. So added above two as specific exceptions.
> >>>>> Why doing this exception? What is special with ifpga?
> >>>> These two macro's are defined in 'ifpga/base/opae_eth_group.h'
> >>>> we don't intend to change these. Target is ethdev namespace only.
> >>> So we will miss future use of a deprecated macro
> >>> because ifpga is redefining it?
> >>> I think it is a wrong approach.
> >>> We should not make any exception in the check.
> >>> Instead we can just ignore the warning for ifpga.
> >> Actually ifpga is not redefining these two macro's ETH_SPEED_10G & ETH_SPEED_25G,
> >> they are unique to it. Only there prefix, matches with ethdev macro's
> >> ETH_SPEED_NUM_xxx, which caused coccinelle script to modify these to
> >> RTE_ETH_SPEED_10G & RTE_ETH_SPEED_25G. So just avoiding it by this change.
> > Would it work to restrict the match to ETH_SPEED_NUM?
>
> The script will change ETH_SPEED_NUM_xxx macros to RTE_ETH_SPEED_NUM_xxx
> as per the requirement.
No there is a misunderstanding.
I am asking to filter on ETH_SPEED_NUM instead of ETH_SPEED with exceptions.
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [PATCH v2] devtools/cocci: update cocci for ethdev namespace
2022-02-15 22:17 ` Thomas Monjalon
@ 2022-02-17 6:34 ` Singh, Aman Deep
0 siblings, 0 replies; 13+ messages in thread
From: Singh, Aman Deep @ 2022-02-17 6:34 UTC (permalink / raw)
To: Thomas Monjalon; +Cc: dev, ferruh.yigit
On 2/16/2022 3:47 AM, Thomas Monjalon wrote:
> 15/02/2022 19:51, Singh, Aman Deep:
>> On 2/11/2022 10:58 PM, Thomas Monjalon wrote:
>>> 11/02/2022 09:07, Singh, Aman Deep:
>>>> On 2/10/2022 9:00 PM, Thomas Monjalon wrote:
>>>>> 10/02/2022 14:26, Singh, Aman Deep:
>>>>>> On 2/4/2022 1:17 PM, Thomas Monjalon wrote:
>>>>>>> 04/02/2022 07:13, Singh, Aman Deep:
>>>>>>>> Hi Thomas
>>>>>>>>
>>>>>>>> On 2/3/2022 2:31 AM, Thomas Monjalon wrote:
>>>>>>>>> 23/01/2022 18:20, Aman Singh:
>>>>>>>>>> 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
>>>>>>>>> Please could you explain why?
>>>>>>>> These two macro's ETH_SPEED_10G & ETH_SPEED_25G are used by ifpga
>>>>>>>> driver and script should no change these.
>>>>>>>> There are multiple ETH_SPEED_NUM_xxx macro that need to be changed
>>>>>>>> to RTE_ETH_SPEED_NUM_xxx. So added above two as specific exceptions.
>>>>>>> Why doing this exception? What is special with ifpga?
>>>>>> These two macro's are defined in 'ifpga/base/opae_eth_group.h'
>>>>>> we don't intend to change these. Target is ethdev namespace only.
>>>>> So we will miss future use of a deprecated macro
>>>>> because ifpga is redefining it?
>>>>> I think it is a wrong approach.
>>>>> We should not make any exception in the check.
>>>>> Instead we can just ignore the warning for ifpga.
>>>> Actually ifpga is not redefining these two macro's ETH_SPEED_10G & ETH_SPEED_25G,
>>>> they are unique to it. Only there prefix, matches with ethdev macro's
>>>> ETH_SPEED_NUM_xxx, which caused coccinelle script to modify these to
>>>> RTE_ETH_SPEED_10G & RTE_ETH_SPEED_25G. So just avoiding it by this change.
>>> Would it work to restrict the match to ETH_SPEED_NUM?
>> The script will change ETH_SPEED_NUM_xxx macros to RTE_ETH_SPEED_NUM_xxx
>> as per the requirement.
> No there is a misunderstanding.
> I am asking to filter on ETH_SPEED_NUM instead of ETH_SPEED with exceptions.
Yes, can do it this way. I will upload new patch with this change.
>
>
>
^ permalink raw reply [flat|nested] 13+ messages in thread
* [PATCH v3] devtools/cocci: update cocci for ethdev namespace
2022-01-23 17:20 [PATCH v2] devtools/cocci: update cocci for ethdev namespace Aman Singh
2022-02-02 21:01 ` Thomas Monjalon
@ 2022-03-07 14:27 ` Aman Singh
2022-03-08 13:34 ` Thomas Monjalon
1 sibling, 1 reply; 13+ messages in thread
From: Aman Singh @ 2022-03-07 14:27 UTC (permalink / raw)
To: dev
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
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [PATCH v3] devtools/cocci: update cocci for ethdev namespace
2022-03-07 14:27 ` [PATCH v3] " Aman Singh
@ 2022-03-08 13:34 ` Thomas Monjalon
0 siblings, 0 replies; 13+ messages in thread
From: Thomas Monjalon @ 2022-03-08 13:34 UTC (permalink / raw)
To: Aman Singh; +Cc: dev, ferruh.yigit
07/03/2022 15:27, Aman Singh:
> 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>
Applied, thanks.
^ permalink raw reply [flat|nested] 13+ messages in thread
end of thread, other threads:[~2022-03-08 13:34 UTC | newest]
Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-01-23 17:20 [PATCH v2] devtools/cocci: update cocci for ethdev namespace 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 ` [PATCH v3] " Aman Singh
2022-03-08 13:34 ` Thomas Monjalon
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).