5 #ifndef __INCLUDE_RTE_MTR_DRIVER_H__
6 #define __INCLUDE_RTE_MTR_DRIVER_H__
27 typedef int (*rte_mtr_capabilities_get_t)(
struct rte_eth_dev *dev,
32 typedef int (*rte_mtr_meter_profile_add_t)(
struct rte_eth_dev *dev,
33 uint32_t meter_profile_id,
38 typedef int (*rte_mtr_meter_profile_delete_t)(
struct rte_eth_dev *dev,
39 uint32_t meter_profile_id,
43 typedef int (*rte_mtr_create_t)(
struct rte_eth_dev *dev,
50 typedef int (*rte_mtr_destroy_t)(
struct rte_eth_dev *dev,
55 typedef int (*rte_mtr_meter_enable_t)(
struct rte_eth_dev *dev,
60 typedef int (*rte_mtr_meter_disable_t)(
struct rte_eth_dev *dev,
65 typedef int (*rte_mtr_meter_profile_update_t)(
struct rte_eth_dev *dev,
67 uint32_t meter_profile_id,
71 typedef int (*rte_mtr_meter_dscp_table_update_t)(
struct rte_eth_dev *dev,
77 typedef int (*rte_mtr_policer_actions_update_t)(
struct rte_eth_dev *dev,
84 typedef int (*rte_mtr_stats_update_t)(
struct rte_eth_dev *dev,
90 typedef int (*rte_mtr_stats_read_t)(
struct rte_eth_dev *dev,
100 rte_mtr_capabilities_get_t capabilities_get;
103 rte_mtr_meter_profile_add_t meter_profile_add;
106 rte_mtr_meter_profile_delete_t meter_profile_delete;
109 rte_mtr_create_t create;
112 rte_mtr_destroy_t destroy;
115 rte_mtr_meter_enable_t meter_enable;
118 rte_mtr_meter_disable_t meter_disable;
121 rte_mtr_meter_profile_update_t meter_profile_update;
124 rte_mtr_meter_dscp_table_update_t meter_dscp_table_update;
127 rte_mtr_policer_actions_update_t policer_actions_update;
130 rte_mtr_stats_update_t stats_update;
133 rte_mtr_stats_read_t stats_read;
185 const struct rte_mtr_ops *