[v4,1/3] ethdev: skip congestion management configuration
Checks
Commit Message
Introduce new flow action to skip congestion management configuration
This feature helps to skip the congestion management processing
based on per flow or the packet color identified by
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
Signed-off-by: Rakesh Kudurumalla <rkudurumalla@marvell.com>
---
v4: updated commit message
doc/guides/prog_guide/rte_flow.rst | 22 ++++++++++++++++++++++
lib/ethdev/rte_flow.h | 11 +++++++++++
2 files changed, 33 insertions(+)
Comments
Hi Rakesh,
> -----Original Message-----
> From: Rakesh Kudurumalla <rkudurumalla@marvell.com>
> Sent: Thursday, 9 February 2023 10:36
> Subject: [PATCH v4 1/3] ethdev: skip congestion management configuration
>
> Introduce new flow action to skip congestion management configuration
> This feature helps to skip the congestion management processing
> based on per flow or the packet color identified by
> 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
>
> Signed-off-by: Rakesh Kudurumalla <rkudurumalla@marvell.com>
> ---
Acked-by: Ori Kam <orika@nvidia.com>
Best,
Ori
@@ -1840,6 +1840,28 @@ Drop packets.
| no properties |
+---------------+
+
+Action: ``SKIP_CMAN``
+^^^^^^^^^^^^^^^^^^^
+
+Skip congestion management on received packets
+
+- Using ``rte_eth_cman_config_set()``, application can configure ethdev Rx
+ queue's congestion mechanism.Once applied packets congestion configuration
+ is bypassed on that particular ethdev Rx queue for all packets directed
+ to that receive queue
+
+.. _table_rte_flow_action_skip_cman:
+
+.. table:: SKIP_CMAN
+
+ +---------------+
+ | Field |
+ +===============+
+ | no properties |
+ +---------------+
+
+
Action: ``COUNT``
^^^^^^^^^^^^^^^^^
@@ -2203,6 +2203,17 @@ enum rte_flow_action_type {
*/
RTE_FLOW_ACTION_TYPE_DROP,
+ /**
+ * 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.
+ *
+ */
+ RTE_FLOW_ACTION_TYPE_SKIP_CMAN,
+
/**
* Enables counters for this flow rule.
*