[v2,1/3] lib: skip congestion management configuration
Checks
Commit Message
Skip the congestion management configuration applied using
rte_eth_cman_config_set() API on the given ethdev Rx queue.
Signed-off-by: Rakesh Kudurumalla <rkudurumalla@marvell.com>
---
V2: Rename action name to skip congestion management
lib/ethdev/rte_flow.h | 9 +++++++++
1 file changed, 9 insertions(+)
Comments
On Wed, Jan 25, 2023 at 1:03 PM Rakesh Kudurumalla
<rkudurumalla@marvell.com> wrote:
>
> Skip the congestion management configuration applied using
> rte_eth_cman_config_set() API on the given ethdev Rx queue.
1) Add more comments. Also starts with ethdev: example,
ethdev: introduce flow action to skip congestion management configuration
Using rte_eth_cman_config_set() API the application can configure
ethdev Rx queue's congestion mechanism.
Introducing RTE_FLOW_ACTION_TYPE_SKIP_CMAN flow action to skip the
congestion configuration applied to the given ethdev Rx queue.
This feature helps to skip the congestion management processing based
on per flow or the packet color identified by the rte_flow meter object.
For example, If one Rx queue configured as RED congestion and
application wants tobypass the RED congestion processing for all GREEN color
packet can be expressed though RTE_FLOW_ACTION_TYPE_SKIP_CMAN flow action
2) Update doc/guides/prog_guide/rte_flow.rst for new action and 3/3
patch for doc/guides/nics/features/ pmd specific doc
@@ -2203,6 +2203,15 @@ enum rte_flow_action_type {
*/
RTE_FLOW_ACTION_TYPE_DROP,
+ /**
+ * Skip congestion management configuration
+ *
+ * Skip the congestion management configuration applied using
+ * rte_eth_cman_config_set() API on the given ethdev Rx queue.
+ *
+ */
+ RTE_FLOW_ACTION_TYPE_SKIP_CMAN,
+
/**
* Enables counters for this flow rule.
*