35 #ifndef __INCLUDE_RTE_MTR_H__
36 #define __INCLUDE_RTE_MTR_H__
77 #include <rte_compat.h>
409 RTE_MTR_ERROR_TYPE_METER_PROFILE_ID,
410 RTE_MTR_ERROR_TYPE_METER_PROFILE,
411 RTE_MTR_ERROR_TYPE_MTR_ID,
412 RTE_MTR_ERROR_TYPE_MTR_PARAMS,
413 RTE_MTR_ERROR_TYPE_POLICER_ACTION_GREEN,
414 RTE_MTR_ERROR_TYPE_POLICER_ACTION_YELLOW,
415 RTE_MTR_ERROR_TYPE_POLICER_ACTION_RED,
416 RTE_MTR_ERROR_TYPE_STATS_MASK,
417 RTE_MTR_ERROR_TYPE_STATS,
418 RTE_MTR_ERROR_TYPE_SHARED,
450 int __rte_experimental
473 int __rte_experimental
475 uint32_t meter_profile_id,
494 int __rte_experimental
496 uint32_t meter_profile_id,
522 int __rte_experimental
545 int __rte_experimental
572 int __rte_experimental
593 int __rte_experimental
612 int __rte_experimental
615 uint32_t meter_profile_id,
636 int __rte_experimental
662 int __rte_experimental
665 uint32_t action_mask,
687 int __rte_experimental
718 int __rte_experimental
722 uint64_t *stats_mask,
int __rte_experimental rte_mtr_destroy(uint16_t port_id, uint32_t mtr_id, struct rte_mtr_error *error)
int color_aware_srtcm_rfc2697_supported
uint64_t n_pkts[RTE_MTR_COLORS]
uint32_t meter_srtcm_rfc2697_n_max
int __rte_experimental rte_mtr_capabilities_get(uint16_t port_id, struct rte_mtr_capabilities *cap, struct rte_mtr_error *error)
uint32_t meter_trtcm_rfc2698_n_max
enum rte_mtr_policer_action action[RTE_MTR_COLORS]
int __rte_experimental rte_mtr_meter_enable(uint16_t port_id, uint32_t mtr_id, struct rte_mtr_error *error)
enum rte_mtr_error_type type
int __rte_experimental rte_mtr_create(uint16_t port_id, uint32_t mtr_id, struct rte_mtr_params *params, int shared, struct rte_mtr_error *error)
int __rte_experimental rte_mtr_policer_actions_update(uint16_t port_id, uint32_t mtr_id, uint32_t action_mask, enum rte_mtr_policer_action *actions, struct rte_mtr_error *error)
int policer_action_recolor_supported
int __rte_experimental rte_mtr_meter_dscp_table_update(uint16_t port_id, uint32_t mtr_id, enum rte_mtr_color *dscp_table, struct rte_mtr_error *error)
int __rte_experimental rte_mtr_stats_read(uint16_t port_id, uint32_t mtr_id, struct rte_mtr_stats *stats, uint64_t *stats_mask, int clear, struct rte_mtr_error *error)
uint64_t n_bytes[RTE_MTR_COLORS]
struct rte_mtr_meter_profile::@129::@131 srtcm_rfc2697
int color_aware_trtcm_rfc2698_supported
int __rte_experimental rte_mtr_meter_profile_delete(uint16_t port_id, uint32_t meter_profile_id, struct rte_mtr_error *error)
int color_aware_trtcm_rfc4115_supported
int policer_action_drop_supported
enum rte_mtr_algorithm alg
int chaining_use_prev_mtr_color_supported
uint32_t meter_profile_id
int chaining_use_prev_mtr_color_enforced
struct rte_mtr_meter_profile::@129::@132 trtcm_rfc2698
int __rte_experimental rte_mtr_meter_disable(uint16_t port_id, uint32_t mtr_id, struct rte_mtr_error *error)
int __rte_experimental rte_mtr_meter_profile_update(uint16_t port_id, uint32_t mtr_id, uint32_t meter_profile_id, struct rte_mtr_error *error)
struct rte_mtr_meter_profile::@129::@133 trtcm_rfc4115
int __rte_experimental rte_mtr_stats_update(uint16_t port_id, uint32_t mtr_id, uint64_t stats_mask, struct rte_mtr_error *error)
int __rte_experimental rte_mtr_meter_profile_add(uint16_t port_id, uint32_t meter_profile_id, struct rte_mtr_meter_profile *profile, struct rte_mtr_error *error)
uint32_t shared_n_flows_per_mtr_max
enum rte_mtr_color * dscp_table
uint32_t meter_trtcm_rfc4115_n_max
uint32_t chaining_n_mtrs_per_flow_max