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 <akozy...@nvidia.com>
---
 lib/ethdev/rte_flow.h | 1 +
 1 file changed, 1 insertion(+)

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 */
 };
 
 /**
-- 
2.18.2

Reply via email to