[PATCH 09/27] ethdev: add meter profiles/policies config
Suanming Mou
suanmingm at nvidia.com
Fri Sep 23 16:43:16 CEST 2022
From: Alexander Kozyrev <akozyrev at nvidia.com>
Provide an ability to specify the number of meter profiles/policies
alongside with the number of meters during the Flow engine configuration.
Signed-off-by: Alexander Kozyrev <akozyrev at nvidia.com>
---
lib/ethdev/rte_flow.h | 22 +++++++++++++++++++++-
1 file changed, 21 insertions(+), 1 deletion(-)
diff --git a/lib/ethdev/rte_flow.h b/lib/ethdev/rte_flow.h
index a79f1e7ef0..abb475bdee 100644
--- a/lib/ethdev/rte_flow.h
+++ b/lib/ethdev/rte_flow.h
@@ -4898,10 +4898,20 @@ struct rte_flow_port_info {
*/
uint32_t max_nb_aging_objects;
/**
- * Maximum number traffic meters.
+ * Maximum number of traffic meters.
* @see RTE_FLOW_ACTION_TYPE_METER
*/
uint32_t max_nb_meters;
+ /**
+ * Maximum number of traffic meter profiles.
+ * @see RTE_FLOW_ACTION_TYPE_METER
+ */
+ uint32_t max_nb_meter_profiles;
+ /**
+ * Maximum number of traffic meter policies.
+ * @see RTE_FLOW_ACTION_TYPE_METER
+ */
+ uint32_t max_nb_meter_policies;
};
/**
@@ -4971,6 +4981,16 @@ struct rte_flow_port_attr {
* @see RTE_FLOW_ACTION_TYPE_METER
*/
uint32_t nb_meters;
+ /**
+ * Number of traffic meter profiles to configure.
+ * @see RTE_FLOW_ACTION_TYPE_METER
+ */
+ uint32_t nb_meter_profiles;
+ /**
+ * Number of traffic meter policies to configure.
+ * @see RTE_FLOW_ACTION_TYPE_METER
+ */
+ uint32_t nb_meter_policies;
};
/**
--
2.25.1
More information about the dev
mailing list