[v2,2/3] ethdev: allow meter color modification

Message ID 20220502200439.4100965-3-akozyrev@nvidia.com (mailing list archive)
State Superseded, archived
Delegated to: Andrew Rybchenko
Headers
Series ethdev: datapath-focused meter actions |

Checks

Context Check Description
ci/checkpatch success coding style OK

Commit Message

Alexander Kozyrev May 2, 2022, 8:04 p.m. UTC
  Extend modify_field Flow API with ability to set the metering
color of a packet. This brings a possibility to set an initial
color before proceeding with Meter classification and assign a
color outside of Meter object based on other traffic patterns.

Signed-off-by: Alexander Kozyrev <akozyrev@nvidia.com>
---
 lib/ethdev/rte_flow.h | 1 +
 1 file changed, 1 insertion(+)
  

Patch

diff --git a/lib/ethdev/rte_flow.h b/lib/ethdev/rte_flow.h
index 67f54fba0e..870d1b4a06 100644
--- a/lib/ethdev/rte_flow.h
+++ b/lib/ethdev/rte_flow.h
@@ -3716,6 +3716,7 @@  enum rte_flow_field_id {
 	RTE_FLOW_FIELD_META,		/**< Metadata value. */
 	RTE_FLOW_FIELD_POINTER,		/**< Memory pointer. */
 	RTE_FLOW_FIELD_VALUE,		/**< Immediate value. */
+	RTE_FLOW_FIELD_METER_COLOR, /**< Metering color */
 };
 
 /**