ethdev: deprecate shared counters using action attribute
PATCH 1/1 ethdev: deprecate shared counters using action attribute
A new generic shared actions API may be used to create shared counter. There is no point to keep duplicate COUNT action specific capability to create shared counters.
---
In fact, it looks like the next logical step is to remove struct rte_flow_action_count completely since counter ID makes sense for shared counters only. I think it will just make it easiser to use COUNT action. Comments are welcome.
doc/guides/rel_notes/deprecation.rst | 4 ++++ lib/librte_ethdev/rte_flow.h | 6 +++++- 2 files changed, 9 insertions(+), 1 deletion(-)
doc/guides/rel_notes/deprecation.rst +4 -0
@@ -138,6 +138,10 @@ Deprecation Notices will be limited to maximum 256 queues. Also compile time flag ``RTE_ETHDEV_QUEUE_STAT_CNTRS`` will be removed. +* ethdev: Attribute ``shared`` of the ``struct rte_flow_action_count`` + is deprecated and will be removed in DPDK 21.11. Shared counters should + be managed using shared actions API (``rte_flow_shared_action_create`` etc). + * cryptodev: support for using IV with all sizes is added, J0 still can be used but only when IV length in following structs ``rte_crypto_auth_xform``, ``rte_crypto_aead_xform`` is set to zero. When IV length is greater or equal
lib/librte_ethdev/rte_flow.h +5 -1
@@ -2287,6 +2287,9 @@ struct rte_flow_query_age {* Counters can be retrieved and reset through ``rte_flow_query()``, see * ``struct rte_flow_query_count``. * +* @deprecated Shared attribute is deprecated, use generic +* RTE_FLOW_ACTION_TYPE_SHARED action. +* * The shared flag indicates whether the counter is unique to the flow rule the * action is specified with, or whether it is a shared counter. *
@@ -2299,7 +2302,8 @@ struct rte_flow_query_age {* to all ports within that switch domain. */ struct rte_flow_action_count { -uint32_t shared:1 ;/**< Share counter ID with other flow rules. */ +/** @deprecated Share counter ID with other flow rules. */ +uint32_t shared:1 ;uint32_t reserved:31 ;/**< Reserved, must be zero. */ uint32_t id;/**< Counter ID. */ };
Signature · 1 line
2.17.1
Hi Andrew,
Quoted 64 lines
-----Original Message-----
From: Andrew Rybchenko <[email protected]>
Sent: Thursday, October 29, 2020 10:53 AM
Subject: [PATCH] ethdev: deprecate shared counters using action attributeA new generic shared actions API may be used to create shared counter. There is no point to keep duplicate COUNT action specific capability to create shared counters.
Signed-off-by Andrew Rybchenko <[email protected]>---
In fact, it looks like the next logical step is to remove structrte_flow_action_countcompletely since counter ID makes sense for shared counters only. I think it will just make it easiser to use COUNT action. Comments are welcome.doc/guides/rel_notes/deprecation.rst | 4 ++++ lib/librte_ethdev/rte_flow.h | 6 +++++- 2 files changed, 9 insertions(+), 1 deletion(-)doc/guides/rel_notes/deprecation.rst +0
-0@@ -138,6 +138,10 @@ Deprecation Notices will be limited to maximum 256 queues. Also compile time flag ``RTE_ETHDEV_QUEUE_STAT_CNTRS`` will beremoved.
doc/guides/rel_notes/deprecation.rst +3
-0+* ethdev: Attribute ``shared`` of the ``struct rte_flow_action_count`` + is deprecated and will be removed in DPDK 21.11. Shared counters should + be managed using shared actions API (``rte_flow_shared_action_create``etc).
+
* cryptodev: support for using IV with all sizes is added, J0 still can be used but only when IV length in following structs
``rte_crypto_auth_xform``,
``rte_crypto_aead_xform`` is set to zero. When IV length is greater or equallib/librte_ethdev/rte_flow.h +5
-2@@ -2287,6 +2287,9 @@ struct rte_flow_query_age {* Counters can be retrieved and reset through ``rte_flow_query()``, see * ``struct rte_flow_query_count``. * +* @deprecated Shared attribute is deprecated, use generic +* RTE_FLOW_ACTION_TYPE_SHARED action. +* * The shared flag indicates whether the counter is unique to the flow rule the * action is specified with, or whether it is a shared counter. * @@ -2299,7 +2302,8 @@ struct rte_flow_query_age {* to all ports within that switch domain. */ struct rte_flow_action_count { -uint32_t shared:1 ;/**< Share counter ID with other flow rules. */ +/** @deprecated Share counter ID with other flow rules. */ +uint32_t shared:1 ;uint32_t reserved:31 ;/**< Reserved, must be zero. */ uint32_t id;/**< Counter ID. */ }; --
Quoted 1 line
2.17.1
As much as I agree with your patch, I don't think we should push it since not all PMD made the move to support count action, so the application still needs to use this API.
I think this patch should be done but in next LTS release.
Best,
Ori
29/10/2020 15:39, Ori Kam:
Quoted 2 lines
Hi Andrew,
[...]
Quoted 10 lines
Quoted 10 lines
A new generic shared actions API may be used to create shared counter. There is no point to keep duplicate COUNT action specific capability to create shared counters.
Signed-off-by Andrew Rybchenko <[email protected]>---
In fact, it looks like the next logical step is to remove structrte_flow_action_countcompletely since counter ID makes sense for shared counters only. I think it will just make it easiser to use COUNT action. Comments are welcome.
[...]
Quoted 5 lines
Quoted 5 lines
doc/guides/rel_notes/deprecation.rst +3
-0+* ethdev: Attribute ``shared`` of the ``struct rte_flow_action_count`` + is deprecated and will be removed in DPDK 21.11. Shared counters should + be managed using shared actions API (``rte_flow_shared_action_create``etc).
+
[...]
Quoted 23 lines
Quoted 17 lines
+ * @deprecated Shared attribute is deprecated, use generic
+ *RTE_FLOW_ACTION_TYPE_SHAREDaction.
+ *
* The shared flag indicates whether the counter is unique to the flow rule the
* action is specified with, or whether it is a shared counter.
*lib/librte_ethdev/rte_flow.h +2
-2@@ -2299,7 +2302,8 @@ struct rte_flow_query_age {* to all ports within that switch domain. */ struct rte_flow_action_count { -uint32_t shared:1 ;/**< Share counter ID with other flow rules. */ +/** @deprecated Share counter ID with other flow rules. */ +uint32_t shared:1 ;uint32_t reserved:31 ;/**< Reserved, must be zero. */ uint32_t id;/**< Counter ID. */ }; --Quoted 1 line
2.17.1
As much as I agree with your patch, I don't think we should push it since not all PMD made the move to support count action, so the application still needs to use this API.
Quoted 1 line
I think this patch should be done but in next LTS release.
The patch is not removing the field,
it is just warning it will be removed in next year.
Quoted 52 lines
-----Original Message-----
From: Thomas Monjalon <[email protected]>
Sent: Thursday, October 29, 2020 6:12 PM
To: Ori Kam <[email protected]>
Subject: Re: [PATCH] ethdev: deprecate shared counters using action attribute29/10/2020 15:39, Ori Kam:
Quoted 2 lines
Hi Andrew,
[...]
Quoted 10 lines
Quoted 10 lines
A new generic shared actions API may be used to create shared counter. There is no point to keep duplicate COUNT action specific capability to create shared counters.
Signed-off-by Andrew Rybchenko <[email protected]>---
In fact, it looks like the next logical step is to remove structrte_flow_action_countcompletely since counter ID makes sense for shared counters only. I think it will just make it easiser to use COUNT action. Comments are welcome.[...]
Quoted 2 lines
Review
Quoted 2 lines
(quoted diff) +2
-0+* ethdev: Attribute ``shared`` of the ``struct rte_flow_action_count`` + is deprecated and will be removed in DPDK 21.11. Shared countersshould
Quoted 3 lines
Quoted 3 lines
+ be managed using shared actions API (``rte_flow_shared_action_create`` etc).
+[...]
Quoted 4 lines
Quoted 4 lines
+ * @deprecated Shared attribute is deprecated, use generic
+ *RTE_FLOW_ACTION_TYPE_SHAREDaction.
+ *
* The shared flag indicates whether the counter is unique to the flow rulethe
Quoted 9 lines
Quoted 9 lines
* action is specified with, or whether it is a shared counter. *
lib/librte_ethdev/rte_flow.h +2
-1@@ -2299,7 +2302,8 @@ struct rte_flow_query_age {* to all ports within that switch domain. */ struct rte_flow_action_count { -uint32_t shared:1 ;/**< Share counter ID with other flow rules. */ +/** @deprecated Share counter ID with other flow rules. */ +uint32_t shared:1 ;Quoted 8 lines
Quoted 5 lines
lib/librte_ethdev/rte_flow.h +0
-1uint32_t reserved:31; /**< Reserved, must be zero. */uint32_t id;/**< Counter ID. */ }; --2.17.1
As much as I agree with your patch, I don't think we should push it since not all PMD made the move to support count action, so the application still
Quoted 8 lines
needs
Quoted 3 lines
to use this API.
I think this patch should be done but in next LTS release.
The patch is not removing the field,
it is just warning it will be removed in next year.
Yes I know, but I don't think it is correct to issue such a warning without support. The application still must use this API, the warning should be added as soon as at least one PMD support shared counters with the new API.
Best,
Ori
+Cc techboard
There is an interesting case here that we should decide how to manage in general. Please see below.
01/11/2020 08:49, Ori Kam:
Quoted 15 lines
From: Thomas Monjalon <[email protected]>
Quoted 14 lines
29/10/2020 15:39, Ori Kam:
Quoted 10 lines
lib/librte_ethdev/rte_flow.h struct rte_flow_query_age { · line 2309
Quoted 7 lines
struct
rte_flow_action_count{lib/librte_ethdev/rte_flow.h +2
-1- uint32_t shared:1; /**< Share counter ID with other flow rules. */ +/** @deprecated Share counter ID with other flow rules. */ + uint32_t shared:1; uint32_t reserved:31; /**< Reserved, must be zero. */uint32_t id;/**< Counter ID. */ };As much as I agree with your patch, I don't think we should push it since not all PMD made the move to support count action, so the application still
needs
Quoted 2 lines
to use this API.
Quoted 8 lines
Quoted 4 lines
Quoted 1 line
I think this patch should be done but in next LTS release.
The patch is not removing the field,
it is just warning it will be removed in next year.Yes I know, but I don't think it is correct to issue such a warning without support. The application still must use this API, the warning should be added as soon as at least one PMD support shared counters with the new API.
It should be replaced with shared actions API,
but you claim it is not supported yet. Right?
What are the criterias to define the replacement as supported?
What to do in such case?
Can we warn about a deprecation without having a proper replacement? What is the pre-condition to warn about a deprecation?
About the complete removal, it has already been decided by the techboard that we cannot remove an API until its replacement is stable. In other words, the new experimental API must be promoted
in the stable ABI, before removing the deprecated API.
Quoted 34 lines · Thomas Monjalon
+Cc techboard
There is an interesting case here that we should decide how to manage in general. Please see below.
01/11/2020 08:49, Ori Kam:
Quoted 15 lines
From: Thomas Monjalon <[email protected]>
Quoted 14 lines
29/10/2020 15:39, Ori Kam:
Quoted 10 lines
lib/librte_ethdev/rte_flow.h struct rte_flow_query_age { · line 2309
Quoted 7 lines
struct
rte_flow_action_count{lib/librte_ethdev/rte_flow.h +2
-1- uint32_t shared:1; /**< Share counter ID with other flow rules. */ +/** @deprecated Share counter ID with other flow rules. */ + uint32_t shared:1; uint32_t reserved:31; /**< Reserved, must be zero. */uint32_t id;/**< Counter ID. */ };As much as I agree with your patch, I don't think we should push it since not all PMD made the move to support count action, so the application still
needs
Quoted 2 lines
to use this API.
Quoted 8 lines
Quoted 4 lines
Quoted 1 line
I think this patch should be done but in next LTS release.
The patch is not removing the field,
it is just warning it will be removed in next year.Yes I know, but I don't think it is correct to issue such a warning without support. The application still must use this API, the warning should be added as soon as at least one PMD support shared counters with the new API.
It should be replaced with shared actions API,
but you claim it is not supported yet. Right?
What are the criterias to define the replacement as supported?
Quoted 9 lines
What to do in such case?
Can we warn about a deprecation without having a proper replacement? What is the pre-condition to warn about a deprecation?About the complete removal, it has already been decided by the techboard that we cannot remove an API until its replacement is stable. In other words, the new experimental API must be promoted
in the stable ABI, before removing the deprecated API.
May be the right way here is to remove deprecation mark up, but add a deprecation notice that it will be deprecated in 21.02 and PMDs are encouraged to switch to shared actions.
Anyway questions above about the criteria are still valid even in this case and should be answered.
Hi Andrew,
Quoted 63 lines
-----Original Message-----
From: dev <[email protected]> On Behalf Of Andrew Rybchenko
Sent: Thursday, October 29, 2020 4:53 PM
To: [email protected]
Cc: Andrey Vesnovaty <[email protected]>; NBU-Contact-Thomas Monjalon <[email protected]>; Ferruh Yigit <[email protected]>; Ray Kinsella <[email protected]>; Neil Horman <[email protected]>; Ori Kam <[email protected]>; Andrew Rybchenko <[email protected]>
Subject: [dpdk-dev] [PATCH] ethdev: deprecate shared counters using action attributeA new generic shared actions API may be used to create shared counter. There is no point to keep duplicate COUNT action specific capability to create shared counters.
Signed-off-by Andrew Rybchenko <[email protected]>---
In fact, it looks like the next logical step is to remove structrte_flow_action_countcompletely since counter ID makes sense for shared counters only. I think it will just make it easiser to use COUNT action. Comments are welcome.doc/guides/rel_notes/deprecation.rst | 4 ++++ lib/librte_ethdev/rte_flow.h | 6 +++++- 2 files changed, 9 insertions(+), 1 deletion(-)doc/guides/rel_notes/deprecation.rst +0
-0@@ -138,6 +138,10 @@ Deprecation Notices will be limited to maximum 256 queues. Also compile time flag ``RTE_ETHDEV_QUEUE_STAT_CNTRS`` will beremoved.
doc/guides/rel_notes/deprecation.rst +4
-0+* ethdev: Attribute ``shared`` of the ``struct rte_flow_action_count`` + is deprecated and will be removed in DPDK 21.11. Shared counters +should + be managed using shared actions API (``rte_flow_shared_action_create``etc).
+
* cryptodev: support for using IV with all sizes is added, J0 still can be used but only when IV length in following structs
``rte_crypto_auth_xform``,
``rte_crypto_aead_xform`` is set to zero. When IV length is greater or equallib/librte_ethdev/rte_flow.h index renamed from lib/librte_ethdev/rte_flow.h +0
-0
a8eac4deb8..2bb93d237a100644lib/librte_ethdev/rte_flow.h +3
-0@@ -2287,6 +2287,9 @@ struct rte_flow_query_age {* Counters can be retrieved and reset through ``rte_flow_query()``, see * ``struct rte_flow_query_count``. * +* @deprecated Shared attribute is deprecated, use generic +* RTE_FLOW_ACTION_TYPE_SHARED action. +* * The shared flag indicates whether the counter is unique to the flow rule the
* action is specified with, or whether it is a shared counter. *
lib/librte_ethdev/rte_flow.h struct rte_flow_query_age { · line 2308
Quoted 8 lines
lib/librte_ethdev/rte_flow.h +2
-1@@ -2299,7 +2302,8 @@ struct rte_flow_query_age {* to all ports within that switch domain. */ struct rte_flow_action_count { -uint32_t shared:1 ;/**< Share counter ID with other flow rules. */ +/** @deprecated Share counter ID with other flow rules. */ +uint32_t shared:1 ;uint32_t reserved:31 ;/**< Reserved, must be zero. */ uint32_t id;/**< Counter ID. */
Do you think id could be removed as well? neither non-shared flow counter query, nor shared action query.
Quoted 3 lines
lib/librte_ethdev/rte_flow.h +0
-1}; --2.17.1
Quoted 67 lines · Xueming(Steven) Li
Hi Andrew,
Quoted 65 lines
-----Original Message-----
From: dev <[email protected]> On Behalf Of Andrew Rybchenko
Sent: Thursday, October 29, 2020 4:53 PM
To: [email protected]
Cc: Andrey Vesnovaty <[email protected]>; NBU-Contact-Thomas Monjalon <[email protected]>; Ferruh Yigit <[email protected]>; Ray Kinsella <[email protected]>; Neil Horman <[email protected]>; Ori Kam <[email protected]>; Andrew Rybchenko <[email protected]>
Subject: [dpdk-dev] [PATCH] ethdev: deprecate shared counters using action attributeA new generic shared actions API may be used to create shared counter. There is no point to keep duplicate COUNT action specific capability to create shared counters.
Signed-off-by Andrew Rybchenko <[email protected]>---
In fact, it looks like the next logical step is to remove structrte_flow_action_countcompletely since counter ID makes sense for shared counters only. I think it will just make it easiser to use COUNT action. Comments are welcome.doc/guides/rel_notes/deprecation.rst | 4 ++++ lib/librte_ethdev/rte_flow.h | 6 +++++- 2 files changed, 9 insertions(+), 1 deletion(-)doc/guides/rel_notes/deprecation.rst +0
-0@@ -138,6 +138,10 @@ Deprecation Notices will be limited to maximum 256 queues. Also compile time flag ``RTE_ETHDEV_QUEUE_STAT_CNTRS`` will beremoved.
doc/guides/rel_notes/deprecation.rst +4
-0+* ethdev: Attribute ``shared`` of the ``struct rte_flow_action_count`` + is deprecated and will be removed in DPDK 21.11. Shared counters +should + be managed using shared actions API (``rte_flow_shared_action_create``etc).
+
* cryptodev: support for using IV with all sizes is added, J0 still can be used but only when IV length in following structs
``rte_crypto_auth_xform``,
``rte_crypto_aead_xform`` is set to zero. When IV length is greater or equallib/librte_ethdev/rte_flow.h index renamed from lib/librte_ethdev/rte_flow.h +0
-0
a8eac4deb8..2bb93d237a100644lib/librte_ethdev/rte_flow.h +3
-0@@ -2287,6 +2287,9 @@ struct rte_flow_query_age {* Counters can be retrieved and reset through ``rte_flow_query()``, see * ``struct rte_flow_query_count``. * +* @deprecated Shared attribute is deprecated, use generic +* RTE_FLOW_ACTION_TYPE_SHARED action. +* * The shared flag indicates whether the counter is unique to the flow rule the
* action is specified with, or whether it is a shared counter. *lib/librte_ethdev/rte_flow.h +0
-0@@ -2299,7 +2302,8 @@ struct rte_flow_query_age {* to all ports within that switch domain. */
Quoted 8 lines
lib/librte_ethdev/rte_flow.h struct rte_flow_query_age { · line 2308
Quoted 6 lines
lib/librte_ethdev/rte_flow.h +2
-1struct rte_flow_action_count { -uint32_t shared:1 ;/**< Share counter ID with other flow rules. */ +/** @deprecated Share counter ID with other flow rules. */ +uint32_t shared:1 ;uint32_t reserved:31 ;/**< Reserved, must be zero. */ uint32_t id;/**< Counter ID. */ Do you think id could be removed as well? neither non-shared flow counter query, nor shared action query.
I'm not 100% sure, but yes, as I write above just after my Signed-off-by.
Ferruh Yigit
Reviewed-byQuoted 77 lines · Andrew Rybchenko
Quoted 67 lines · Xueming(Steven) Li
Hi Andrew,
Quoted 65 lines
-----Original Message-----
From: dev <[email protected]> On Behalf Of Andrew Rybchenko
Sent: Thursday, October 29, 2020 4:53 PM
To: [email protected]
Cc: Andrey Vesnovaty <[email protected]>; NBU-Contact-Thomas Monjalon <[email protected]>; Ferruh Yigit <[email protected]>; Ray Kinsella <[email protected]>; Neil Horman <[email protected]>; Ori Kam <[email protected]>; Andrew Rybchenko <[email protected]>
Subject: [dpdk-dev] [PATCH] ethdev: deprecate shared counters using action attributeA new generic shared actions API may be used to create shared counter. There is no point to keep duplicate COUNT action specific capability to create shared counters.
Signed-off-by Andrew Rybchenko <[email protected]>---
In fact, it looks like the next logical step is to remove structrte_flow_action_countcompletely since counter ID makes sense for shared counters only. I think it will just make it easiser to use COUNT action. Comments are welcome.
doc/guides/rel_notes/deprecation.rst| 4 ++++
lib/librte_ethdev/rte_flow.h | 6 +++++-2 files changed, 9 insertions(+), 1 deletion(-)doc/guides/rel_notes/deprecation.rst +0
-0@@ -138,6 +138,10 @@ Deprecation Noticeswill be limited to maximum 256 queues.
Also compile time flag ``RTE_ETHDEV_QUEUE_STAT_CNTRS`` will be removed.doc/guides/rel_notes/deprecation.rst +4
-0+* ethdev: Attribute ``shared`` of the ``struct rte_flow_action_count`` + is deprecated and will be removed in DPDK 21.11. Shared counters +should + be managed using shared actions API (``rte_flow_shared_action_create``etc).
+
* cryptodev: support for using IV with all sizes is added, J0 still can be used but only when IV length in following structs ``rte_crypto_auth_xform``,
``rte_crypto_aead_xform`` is set to zero. When IV length is greater or equallib/librte_ethdev/rte_flow.h index renamed from lib/librte_ethdev/rte_flow.h +0
-0
a8eac4deb8..2bb93d237a100644lib/librte_ethdev/rte_flow.h +3
-0@@ -2287,6 +2287,9 @@ struct rte_flow_query_age { * Counters can be retrieved and reset through ``rte_flow_query()``, see * ``struct rte_flow_query_count``. * + * @deprecated Shared attribute is deprecated, use generic + * RTE_FLOW_ACTION_TYPE_SHARED action. + * * The shared flag indicates whether the counter is unique to the flow rulethe
* action is specified with, or whether it is a shared counter. *lib/librte_ethdev/rte_flow.h +0
-0@@ -2299,7 +2302,8 @@ struct rte_flow_query_age {* to all ports within that switch domain. */ Quoted 8 lines
Quoted 6 lines
lib/librte_ethdev/rte_flow.h +2
-1struct rte_flow_action_count { - uint32_t shared:1; /**< Share counter ID with other flow rules. */ + /** @deprecated Share counter ID with other flow rules. */ + uint32_t shared:1;
uint32_treserved:31; /**< Reserved, must be zero. */uint32_tid; /**< Counter ID. */Do you think id could be removed as well? neither non-shared flow counter query, nor shared action query.
Quoted 2 lines
I'm not 100% sure, but yes, as I write above just after my Signed-off-by.
cc'ed Declan + maintainers of PMDs for the 'id' field, but as far as I can see it is used out of the 'shared' context, so I am for going on with existing patch for now.
Quoted 105 lines
-----Original Message-----
From: Ferruh Yigit <[email protected]>
Sent: Monday, November 2, 2020 18:01
To: Andrew Rybchenko <[email protected]>; Xueming(Steven) Li <[email protected]>; Andrew Rybchenko <[email protected]>; [email protected]; [email protected]
Cc: Andrey Vesnovaty <[email protected]>; NBU-Contact-Thomas Monjalon <[email protected]>; Ray Kinsella <[email protected]>; Neil Horman <[email protected]>; Ori Kam <[email protected]>; Wei Hu (Xavier) <[email protected]>; Min Hu (Connor) <[email protected]>; Yisen Zhuang <[email protected]>; Lijun Ou <[email protected]>; Matan Azrad <[email protected]>; Shahaf Shuler <[email protected]>; Slava Ovsiienko <[email protected]>; Jasvinder Singh <[email protected]>; Cristian Dumitrescu <[email protected]>; Ajit Khaparde <[email protected]>; Somnath Kotur <[email protected]>; Qiming Yang <[email protected]>; Qi Zhang <[email protected]>
Subject: Re: [dpdk-dev] [PATCH] ethdev: deprecate shared counters using action attributeQuoted 19 lines · Andrew Rybchenko
Quoted 18 lines · Xueming(Steven) Li
Hi Andrew,
Quoted 16 lines
-----Original Message-----
From: dev <[email protected]> On Behalf Of Andrew Rybchenko
Sent: Thursday, October 29, 2020 4:53 PM
To: [email protected]
Cc: Andrey Vesnovaty <[email protected]>; NBU-Contact-Thomas Monjalon <[email protected]>; Ferruh Yigit <[email protected]>; Ray Kinsella <[email protected]>; Neil Horman <[email protected]>; Ori Kam <[email protected]>; Andrew Rybchenko <[email protected]>
Subject: [dpdk-dev] [PATCH] ethdev: deprecate shared counters using action attributeA new generic shared actions API may be used to create shared counter. There is no point to keep duplicate COUNT action specific capability to create shared counters.
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Signed-off-by Andrew Rybchenko <[email protected]>---
In fact, it looks like the next logical step is to remove structrte_flow_action_countcompletely since counter ID makes sense for shared counters only. I think it will just make it easiser to use COUNTaction.
Quoted 58 lines
Quoted 57 lines
Quoted 53 lines
Comments are welcome.
doc/guides/rel_notes/deprecation.rst| 4 ++++
lib/librte_ethdev/rte_flow.h | 6 +++++-2 files changed, 9 insertions(+), 1 deletion(-)doc/guides/rel_notes/deprecation.rst +0
-0@@ -138,6 +138,10 @@ Deprecation Noticeswill be limited to maximum 256 queues.
Also compile time flag ``RTE_ETHDEV_QUEUE_STAT_CNTRS`` will be removed.doc/guides/rel_notes/deprecation.rst +6
-0+* ethdev: Attribute ``shared`` of the ``struct +rte_flow_action_count`` + is deprecated and will be removed in DPDK 21.11. Shared counters +should + be managed using shared actions API +(``rte_flow_shared_action_create``etc).
+
* cryptodev: support for using IV with all sizes is added, J0 still can
be used but only when IV length in following structs ``rte_crypto_auth_xform``,
``rte_crypto_aead_xform`` is set to zero. When IV length is greater or equal diff --gita/lib/librte_ethdev/rte_flow.hb/lib/librte_ethdev/rte_flow.hindexa8eac4deb8..2bb93d237a100644lib/librte_ethdev/rte_flow.h +0
-0@@ -2287,6 +2287,9 @@ struct rte_flow_query_age { * Counters can be retrieved and reset through``rte_flow_query()``, see
* ``struct rte_flow_query_count``.
*
+ * @deprecated Shared attribute is deprecated, use generic
+ *RTE_FLOW_ACTION_TYPE_SHAREDaction.
+ *
* The shared flag indicates whether the counter is unique to the flow rule the
* action is specified with, or whether it is a shared counter. *lib/librte_ethdev/rte_flow.h +2
-1@@ -2299,7 +2302,8 @@ struct rte_flow_query_age {* to all ports within that switch domain. */ struct rte_flow_action_count { - uint32_t shared:1; /**< Share counter ID with other flow rules. */ + /** @deprecated Share counter ID with other flow rules. */ + uint32_t shared:1;Quoted 2 lines
uint32_treserved:31; /**< Reserved, must be zero. */uint32_tid; /**< Counter ID. */Do you think id could be removed as well? neither non-shared flow counter query, nor shared action query.
Quoted 8 lines
Quoted 2 lines
I'm not 100% sure, but yes, as I write above just after my Signed-off-by.
cc'ed Declan + maintainers of PMDs for the 'id' field, but as far as I can see it is used out of the 'shared' context, so I am for going on with existing patch for now.
Reviewed-by Ferruh Yigit <[email protected]>
It depends whether we are going to support multiple counters for the same flow. If there is the only counter per flow we could get rid of the "id" field either. If it is still needed, PMDs should generate counter id internally and id should not be exposed outside.
With best regards, Slava
PS. What about meters? The next good candidate to shared actions.
Quoted 108 lines · Slava Ovsiienko
Quoted 108 lines
-----Original Message-----
From: Ferruh Yigit <[email protected]>
Sent: Monday, November 2, 2020 18:01
To: Andrew Rybchenko <[email protected]>; Xueming(Steven) Li <[email protected]>; Andrew Rybchenko <[email protected]>; [email protected]; [email protected]
Cc: Andrey Vesnovaty <[email protected]>; NBU-Contact-Thomas Monjalon <[email protected]>; Ray Kinsella <[email protected]>; Neil Horman <[email protected]>; Ori Kam <[email protected]>; Wei Hu (Xavier) <[email protected]>; Min Hu (Connor) <[email protected]>; Yisen Zhuang <[email protected]>; Lijun Ou <[email protected]>; Matan Azrad <[email protected]>; Shahaf Shuler <[email protected]>; Slava Ovsiienko <[email protected]>; Jasvinder Singh <[email protected]>; Cristian Dumitrescu <[email protected]>; Ajit Khaparde <[email protected]>; Somnath Kotur <[email protected]>; Qiming Yang <[email protected]>; Qi Zhang <[email protected]>
Subject: Re: [dpdk-dev] [PATCH] ethdev: deprecate shared counters using action attributeQuoted 19 lines · Andrew Rybchenko
Quoted 18 lines · Xueming(Steven) Li
Hi Andrew,
Quoted 16 lines
-----Original Message-----
From: dev <[email protected]> On Behalf Of Andrew Rybchenko
Sent: Thursday, October 29, 2020 4:53 PM
To: [email protected]
Cc: Andrey Vesnovaty <[email protected]>; NBU-Contact-Thomas Monjalon <[email protected]>; Ferruh Yigit <[email protected]>; Ray Kinsella <[email protected]>; Neil Horman <[email protected]>; Ori Kam <[email protected]>; Andrew Rybchenko <[email protected]>
Subject: [dpdk-dev] [PATCH] ethdev: deprecate shared counters using action attributeA new generic shared actions API may be used to create shared counter. There is no point to keep duplicate COUNT action specific capability to create shared counters.
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Signed-off-by Andrew Rybchenko <[email protected]>---
In fact, it looks like the next logical step is to remove structrte_flow_action_countcompletely since counter ID makes sense for shared counters only. I think it will just make it easiser to use COUNTaction.
Quoted 60 lines
Quoted 49 lines
Quoted 49 lines
Comments are welcome.
doc/guides/rel_notes/deprecation.rst | 4 ++++ lib/librte_ethdev/rte_flow.h | 6 +++++- 2 files changed, 9 insertions(+), 1 deletion(-)doc/guides/rel_notes/deprecation.rst +0
-0@@ -138,6 +138,10 @@ Deprecation Notices will be limited to maximum 256 queues. Also compile time flag ``RTE_ETHDEV_QUEUE_STAT_CNTRS`` will beremoved.
doc/guides/rel_notes/deprecation.rst +6
-0+* ethdev: Attribute ``shared`` of the ``struct +rte_flow_action_count`` + is deprecated and will be removed in DPDK 21.11. Shared counters +should + be managed using shared actions API +(``rte_flow_shared_action_create``etc).
+
* cryptodev: support for using IV with all sizes is added, J0
still can
be used but only when IV length in following structs
``rte_crypto_auth_xform``,
``rte_crypto_aead_xform`` is set to zero. When IV length is
greater or equal diff --gita/lib/librte_ethdev/rte_flow.hb/lib/librte_ethdev/rte_flow.hindexa8eac4deb8..2bb93d237a100644lib/librte_ethdev/rte_flow.h +0
-0@@ -2287,6 +2287,9 @@ struct rte_flow_query_age { * Counters can be retrieved and reset through``rte_flow_query()``, see
* ``struct rte_flow_query_count``.
*
+ * @deprecated Shared attribute is deprecated, use generic
+ *RTE_FLOW_ACTION_TYPE_SHAREDaction.
+ *
* The shared flag indicates whether the counter is unique to the
flow rule the
* action is specified with, or whether it is a shared counter. *lib/librte_ethdev/rte_flow.h +0
-0@@ -2299,7 +2302,8 @@ struct rte_flow_query_age {* to all ports within that switch domain. */ struct rte_flow_action_count {Quoted 8 lines
lib/librte_ethdev/rte_flow.h struct rte_flow_query_age { · line 2308
Quoted 6 lines
lib/librte_ethdev/rte_flow.h +2
-1- uint32_t shared:1; /**< Share counter ID with other flow rules.*/ + /** @deprecated Share counter ID with other flow rules. */ + uint32_t shared:1; uint32_t reserved:31; /**< Reserved, must be zero. */ uint32_t id; /**< Counter ID. */Do you think id could be removed as well? neither non-shared flow counter query, nor shared action query.
I'm not 100% sure, but yes, as I write above just after my Signed-off-by.
Quoted 7 lines
Quoted 5 lines
cc'ed Declan + maintainers of PMDs for the 'id' field, but as far as I can see it is used out of the 'shared' context, so I am for going on with existing patch for now.
Reviewed-by Ferruh Yigit <[email protected]>It depends whether we are going to support multiple counters for the same flow.
Why? Query refers to a counter using action pointer. There is always one counter in one action. If you need more counters, just use more actions.
Quoted 8 lines
If there is the only counter per flow we could get rid of the "id" field either. If it is still needed, PMDs should generate counter id internally and id should not be exposed outside.
With best regards, Slava
PS. What about meters? The next good candidate to shared actions.
Quoted 140 lines
-----Original Message-----
From: Andrew Rybchenko <[email protected]>
Sent: Monday, November 2, 2020 18:40
To: Slava Ovsiienko <[email protected]>; Ferruh Yigit <[email protected]>; Xueming(Steven) Li <[email protected]>; Andrew Rybchenko <[email protected]>; [email protected]; [email protected]
Cc: Andrey Vesnovaty <[email protected]>; NBU-Contact-Thomas Monjalon <[email protected]>; Ray Kinsella <[email protected]>; Neil Horman <[email protected]>; Ori Kam <[email protected]>; Wei Hu (Xavier) <[email protected]>; Min Hu (Connor) <[email protected]>; Yisen Zhuang <[email protected]>; Lijun Ou <[email protected]>; Matan Azrad <[email protected]>; Shahaf Shuler <[email protected]>; Jasvinder Singh <[email protected]>; Cristian Dumitrescu <[email protected]>; Ajit Khaparde <[email protected]>; Somnath Kotur <[email protected]>; Qiming Yang <[email protected]>; Qi Zhang <[email protected]>
Subject: Re: [dpdk-dev] [PATCH] ethdev: deprecate shared counters using action attributeQuoted 4 lines · Slava Ovsiienko
Quoted 4 lines
-----Original Message-----
From: Ferruh Yigit <[email protected]>
Sent: Monday, November 2, 2020 18:01
To: Andrew Rybchenko <[email protected]>;Xueming(Steven)
Quoted 7 lines
Quoted 7 lines
Li <[email protected]>; Andrew Rybchenko <[email protected]>; [email protected]; [email protected]
Cc: Andrey Vesnovaty <[email protected]>; NBU-Contact-Thomas Monjalon <[email protected]>; Ray Kinsella <[email protected]>; Neil Horman <[email protected]>; Ori Kam <[email protected]>; Wei Hu (Xavier) <[email protected]>; Min Hu (Connor) <[email protected]>; Yisen Zhuang <[email protected]>;Lijun
Quoted 7 lines
Quoted 7 lines
Ou <[email protected]>; Matan Azrad <[email protected]>; Shahaf Shuler <[email protected]>; Slava Ovsiienko <[email protected]>; Jasvinder Singh <[email protected]>; Cristian Dumitrescu <[email protected]>; Ajit Khaparde <[email protected]>; Somnath Kotur <[email protected]>; Qiming Yang <[email protected]>;
Qi
Quoted 8 lines
Quoted 8 lines
Zhang <[email protected]>
Subject: Re: [dpdk-dev] [PATCH] ethdev: deprecate shared counters using action attributeQuoted 3 lines · Andrew Rybchenko
Quoted 2 lines · Xueming(Steven) Li
Hi Andrew,
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
-----Original Message-----
From: dev <[email protected]> On Behalf Of Andrew Rybchenko
Sent: Thursday, October 29, 2020 4:53 PM
To: [email protected]
Cc: Andrey Vesnovaty <[email protected]>; NBU-Contact-Thomas Monjalon <[email protected]>; Ferruh Yigit <[email protected]>; Ray Kinsella <[email protected]>; Neil Horman <[email protected]>; Ori Kam <[email protected]>;Andrew
Quoted 80 lines
Quoted 80 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Rybchenko <[email protected]>
Subject: [dpdk-dev] [PATCH] ethdev: deprecate shared counters using action attributeA new generic shared actions API may be used to create shared counter. There is no point to keep duplicate COUNT action specific capability to create shared counters.
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Signed-off-by Andrew Rybchenko <[email protected]>---
In fact, it looks like the next logical step is to remove structrte_flow_action_countcompletely since counter ID makes sense for shared counters only. I think it will just make it easiser to use COUNTaction.
Quoted 58 lines
Quoted 49 lines
Quoted 49 lines
Comments are welcome.
doc/guides/rel_notes/deprecation.rst | 4 ++++ lib/librte_ethdev/rte_flow.h | 6 +++++- 2 files changed, 9 insertions(+), 1 deletion(-)doc/guides/rel_notes/deprecation.rst +0
-0@@ -138,6 +138,10 @@ Deprecation Notices will be limited to maximum 256 queues. Also compile time flag ``RTE_ETHDEV_QUEUE_STAT_CNTRS`` willbe removed.
doc/guides/rel_notes/deprecation.rst +6
-0+* ethdev: Attribute ``shared`` of the ``struct +rte_flow_action_count`` + is deprecated and will be removed in DPDK 21.11. Shared +counters should + be managed using shared actions API +(``rte_flow_shared_action_create``etc).
+
* cryptodev: support for using IV with all sizes is added, J0
still can
be used but only when IV length in following structs
``rte_crypto_auth_xform``,
``rte_crypto_aead_xform`` is set to zero. When IV length is
greater or equal diff --gita/lib/librte_ethdev/rte_flow.hb/lib/librte_ethdev/rte_flow.hindexa8eac4deb8..2bb93d237a100644lib/librte_ethdev/rte_flow.h +0
-0@@ -2287,6 +2287,9 @@ struct rte_flow_query_age { * Counters can be retrieved and reset through``rte_flow_query()``, see
* ``struct rte_flow_query_count``.
*
+ * @deprecated Shared attribute is deprecated, use generic
+ *RTE_FLOW_ACTION_TYPE_SHAREDaction.
+ *
* The shared flag indicates whether the counter is unique to
the flow rule the
* action is specified with, or whether it is a shared counter. *lib/librte_ethdev/rte_flow.h +0
-0@@ -2299,7 +2302,8 @@ struct rte_flow_query_age {* to all ports within that switch domain. */ struct rte_flow_action_count {Quoted 8 lines
lib/librte_ethdev/rte_flow.h struct rte_flow_query_age { · line 2308
Quoted 6 lines
lib/librte_ethdev/rte_flow.h +2
-1- uint32_t shared:1; /**< Share counter ID with other flow rules.*/ + /** @deprecated Share counter ID with other flow rules. */ + uint32_t shared:1; uint32_t reserved:31; /**< Reserved, must be zero. */ uint32_t id; /**< Counter ID. */Do you think id could be removed as well? neither non-shared flow counter query, nor shared action query.
Quoted 2 lines
I'm not 100% sure, but yes, as I write above just after my Signed-off-by.
cc'ed Declan + maintainers of PMDs for the 'id' field, but as far as I can see it is used out of the 'shared' context, so I am for going on with existing patch for now.
Quoted 8 lines
Quoted 3 lines
Quoted 1 line
Reviewed-by Ferruh Yigit <[email protected]>It depends whether we are going to support multiple counters for the same
flow.
Why? Query refers to a counter using action pointer. There is always one counter in one action. If you need more counters, just use more actions.
Honestly, I wonder if someone wants to use multiple counters in the same flow. That might happen if we add some unique attributes to the counter action (say, count some complex events/traffic params).
Action pointer in the rte_flow_query() is just a pointer to some counter action describing the counter. If we drop id field (and only action type COUNTER remains in action description) - there would be no way to distinguish two (regular, not shared) counters in the flow. Which one should be returned on query?
Quoted 9 lines
Quoted 2 lines
If there is the only counter per flow we could get rid of the "id" field either. If it is still needed, PMDs should generate counter id internally
and id should not be exposed outside.
Quoted 6 lines
With best regards, Slava
PS. What about meters? The next good candidate to shared actions.
Quoted 143 lines · Slava Ovsiienko
Quoted 143 lines
-----Original Message-----
From: Andrew Rybchenko <[email protected]>
Sent: Monday, November 2, 2020 18:40
To: Slava Ovsiienko <[email protected]>; Ferruh Yigit <[email protected]>; Xueming(Steven) Li <[email protected]>; Andrew Rybchenko <[email protected]>; [email protected]; [email protected]
Cc: Andrey Vesnovaty <[email protected]>; NBU-Contact-Thomas Monjalon <[email protected]>; Ray Kinsella <[email protected]>; Neil Horman <[email protected]>; Ori Kam <[email protected]>; Wei Hu (Xavier) <[email protected]>; Min Hu (Connor) <[email protected]>; Yisen Zhuang <[email protected]>; Lijun Ou <[email protected]>; Matan Azrad <[email protected]>; Shahaf Shuler <[email protected]>; Jasvinder Singh <[email protected]>; Cristian Dumitrescu <[email protected]>; Ajit Khaparde <[email protected]>; Somnath Kotur <[email protected]>; Qiming Yang <[email protected]>; Qi Zhang <[email protected]>
Subject: Re: [dpdk-dev] [PATCH] ethdev: deprecate shared counters using action attributeQuoted 4 lines · Slava Ovsiienko
Quoted 4 lines
-----Original Message-----
From: Ferruh Yigit <[email protected]>
Sent: Monday, November 2, 2020 18:01
To: Andrew Rybchenko <[email protected]>;Xueming(Steven)
Quoted 7 lines
Quoted 7 lines
Li <[email protected]>; Andrew Rybchenko <[email protected]>; [email protected]; [email protected]
Cc: Andrey Vesnovaty <[email protected]>; NBU-Contact-Thomas Monjalon <[email protected]>; Ray Kinsella <[email protected]>; Neil Horman <[email protected]>; Ori Kam <[email protected]>; Wei Hu (Xavier) <[email protected]>; Min Hu (Connor) <[email protected]>; Yisen Zhuang <[email protected]>;Lijun
Quoted 7 lines
Quoted 7 lines
Ou <[email protected]>; Matan Azrad <[email protected]>; Shahaf Shuler <[email protected]>; Slava Ovsiienko <[email protected]>; Jasvinder Singh <[email protected]>; Cristian Dumitrescu <[email protected]>; Ajit Khaparde <[email protected]>; Somnath Kotur <[email protected]>; Qiming Yang <[email protected]>;
Qi
Quoted 8 lines
Quoted 8 lines
Zhang <[email protected]>
Subject: Re: [dpdk-dev] [PATCH] ethdev: deprecate shared counters using action attributeQuoted 3 lines · Andrew Rybchenko
Quoted 2 lines · Xueming(Steven) Li
Hi Andrew,
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
-----Original Message-----
From: dev <[email protected]> On Behalf Of Andrew Rybchenko
Sent: Thursday, October 29, 2020 4:53 PM
To: [email protected]
Cc: Andrey Vesnovaty <[email protected]>; NBU-Contact-Thomas Monjalon <[email protected]>; Ferruh Yigit <[email protected]>; Ray Kinsella <[email protected]>; Neil Horman <[email protected]>; Ori Kam <[email protected]>;Andrew
Quoted 83 lines
Quoted 73 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Rybchenko <[email protected]>
Subject: [dpdk-dev] [PATCH] ethdev: deprecate shared counters using action attributeA new generic shared actions API may be used to create shared counter. There is no point to keep duplicate COUNT action specific capability to create shared counters.
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Signed-off-by Andrew Rybchenko <[email protected]>---
In fact, it looks like the next logical step is to remove structrte_flow_action_countcompletely since counter ID makes sense for shared counters only. I think it will just make it easiser to use COUNTaction.
Quoted 58 lines
Quoted 57 lines
Quoted 46 lines
Comments are welcome.
doc/guides/rel_notes/deprecation.rst | 4 ++++ lib/librte_ethdev/rte_flow.h | 6 +++++- 2 files changed, 9 insertions(+), 1 deletion(-)doc/guides/rel_notes/deprecation.rst +0
-0@@ -138,6 +138,10 @@ Deprecation Notices will be limited to maximum 256 queues. Also compile time flag ``RTE_ETHDEV_QUEUE_STAT_CNTRS`` willbe removed.
doc/guides/rel_notes/deprecation.rst +6
-0+* ethdev: Attribute ``shared`` of the ``struct +rte_flow_action_count`` + is deprecated and will be removed in DPDK 21.11. Shared +counters should + be managed using shared actions API +(``rte_flow_shared_action_create``etc).
+
* cryptodev: support for using IV with all sizes is added, J0
still can
be used but only when IV length in following structs
``rte_crypto_auth_xform``,
``rte_crypto_aead_xform`` is set to zero. When IV length is
greater or equal diff --gita/lib/librte_ethdev/rte_flow.hb/lib/librte_ethdev/rte_flow.hindexa8eac4deb8..2bb93d237a100644lib/librte_ethdev/rte_flow.h +0
-0@@ -2287,6 +2287,9 @@ struct rte_flow_query_age { * Counters can be retrieved and reset through``rte_flow_query()``, see
* ``struct rte_flow_query_count``.
*
+ * @deprecated Shared attribute is deprecated, use generic
+ *RTE_FLOW_ACTION_TYPE_SHAREDaction.
+ *
* The shared flag indicates whether the counter is unique to
the flow rule the
* action is specified with, or whether it is a shared counter. *lib/librte_ethdev/rte_flow.h struct rte_flow_query_age { · line 2309
Quoted 9 lines
lib/librte_ethdev/rte_flow.h +2
-1@@ -2299,7 +2302,8 @@ struct rte_flow_query_age {* to all ports within that switch domain. */ struct rte_flow_action_count { - uint32_t shared:1; /**< Share counter ID with other flow rules. */ + /** @deprecated Share counter ID with other flow rules. */ + uint32_t shared:1; uint32_t reserved:31; /**< Reserved, must be zero. */ uint32_t id; /**< Counter ID. */Do you think id could be removed as well? neither non-shared flow counter query, nor shared action query.
Quoted 8 lines
Quoted 2 lines
I'm not 100% sure, but yes, as I write above just after my Signed-off-by.
cc'ed Declan + maintainers of PMDs for the 'id' field, but as far as I can see it is used out of the 'shared' context, so I am for going on with existing patch for now.
Reviewed-by Ferruh Yigit <[email protected]>It depends whether we are going to support multiple counters for the same
Quoted 9 lines
Quoted 5 lines
flow.
Why? Query refers to a counter using action pointer. There is always one counter in one action. If you need more counters, just use more actions.
Honestly, I wonder if someone wants to use multiple counters in the same flow. That might happen if we add some unique attributes to the counter action (say, count some complex events/traffic params).
It might make sense for shared counters, but it they are done using shared actions, we don't need ID as well.
Quoted 5 lines
Action pointer in the
rte_flow_query()is just a pointer to some counter action describing the counter. If we drop id field (and only action type COUNTER remains in action description) - there would be no way to distinguish two (regular, not shared) counters in the flow. Which one should be returned on query?
I thought that 'action' must be exactly the same pointer to actions array element specified on flow creation. It looks like I'm wrong. If so, yes, id is still required for non-shared many COUNT actions in the same flow. I doubt that we need it as well. Thanks for clarification.
Quoted 10 lines
Quoted 9 lines
Quoted 2 lines
If there is the only counter per flow we could get rid of the "id" field either. If it is still needed, PMDs should generate counter id internally
and id should not be exposed outside.
Quoted 6 lines
With best regards, Slava
PS. What about meters? The next good candidate to shared actions.
Quoted 186 lines
-----Original Message-----
From: Andrew Rybchenko <[email protected]>
Sent: Tuesday, November 3, 2020 1:56 AM
To: Slava Ovsiienko <[email protected]>; Ferruh Yigit <[email protected]>; Xueming(Steven) Li <[email protected]>; Andrew Rybchenko <[email protected]>; [email protected]; [email protected]
Cc: Andrey Vesnovaty <[email protected]>; NBU-Contact-Thomas Monjalon <[email protected]>; Ray Kinsella <[email protected]>; Neil Horman <[email protected]>; Ori Kam <[email protected]>; Wei Hu (Xavier) <[email protected]>; Min Hu (Connor) <[email protected]>; Yisen Zhuang <[email protected]>; Lijun Ou <[email protected]>; Matan Azrad <[email protected]>; Shahaf Shuler <[email protected]>; Jasvinder Singh <[email protected]>; Cristian Dumitrescu <[email protected]>; Ajit Khaparde <[email protected]>; Somnath Kotur <[email protected]>; Qiming Yang <[email protected]>; Qi Zhang <[email protected]>
Subject: Re: [dpdk-dev] [PATCH] ethdev: deprecate shared counters using action attributeQuoted 10 lines · Slava Ovsiienko
Quoted 10 lines
-----Original Message-----
From: Andrew Rybchenko <[email protected]>
Sent: Monday, November 2, 2020 18:40
To: Slava Ovsiienko <[email protected]>; Ferruh Yigit <[email protected]>; Xueming(Steven) Li <[email protected]>; Andrew Rybchenko <[email protected]>; [email protected]; [email protected]
Cc: Andrey Vesnovaty <[email protected]>; NBU-Contact-Thomas Monjalon <[email protected]>; Ray Kinsella <[email protected]>; Neil Horman <[email protected]>; Ori Kam <[email protected]>; WeiHu
Quoted 2 lines
Quoted 2 lines
(Xavier) <[email protected]>; Min Hu (Connor) <[email protected]>; Yisen Zhuang <[email protected]>;
Lijun
Quoted 6 lines
Quoted 6 lines
Ou <[email protected]>; Matan Azrad <[email protected]>; Shahaf Shuler <[email protected]>; Jasvinder Singh <[email protected]>; Cristian Dumitrescu <[email protected]>; Ajit Khaparde <[email protected]>; Somnath Kotur <[email protected]>; Qiming Yang
<[email protected]>; Qi
Quoted 4 lines
Quoted 4 lines
Zhang <[email protected]>
Subject: Re: [dpdk-dev] [PATCH] ethdev: deprecate shared counters using action attributeQuoted 8 lines
Quoted 8 lines · Slava Ovsiienko
Quoted 4 lines
Quoted 4 lines
-----Original Message-----
From: Ferruh Yigit <[email protected]>
Sent: Monday, November 2, 2020 18:01
To: Andrew Rybchenko <[email protected]>;Xueming(Steven)
Quoted 2 lines
Quoted 2 lines
Li <[email protected]>; Andrew Rybchenko
<[email protected]>; [email protected];Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Cc: Andrey Vesnovaty <[email protected]>; NBU-Contact-Thomas Monjalon <[email protected]>; Ray Kinsella <[email protected]>;
Neil
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Horman <[email protected]>; Ori Kam <[email protected]>;
Wei Hu
Quoted 4 lines
Quoted 4 lines
Quoted 2 lines
Quoted 2 lines
(Xavier) <[email protected]>; Min Hu (Connor) <[email protected]>; Yisen Zhuang <[email protected]>;
Lijun
Quoted 1 line
Quoted 1 line
Ou <[email protected]>; Matan Azrad <[email protected]>;
Shahaf
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Shuler <[email protected]>; Slava Ovsiienko
<[email protected]>; Jasvinder Singh
<[email protected]>; Cristian Dumitrescu
<[email protected]>; Ajit Khaparde
<[email protected]>; Somnath Kotur
<[email protected]>; Qiming YangQuoted 11 lines
Quoted 11 lines
Qi
Quoted 10 lines
Quoted 10 lines
Zhang <[email protected]>
Subject: Re: [dpdk-dev] [PATCH] ethdev: deprecate shared counters using action attributeQuoted 5 lines · Andrew Rybchenko
Quoted 4 lines · Xueming(Steven) Li
Hi Andrew,
Quoted 2 lines
-----Original Message-----
From: dev <[email protected]> On Behalf Of AndrewRybchenko
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Sent: Thursday, October 29, 2020 4:53 PM
To: [email protected]
Cc: Andrey Vesnovaty <[email protected]>; NBU-Contact-Thomas
Quoted 9 lines
Quoted 9 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Monjalon <[email protected]>; Ferruh Yigit <[email protected]>; Ray Kinsella <[email protected]>; Neil Horman <[email protected]>; Ori Kam <[email protected]>;
Andrew
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Rybchenko <[email protected]>
Subject: [dpdk-dev] [PATCH] ethdev: deprecate shared counters using action attributeA new generic shared actions API may be used to create shared
counter.
Quoted 76 lines
Quoted 76 lines
Quoted 76 lines
Quoted 76 lines
Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
There is no point to keep duplicate COUNT action specific capability to create shared counters.
Signed-off-by Andrew Rybchenko <[email protected]>---
In fact, it looks like the next logical step is to remove structrte_flow_action_countcompletely since counter ID makes sense for shared counters only. I think it will just make it easiser to use COUNTaction.
Quoted 59 lines
Quoted 50 lines
Quoted 50 lines
Comments are welcome.
doc/guides/rel_notes/deprecation.rst | 4 ++++ lib/librte_ethdev/rte_flow.h | 6 +++++- 2 files changed, 9 insertions(+), 1 deletion(-)doc/guides/rel_notes/deprecation.rst +0
-0@@ -138,6 +138,10 @@ Deprecation Notices will be limited to maximum 256 queues. Also compile time flag ``RTE_ETHDEV_QUEUE_STAT_CNTRS``will be removed.
doc/guides/rel_notes/deprecation.rst +6
-0+* ethdev: Attribute ``shared`` of the ``struct +rte_flow_action_count`` + is deprecated and will be removed in DPDK 21.11. Shared +counters should + be managed using shared actions API +(``rte_flow_shared_action_create``etc).
+
* cryptodev: support for using IV with all sizes is added,
J0 still can
be used but only when IV length in following structs
``rte_crypto_auth_xform``,
``rte_crypto_aead_xform`` is set to zero. When IV length
is greater or equal diff --gita/lib/librte_ethdev/rte_flow.hb/lib/librte_ethdev/rte_flow.hindexa8eac4deb8..2bb93d237a100644lib/librte_ethdev/rte_flow.h +0
-0@@ -2287,6 +2287,9 @@ struct rte_flow_query_age { * Counters can be retrieved and reset through``rte_flow_query()``, see
* ``struct rte_flow_query_count``.
*
+ * @deprecated Shared attribute is deprecated, use generic
+ *RTE_FLOW_ACTION_TYPE_SHAREDaction.
+ *
* The shared flag indicates whether the counter is unique
to the flow rule the
* action is specified with, or whether it is a shared counter. *lib/librte_ethdev/rte_flow.h +0
-0@@ -2299,7 +2302,8 @@ struct rte_flow_query_age {* to all ports within that switch domain. */ struct rte_flow_action_count {Quoted 8 lines
lib/librte_ethdev/rte_flow.h struct rte_flow_query_age { · line 2309
Quoted 6 lines
lib/librte_ethdev/rte_flow.h +2
-1- uint32_t shared:1; /**< Share counter ID with other flow rules.*/ + /** @deprecated Share counter ID with other flow rules. */ + uint32_t shared:1; uint32_t reserved:31; /**< Reserved, must be zero. */ uint32_t id; /**< Counter ID. */Do you think id could be removed as well? neither non-shared flow counter query, nor shared action query.
Quoted 2 lines
I'm not 100% sure, but yes, as I write above just after my Signed-off-by.
cc'ed Declan + maintainers of PMDs for the 'id' field, but as far as I can see it is used out of the 'shared' context, so I am for going on with existing patch for now.
Quoted 8 lines
Quoted 8 lines
Quoted 4 lines
Quoted 1 line
Reviewed-by Ferruh Yigit <[email protected]>It depends whether we are going to support multiple counters for the same
flow.
Why? Query refers to a counter using action pointer. There is always one counter in one action. If you need more counters, just use more
actions.
Quoted 1 line
Quoted 1 line
Quoted 9 lines
Quoted 1 line
Honestly, I wonder if someone wants to use multiple counters in the same
flow.
Quoted 3 lines
That might happen if we add some unique attributes to the counter action (say, count some complex events/traffic params).
It might make sense for shared counters, but it they are done using shared actions, we don't need ID as well.
Flow 5 tuple flows, besides the per flow counter, some customer wants shared counter per stream type, per VM and per customer(owns group of VMs). Shared counter action should work.
Quoted 4 lines
Quoted 4 lines
Action pointer in the
rte_flow_query()is just a pointer to some counter action describing the counter. If we drop id field (and only action type COUNTER remains in action description) - there would be no way to distinguish two (regular, not shared) counters in the flow. Which
Quoted 9 lines
one should be returned on query?
Quoted 1 line
I thought that 'action' must be exactly the same pointer to actions array element specified on flow creation. It looks like I'm wrong.
If so, yes, id is still required for non-shared many COUNT actions in the same flow. I doubt that we need it as well.
Thanks for clarification.
By using shared counter action, only one per flow counter allowed, no need to support multiple per flow counters IMHO.
In current design, the user specified counter ID field of shared counter implies additional mapping with PMD internal counter - another reason to deprecate counter ID.
Quoted 11 lines
Quoted 11 lines
Quoted 10 lines
Quoted 3 lines
If there is the only counter per flow we could get rid of the "id" field either. If it is still needed, PMDs should generate counter id internally
and id should not be exposed outside.
Quoted 6 lines
With best regards, Slava
PS. What about meters? The next good candidate to shared actions.
Quoted 186 lines
-----Original Message-----
From: Andrew Rybchenko <[email protected]>
Sent: Tuesday, November 3, 2020 1:56 AM
To: Slava Ovsiienko <[email protected]>; Ferruh Yigit <[email protected]>; Xueming(Steven) Li <[email protected]>; Andrew Rybchenko <[email protected]>; [email protected]; [email protected]
Cc: Andrey Vesnovaty <[email protected]>; NBU-Contact-Thomas Monjalon <[email protected]>; Ray Kinsella <[email protected]>; Neil Horman <[email protected]>; Ori Kam <[email protected]>; Wei Hu (Xavier) <[email protected]>; Min Hu (Connor) <[email protected]>; Yisen Zhuang <[email protected]>; Lijun Ou <[email protected]>; Matan Azrad <[email protected]>; Shahaf Shuler <[email protected]>; Jasvinder Singh <[email protected]>; Cristian Dumitrescu <[email protected]>; Ajit Khaparde <[email protected]>; Somnath Kotur <[email protected]>; Qiming Yang <[email protected]>; Qi Zhang <[email protected]>
Subject: Re: [dpdk-dev] [PATCH] ethdev: deprecate shared counters using action attributeQuoted 10 lines · Slava Ovsiienko
Quoted 10 lines
-----Original Message-----
From: Andrew Rybchenko <[email protected]>
Sent: Monday, November 2, 2020 18:40
To: Slava Ovsiienko <[email protected]>; Ferruh Yigit <[email protected]>; Xueming(Steven) Li <[email protected]>; Andrew Rybchenko <[email protected]>; [email protected]; [email protected]
Cc: Andrey Vesnovaty <[email protected]>; NBU-Contact-Thomas Monjalon <[email protected]>; Ray Kinsella <[email protected]>; Neil Horman <[email protected]>; Ori Kam <[email protected]>; WeiHu
Quoted 2 lines
Quoted 2 lines
(Xavier) <[email protected]>; Min Hu (Connor) <[email protected]>; Yisen Zhuang <[email protected]>;
Lijun
Quoted 6 lines
Quoted 6 lines
Ou <[email protected]>; Matan Azrad <[email protected]>; Shahaf Shuler <[email protected]>; Jasvinder Singh <[email protected]>; Cristian Dumitrescu <[email protected]>; Ajit Khaparde <[email protected]>; Somnath Kotur <[email protected]>; Qiming Yang
<[email protected]>; Qi
Quoted 4 lines
Quoted 4 lines
Zhang <[email protected]>
Subject: Re: [dpdk-dev] [PATCH] ethdev: deprecate shared counters using action attributeQuoted 8 lines
Quoted 8 lines · Slava Ovsiienko
Quoted 4 lines
Quoted 4 lines
-----Original Message-----
From: Ferruh Yigit <[email protected]>
Sent: Monday, November 2, 2020 18:01
To: Andrew Rybchenko <[email protected]>;Xueming(Steven)
Quoted 2 lines
Quoted 2 lines
Li <[email protected]>; Andrew Rybchenko
<[email protected]>; [email protected];Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Cc: Andrey Vesnovaty <[email protected]>; NBU-Contact-Thomas Monjalon <[email protected]>; Ray Kinsella <[email protected]>;
Neil
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Horman <[email protected]>; Ori Kam <[email protected]>;
Wei Hu
Quoted 4 lines
Quoted 4 lines
Quoted 2 lines
Quoted 2 lines
(Xavier) <[email protected]>; Min Hu (Connor) <[email protected]>; Yisen Zhuang <[email protected]>;
Lijun
Quoted 1 line
Quoted 1 line
Ou <[email protected]>; Matan Azrad <[email protected]>;
Shahaf
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Shuler <[email protected]>; Slava Ovsiienko
<[email protected]>; Jasvinder Singh
<[email protected]>; Cristian Dumitrescu
<[email protected]>; Ajit Khaparde
<[email protected]>; Somnath Kotur
<[email protected]>; Qiming YangQuoted 11 lines
Quoted 11 lines
Qi
Quoted 10 lines
Quoted 10 lines
Zhang <[email protected]>
Subject: Re: [dpdk-dev] [PATCH] ethdev: deprecate shared counters using action attributeQuoted 5 lines · Andrew Rybchenko
Quoted 4 lines · Xueming(Steven) Li
Hi Andrew,
Quoted 2 lines
-----Original Message-----
From: dev <[email protected]> On Behalf Of AndrewRybchenko
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Sent: Thursday, October 29, 2020 4:53 PM
To: [email protected]
Cc: Andrey Vesnovaty <[email protected]>; NBU-Contact-Thomas
Quoted 9 lines
Quoted 9 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Monjalon <[email protected]>; Ferruh Yigit <[email protected]>; Ray Kinsella <[email protected]>; Neil Horman <[email protected]>; Ori Kam <[email protected]>;
Andrew
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Rybchenko <[email protected]>
Subject: [dpdk-dev] [PATCH] ethdev: deprecate shared counters using action attributeA new generic shared actions API may be used to create shared
counter.
Quoted 76 lines
Quoted 76 lines
Quoted 76 lines
Quoted 76 lines
Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
There is no point to keep duplicate COUNT action specific capability to create shared counters.
Signed-off-by Andrew Rybchenko <[email protected]>---
In fact, it looks like the next logical step is to remove structrte_flow_action_countcompletely since counter ID makes sense for shared counters only. I think it will just make it easiser to use COUNTaction.
Quoted 59 lines
Quoted 50 lines
Quoted 50 lines
Comments are welcome.
doc/guides/rel_notes/deprecation.rst | 4 ++++ lib/librte_ethdev/rte_flow.h | 6 +++++- 2 files changed, 9 insertions(+), 1 deletion(-)doc/guides/rel_notes/deprecation.rst +0
-0@@ -138,6 +138,10 @@ Deprecation Notices will be limited to maximum 256 queues. Also compile time flag ``RTE_ETHDEV_QUEUE_STAT_CNTRS``will be removed.
doc/guides/rel_notes/deprecation.rst +6
-0+* ethdev: Attribute ``shared`` of the ``struct +rte_flow_action_count`` + is deprecated and will be removed in DPDK 21.11. Shared +counters should + be managed using shared actions API +(``rte_flow_shared_action_create``etc).
+
* cryptodev: support for using IV with all sizes is added,
J0 still can
be used but only when IV length in following structs
``rte_crypto_auth_xform``,
``rte_crypto_aead_xform`` is set to zero. When IV length
is greater or equal diff --gita/lib/librte_ethdev/rte_flow.hb/lib/librte_ethdev/rte_flow.hindexa8eac4deb8..2bb93d237a100644lib/librte_ethdev/rte_flow.h +0
-0@@ -2287,6 +2287,9 @@ struct rte_flow_query_age { * Counters can be retrieved and reset through``rte_flow_query()``, see
* ``struct rte_flow_query_count``.
*
+ * @deprecated Shared attribute is deprecated, use generic
+ *RTE_FLOW_ACTION_TYPE_SHAREDaction.
+ *
* The shared flag indicates whether the counter is unique
to the flow rule the
* action is specified with, or whether it is a shared counter. *lib/librte_ethdev/rte_flow.h +0
-0@@ -2299,7 +2302,8 @@ struct rte_flow_query_age {* to all ports within that switch domain. */ struct rte_flow_action_count {Quoted 8 lines
lib/librte_ethdev/rte_flow.h struct rte_flow_query_age { · line 2309
Quoted 6 lines
lib/librte_ethdev/rte_flow.h +2
-1- uint32_t shared:1; /**< Share counter ID with other flow rules.*/ + /** @deprecated Share counter ID with other flow rules. */ + uint32_t shared:1; uint32_t reserved:31; /**< Reserved, must be zero. */ uint32_t id; /**< Counter ID. */Do you think id could be removed as well? neither non-shared flow counter query, nor shared action query.
Quoted 2 lines
I'm not 100% sure, but yes, as I write above just after my Signed-off-by.
cc'ed Declan + maintainers of PMDs for the 'id' field, but as far as I can see it is used out of the 'shared' context, so I am for going on with existing patch for now.
Quoted 8 lines
Quoted 8 lines
Quoted 4 lines
Quoted 1 line
Reviewed-by Ferruh Yigit <[email protected]>It depends whether we are going to support multiple counters for the same
flow.
Why? Query refers to a counter using action pointer. There is always one counter in one action. If you need more counters, just use more
actions.
Quoted 1 line
Quoted 1 line
Quoted 9 lines
Quoted 1 line
Honestly, I wonder if someone wants to use multiple counters in the same
flow.
Quoted 3 lines
That might happen if we add some unique attributes to the counter action (say, count some complex events/traffic params).
It might make sense for shared counters, but it they are done using shared actions, we don't need ID as well.
Flow 5 tuple flows, besides the per flow counter, some customer wants shared counter per stream type, per VM and per customer(owns group of VMs). Shared counter action should work.
Quoted 4 lines
Quoted 4 lines
Action pointer in the
rte_flow_query()is just a pointer to some counter action describing the counter. If we drop id field (and only action type COUNTER remains in action description) - there would be no way to distinguish two (regular, not shared) counters in the flow. Which
Quoted 9 lines
one should be returned on query?
Quoted 1 line
I thought that 'action' must be exactly the same pointer to actions array element specified on flow creation. It looks like I'm wrong.
If so, yes, id is still required for non-shared many COUNT actions in the same flow. I doubt that we need it as well.
Thanks for clarification.
By using shared counter action, only one per flow counter allowed, no need to support multiple per flow counters IMHO.
In current design, the user specified counter ID field of shared counter implies additional mapping with PMD internal counter - another reason to deprecate counter ID.
Quoted 11 lines
Quoted 11 lines
Quoted 10 lines
Quoted 3 lines
If there is the only counter per flow we could get rid of the "id" field either. If it is still needed, PMDs should generate counter id internally
and id should not be exposed outside.
Quoted 6 lines
With best regards, Slava
PS. What about meters? The next good candidate to shared actions.
Ajit Khaparde
Acked-byQuoted 79 lines · Ferruh Yigit
Quoted 77 lines · Andrew Rybchenko
Quoted 75 lines · Xueming(Steven) Li
Hi Andrew,
Quoted 63 lines
-----Original Message-----
From: dev <[email protected]> On Behalf Of Andrew Rybchenko
Sent: Thursday, October 29, 2020 4:53 PM
To: [email protected]
Cc: Andrey Vesnovaty <[email protected]>; NBU-Contact-Thomas Monjalon <[email protected]>; Ferruh Yigit <[email protected]>; Ray Kinsella <[email protected]>; Neil Horman <[email protected]>; Ori Kam <[email protected]>; Andrew Rybchenko <[email protected]>
Subject: [dpdk-dev] [PATCH] ethdev: deprecate shared counters using action attributeA new generic shared actions API may be used to create shared counter. There is no point to keep duplicate COUNT action specific capability to create shared counters.
Signed-off-by Andrew Rybchenko <[email protected]>---
In fact, it looks like the next logical step is to remove structrte_flow_action_countcompletely since counter ID makes sense for shared counters only. I think it will just make it easiser to use COUNT action. Comments are welcome.doc/guides/rel_notes/deprecation.rst | 4 ++++ lib/librte_ethdev/rte_flow.h | 6 +++++- 2 files changed, 9 insertions(+), 1 deletion(-)doc/guides/rel_notes/deprecation.rst +0
-0@@ -138,6 +138,10 @@ Deprecation Notices will be limited to maximum 256 queues. Also compile time flag ``RTE_ETHDEV_QUEUE_STAT_CNTRS`` will beremoved.
doc/guides/rel_notes/deprecation.rst +4
-0+* ethdev: Attribute ``shared`` of the ``struct rte_flow_action_count`` + is deprecated and will be removed in DPDK 21.11. Shared counters +should + be managed using shared actions API (``rte_flow_shared_action_create``etc).
+
* cryptodev: support for using IV with all sizes is added, J0 still can be used but only when IV length in following structs
``rte_crypto_auth_xform``,
``rte_crypto_aead_xform`` is set to zero. When IV length is greater or equallib/librte_ethdev/rte_flow.h index renamed from lib/librte_ethdev/rte_flow.h +0
-0
a8eac4deb8..2bb93d237a100644lib/librte_ethdev/rte_flow.h +3
-0@@ -2287,6 +2287,9 @@ struct rte_flow_query_age {* Counters can be retrieved and reset through ``rte_flow_query()``, see * ``struct rte_flow_query_count``. * +* @deprecated Shared attribute is deprecated, use generic +* RTE_FLOW_ACTION_TYPE_SHARED action. +* * The shared flag indicates whether the counter is unique to the flow rule the
* action is specified with, or whether it is a shared counter. *lib/librte_ethdev/rte_flow.h struct rte_flow_query_age { · line 2308
Quoted 8 lines
lib/librte_ethdev/rte_flow.h +2
-1@@ -2299,7 +2302,8 @@ struct rte_flow_query_age {* to all ports within that switch domain. */ struct rte_flow_action_count { -uint32_t shared:1 ;/**< Share counter ID with other flow rules. */ +/** @deprecated Share counter ID with other flow rules. */ +uint32_t shared:1 ;uint32_t reserved:31 ;/**< Reserved, must be zero. */ uint32_t id;/**< Counter ID. */ Do you think id could be removed as well? neither non-shared flow counter query, nor shared action query.
Quoted 8 lines
Quoted 2 lines
I'm not 100% sure, but yes, as I write above just after my Signed-off-by.
cc'ed Declan + maintainers of PMDs for the 'id' field, but as far as I can see it is used out of the 'shared' context, so I am for going on with existing patch for now.
Reviewed-by Ferruh Yigit <[email protected]>
Hi All
Quoted 99 lines
-----Original Message-----
From: Ajit Khaparde <[email protected]>
Sent: Tuesday, November 24, 2020 8:10 PM
Subject: Re: [dpdk-dev] [PATCH] ethdev: deprecate shared counters using action attributeQuoted 11 lines · Ferruh Yigit
Quoted 9 lines · Andrew Rybchenko
Quoted 8 lines · Xueming(Steven) Li
Hi Andrew,
Quoted 6 lines
-----Original Message-----
From: dev <[email protected]> On Behalf Of Andrew Rybchenko
Sent: Thursday, October 29, 2020 4:53 PM
To: [email protected]
Cc: Andrey Vesnovaty <[email protected]>; NBU-Contact-Thomas Monjalon <[email protected]>; Ferruh YigitQuoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Ray Kinsella <[email protected]>; Neil Horman
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Ori Kam <[email protected]>; Andrew Rybchenko <[email protected]>
Subject: [dpdk-dev] [PATCH] ethdev: deprecate shared counters usingaction
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
attribute
A new generic shared actions API may be used to create shared counter. There is no point to keep duplicate COUNT action specific capability to
create
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
shared counters.
Signed-off-by Andrew Rybchenko <[email protected]>---
In fact, it looks like the next logical step is to remove structrte_flow_action_countcompletely since counter ID makes sense forshared
Quoted 17 lines
Quoted 17 lines
Quoted 17 lines
Quoted 17 lines
counters only. I think it will just make it easiser to use COUNT action. Comments are welcome.
doc/guides/rel_notes/deprecation.rst | 4 ++++ lib/librte_ethdev/rte_flow.h | 6 +++++- 2 files changed, 9 insertions(+), 1 deletion(-)doc/guides/rel_notes/deprecation.rst +0
-0@@ -138,6 +138,10 @@ Deprecation Notices will be limited to maximum 256 queues. Also compile time flag ``RTE_ETHDEV_QUEUE_STAT_CNTRS`` will beremoved.
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
doc/guides/rel_notes/deprecation.rst
Quoted 4 lines
doc/guides/rel_notes/deprecation.rst +4
-0+* ethdev: Attribute ``shared`` of the ``struct rte_flow_action_count`` + is deprecated and will be removed in DPDK 21.11. Shared counters +should + be managed using shared actions API(``rte_flow_shared_action_create``
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
etc).
+
* cryptodev: support for using IV with all sizes is added, J0 still can be used but only when IV length in following structs
``rte_crypto_auth_xform``,
``rte_crypto_aead_xform`` is set to zero. When IV length is greater orequal
Quoted 1 line
Quoted 1 line
Quoted 1 line
lib/librte_ethdev/rte_flow.h
Quoted 1 line
lib/librte_ethdev/rte_flow.h +0
-0index
Quoted 11 lines
Quoted 11 lines
Quoted 11 lines
lib/librte_ethdev/rte_flow.h struct rte_flow_query_age { · line 2293
Quoted 11 lines
a8eac4deb8..2bb93d237a100644lib/librte_ethdev/rte_flow.h +3
-0@@ -2287,6 +2287,9 @@ struct rte_flow_query_age {* Counters can be retrieved and reset through ``rte_flow_query()``, see * ``struct rte_flow_query_count``. * +* @deprecated Shared attribute is deprecated, use generic +* RTE_FLOW_ACTION_TYPE_SHARED action. +* * The shared flag indicates whether the counter is unique to the flow rule
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
the
* action is specified with, or whether it is a shared counter. *lib/librte_ethdev/rte_flow.h +0
-0@@ -2299,7 +2302,8 @@ struct rte_flow_query_age {* to all ports within that switch domain. Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
lib/librte_ethdev/rte_flow.h struct rte_flow_query_age { · line 2308
Quoted 7 lines
lib/librte_ethdev/rte_flow.h +2
-1*/ struct rte_flow_action_count { -uint32_t shared:1 ;/**< Share counter ID with other flow rules. */ +/** @deprecated Share counter ID with other flow rules. */ +uint32_t shared:1 ;uint32_t reserved:31 ;/**< Reserved, must be zero. */ uint32_t id;/**< Counter ID. */ Do you think id could be removed as well? neither non-shared flow
counter query,
Quoted 5 lines
Quoted 4 lines
Quoted 1 line
nor shared action query.
I'm not 100% sure, but yes, as I write above just after my Signed-off-by.
Quoted 7 lines
Quoted 5 lines
cc'ed Declan + maintainers of PMDs for the 'id' field, but as far as I can see it is used out of the 'shared' context, so I am for going on with existing patch for now.
Reviewed-by Ferruh Yigit <[email protected]>Acked-by Ajit Khaparde <[email protected]>
One small point, I know it was mention in some thread, can we also deprecate the id? Maybe the entire struct? since there is not need for configuration any more.
Quoted 105 lines · Ori Kam
Hi All
Quoted 103 lines
-----Original Message-----
From: Ajit Khaparde <[email protected]>
Sent: Tuesday, November 24, 2020 8:10 PM
Subject: Re: [dpdk-dev] [PATCH] ethdev: deprecate shared counters using action attributeQuoted 11 lines · Ferruh Yigit
Quoted 9 lines · Andrew Rybchenko
Quoted 8 lines · Xueming(Steven) Li
Hi Andrew,
Quoted 6 lines
-----Original Message-----
From: dev <[email protected]> On Behalf Of Andrew Rybchenko
Sent: Thursday, October 29, 2020 4:53 PM
To: [email protected]
Cc: Andrey Vesnovaty <[email protected]>; NBU-Contact-Thomas Monjalon <[email protected]>; Ferruh YigitQuoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Ray Kinsella <[email protected]>; Neil Horman
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Ori Kam <[email protected]>; Andrew Rybchenko <[email protected]>
Subject: [dpdk-dev] [PATCH] ethdev: deprecate shared counters usingaction
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
attribute
A new generic shared actions API may be used to create shared counter. There is no point to keep duplicate COUNT action specific capability to
create
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
shared counters.
Signed-off-by Andrew Rybchenko <[email protected]>---
In fact, it looks like the next logical step is to remove structrte_flow_action_countcompletely since counter ID makes sense forshared
Quoted 17 lines
Quoted 17 lines
Quoted 17 lines
Quoted 17 lines
counters only. I think it will just make it easiser to use COUNT action. Comments are welcome.
doc/guides/rel_notes/deprecation.rst | 4 ++++ lib/librte_ethdev/rte_flow.h | 6 +++++- 2 files changed, 9 insertions(+), 1 deletion(-)doc/guides/rel_notes/deprecation.rst +0
-0@@ -138,6 +138,10 @@ Deprecation Notices will be limited to maximum 256 queues. Also compile time flag ``RTE_ETHDEV_QUEUE_STAT_CNTRS`` will beremoved.
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
doc/guides/rel_notes/deprecation.rst
Quoted 4 lines
doc/guides/rel_notes/deprecation.rst +4
-0+* ethdev: Attribute ``shared`` of the ``struct rte_flow_action_count`` + is deprecated and will be removed in DPDK 21.11. Shared counters +should + be managed using shared actions API(``rte_flow_shared_action_create``
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
etc).
+
* cryptodev: support for using IV with all sizes is added, J0 still can be used but only when IV length in following structs
``rte_crypto_auth_xform``,
``rte_crypto_aead_xform`` is set to zero. When IV length is greater orequal
Quoted 1 line
Quoted 1 line
Quoted 1 line
lib/librte_ethdev/rte_flow.h
Quoted 1 line
lib/librte_ethdev/rte_flow.h +0
-0index
Quoted 11 lines
Quoted 11 lines
Quoted 11 lines
lib/librte_ethdev/rte_flow.h struct rte_flow_query_age { · line 2293
Quoted 11 lines
a8eac4deb8..2bb93d237a100644lib/librte_ethdev/rte_flow.h +3
-0@@ -2287,6 +2287,9 @@ struct rte_flow_query_age {* Counters can be retrieved and reset through ``rte_flow_query()``, see * ``struct rte_flow_query_count``. * +* @deprecated Shared attribute is deprecated, use generic +* RTE_FLOW_ACTION_TYPE_SHARED action. +* * The shared flag indicates whether the counter is unique to the flow rule
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
the
* action is specified with, or whether it is a shared counter. *lib/librte_ethdev/rte_flow.h +0
-0@@ -2299,7 +2302,8 @@ struct rte_flow_query_age {* to all ports within that switch domain. Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
lib/librte_ethdev/rte_flow.h struct rte_flow_query_age { · line 2308
Quoted 7 lines
lib/librte_ethdev/rte_flow.h +2
-1*/ struct rte_flow_action_count { -uint32_t shared:1 ;/**< Share counter ID with other flow rules. */ +/** @deprecated Share counter ID with other flow rules. */ +uint32_t shared:1 ;uint32_t reserved:31 ;/**< Reserved, must be zero. */ uint32_t id;/**< Counter ID. */ Do you think id could be removed as well? neither non-shared flow
counter query,
Quoted 9 lines
Quoted 4 lines
Quoted 1 line
nor shared action query.
I'm not 100% sure, but yes, as I write above just after my Signed-off-by.
cc'ed Declan + maintainers of PMDs for the 'id' field, but as far as I can see it is used out of the 'shared' context, so I am for going on with existing patch for now.
Quoted 7 lines
Quoted 3 lines
Quoted 1 line
Reviewed-by Ferruh Yigit <[email protected]>Acked-by Ajit Khaparde <[email protected]>One small point, I know it was mention in some thread, can we also deprecate the id? Maybe the entire struct? since there is not need for configuration any more.
There is alternative usage for 'shared' fields, that is the reason of the deprecation. But there are some usage of the 'id' without alternative, we can discuss if that usage is right or wrong later, but for now I think better to start with just this patch.
And if 'id' also decided to be deprecated later, yes we can remove entire struct in that case.
Ori Kam
Acked-byQuoted 12 lines
-----Original Message-----
From: Ferruh Yigit <[email protected]>
Sent: Thursday, November 26, 2020 2:23 PM
Subject: Re: [dpdk-dev] [PATCH] ethdev: deprecate shared counters using action attributeQuoted 1 line
One small point, I know it was mention in some thread, can we also
deprecate the id?
Quoted 2 lines
Maybe the entire struct? since there is not need for configuration any more.
Quoted 7 lines
There is alternative usage for 'shared' fields, that is the reason of the deprecation. But there are some usage of the 'id' without alternative, we can discuss if that usage is right or wrong later, but for now I think better to start with just this patch.
And if 'id' also decided to be deprecated later, yes we can remove entire struct in that case.
Thanks,
Ori
PATCH v2 1/1 ethdev: deprecate shared counters using action attribute
In reply to Andrew RybchenkoA new generic shared actions API may be used to create shared counter. There is no point to keep duplicate COUNT action specific capability to create shared counters.
---
Cc: Ori Kam <[email protected]>
Cc: Xueming(Steven) Li <[email protected]>
Cc: Slava Ovsiienko <[email protected]>
Right now it is suggested do not touch ID and keep it as is. Anyway we have plenty of time before 21.11 when it can be removed. However it is important to highlight the right direction for shared counters now.
doc/guides/prog_guide/rte_flow.rst | 17 ++++++++++------- doc/guides/rel_notes/deprecation.rst | 4 ++++ lib/librte_ethdev/rte_flow.h | 6 +++++- 3 files changed, 19 insertions(+), 8 deletions(-)
doc/guides/prog_guide/rte_flow.rst +10 -7
@@ -1724,17 +1724,20 @@ that counter. For ports within the same switch domain then the counter id namespace extends to all ports within that switch domain. +The shared flag is DEPRECATED and ``SHARED`` ``COUNT`` action should be used +to make shared counters. + .. _table_rte_flow_action_count: .. table:: COUNT - +------------+---------------------+ - | Field | Value | - +============+=====================+ - | ``shared`` | shared counter flag | - +------------+---------------------+ - | ``id`` | counter id | - +------------+---------------------+ + +------------+---------------------------------+ + | Field | Value | + +============+=================================+ + | ``shared`` | DEPRECATED, shared counter flag | + +------------+---------------------------------+ + | ``id`` | counter id | + +------------+---------------------------------+ Query structure to retrieve and reset flow rule counters:
doc/guides/rel_notes/deprecation.rst +4 -0
@@ -122,6 +122,10 @@ Deprecation Notices will be limited to maximum 256 queues. Also compile time flag ``RTE_ETHDEV_QUEUE_STAT_CNTRS`` will be removed. +* ethdev: Attribute ``shared`` of the ``struct rte_flow_action_count`` + is deprecated and will be removed in DPDK 21.11. Shared counters should + be managed using shared actions API (``rte_flow_shared_action_create`` etc). + * cryptodev: support for using IV with all sizes is added, J0 still can be used but only when IV length in following structs ``rte_crypto_auth_xform``, ``rte_crypto_aead_xform`` is set to zero. When IV length is greater or equal
lib/librte_ethdev/rte_flow.h +5 -1
@@ -2287,6 +2287,9 @@ struct rte_flow_query_age {* Counters can be retrieved and reset through ``rte_flow_query()``, see * ``struct rte_flow_query_count``. * +* @deprecated Shared attribute is deprecated, use generic +* RTE_FLOW_ACTION_TYPE_SHARED action. +* * The shared flag indicates whether the counter is unique to the flow rule the * action is specified with, or whether it is a shared counter. *
@@ -2299,7 +2302,8 @@ struct rte_flow_query_age {* to all ports within that switch domain. */ struct rte_flow_action_count { -uint32_t shared:1 ;/**< Share counter ID with other flow rules. */ +/** @deprecated Share counter ID with other flow rules. */ +uint32_t shared:1 ;uint32_t reserved:31 ;/**< Reserved, must be zero. */ uint32_t id;/**< Counter ID. */ };
Signature · 1 line
1.8.3.1
Quoted 11 lines · Andrew Rybchenko
A new generic shared actions API may be used to create shared counter. There is no point to keep duplicate COUNT action specific capability to create shared counters.
Signed-off-by Andrew Rybchenko <[email protected]>Reviewed-by Ferruh Yigit <[email protected]>---
Cc: Ori Kam <[email protected]>
Cc: Xueming(Steven) Li <[email protected]>
Cc: Slava Ovsiienko <[email protected]>
Ping for this deprecation notice.
Quoted 13 lines · Ferruh Yigit
Quoted 11 lines · Andrew Rybchenko
A new generic shared actions API may be used to create shared counter. There is no point to keep duplicate COUNT action specific capability to create shared counters.
Signed-off-by Andrew Rybchenko <[email protected]>Reviewed-by Ferruh Yigit <[email protected]>---
Cc: Ori Kam <[email protected]>
Cc: Xueming(Steven) Li <[email protected]>
Cc: Slava Ovsiienko <[email protected]>
Quoted 2 lines
Ping for this deprecation notice.
For this one too added a few more people, removal target is 21.11, but it also marks the fields as deprecated, so it should be merged in this release.
Can you please review this deprecation notice?
Quoted 13 lines · Ferruh Yigit
Quoted 11 lines · Andrew Rybchenko
A new generic shared actions API may be used to create shared counter. There is no point to keep duplicate COUNT action specific capability to create shared counters.
Signed-off-by Andrew Rybchenko <[email protected]>Reviewed-by Ferruh Yigit <[email protected]>---
Cc: Ori Kam <[email protected]>
Cc: Xueming(Steven) Li <[email protected]>
Cc: Slava Ovsiienko <[email protected]>
Quoted 2 lines
Ping for this deprecation notice.
I believe this patch v2 is largely the same a v1 just with some added docs, right? In which case the acks on v1 from Ajit and Ori should be kept, no?
Bruce Richardson
Acked-byQuoted 13 lines · Ferruh Yigit
Quoted 11 lines · Andrew Rybchenko
A new generic shared actions API may be used to create shared counter. There is no point to keep duplicate COUNT action specific capability to create shared counters.
Signed-off-by Andrew Rybchenko <[email protected]>Reviewed-by Ferruh Yigit <[email protected]>---
Cc: Ori Kam <[email protected]>
Cc: Xueming(Steven) Li <[email protected]>
Cc: Slava Ovsiienko <[email protected]>
Quoted 2 lines
Ping for this deprecation notice.
Reading through the patch history, seems the consensus is that this is reasonable.
Ajit Khaparde
Acked-byQuoted 14 lines · Bruce Richardson
Quoted 13 lines · Ferruh Yigit
Quoted 11 lines · Andrew Rybchenko
A new generic shared actions API may be used to create shared counter. There is no point to keep duplicate COUNT action specific capability to create shared counters.
Signed-off-by Andrew Rybchenko <[email protected]>Reviewed-by Ferruh Yigit <[email protected]>---
Cc: Ori Kam <[email protected]>
Cc: Xueming(Steven) Li <[email protected]>
Cc: Slava Ovsiienko <[email protected]>
Quoted 7 lines
Quoted 2 lines
Ping for this deprecation notice.
Reading through the patch history, seems the consensus is that this is reasonable.
Acked-by Bruce Richardson <[email protected]>
Thomas Monjalon
AppliedQuoted 12 lines
Quoted 12 lines
Quoted 12 lines
Quoted 11 lines
A new generic shared actions API may be used to create shared counter. There is no point to keep duplicate COUNT action specific capability to create shared counters.
Signed-off-by Andrew Rybchenko <[email protected]>Reviewed-by Ferruh Yigit <[email protected]>---
Cc: Ori Kam <[email protected]>
Cc: Xueming(Steven) Li <[email protected]>
Cc: Slava Ovsiienko <[email protected]>
Quoted 8 lines
Quoted 7 lines
Quoted 2 lines
Ping for this deprecation notice.
Reading through the patch history, seems the consensus is that this is reasonable.
Acked-by Bruce Richardson <[email protected]>Acked-by Ajit Khaparde <[email protected]>
Applied, thanks