36 #ifndef __INCLUDE_RTE_TM_H__
37 #define __INCLUDE_RTE_TM_H__
73 #define RTE_TM_ETH_FRAMING_OVERHEAD 20
85 #define RTE_TM_ETH_FRAMING_OVERHEAD_FCS 24
94 #define RTE_TM_WRED_PROFILE_ID_NONE UINT32_MAX
103 #define RTE_TM_SHAPER_PROFILE_ID_NONE UINT32_MAX
110 #define RTE_TM_NODE_ID_NULL UINT32_MAX
117 #define RTE_TM_NODE_LEVEL_ID_ANY UINT32_MAX
120 #define rte_tm_color rte_color
121 #define RTE_TM_GREEN RTE_COLOR_GREEN
122 #define RTE_TM_YELLOW RTE_COLOR_YELLOW
123 #define RTE_TM_RED RTE_COLOR_RED
124 #define RTE_TM_COLORS RTE_COLORS
1022 RTE_TM_ERROR_TYPE_CAPABILITIES,
1023 RTE_TM_ERROR_TYPE_LEVEL_ID,
1024 RTE_TM_ERROR_TYPE_WRED_PROFILE,
1025 RTE_TM_ERROR_TYPE_WRED_PROFILE_GREEN,
1026 RTE_TM_ERROR_TYPE_WRED_PROFILE_YELLOW,
1027 RTE_TM_ERROR_TYPE_WRED_PROFILE_RED,
1028 RTE_TM_ERROR_TYPE_WRED_PROFILE_ID,
1029 RTE_TM_ERROR_TYPE_SHARED_WRED_CONTEXT_ID,
1030 RTE_TM_ERROR_TYPE_SHAPER_PROFILE,
1031 RTE_TM_ERROR_TYPE_SHAPER_PROFILE_COMMITTED_RATE,
1032 RTE_TM_ERROR_TYPE_SHAPER_PROFILE_COMMITTED_SIZE,
1033 RTE_TM_ERROR_TYPE_SHAPER_PROFILE_PEAK_RATE,
1034 RTE_TM_ERROR_TYPE_SHAPER_PROFILE_PEAK_SIZE,
1035 RTE_TM_ERROR_TYPE_SHAPER_PROFILE_PKT_ADJUST_LEN,
1036 RTE_TM_ERROR_TYPE_SHAPER_PROFILE_ID,
1037 RTE_TM_ERROR_TYPE_SHARED_SHAPER_ID,
1038 RTE_TM_ERROR_TYPE_NODE_PARENT_NODE_ID,
1039 RTE_TM_ERROR_TYPE_NODE_PRIORITY,
1040 RTE_TM_ERROR_TYPE_NODE_WEIGHT,
1041 RTE_TM_ERROR_TYPE_NODE_PARAMS,
1042 RTE_TM_ERROR_TYPE_NODE_PARAMS_SHAPER_PROFILE_ID,
1043 RTE_TM_ERROR_TYPE_NODE_PARAMS_SHARED_SHAPER_ID,
1044 RTE_TM_ERROR_TYPE_NODE_PARAMS_N_SHARED_SHAPERS,
1045 RTE_TM_ERROR_TYPE_NODE_PARAMS_WFQ_WEIGHT_MODE,
1046 RTE_TM_ERROR_TYPE_NODE_PARAMS_N_SP_PRIORITIES,
1047 RTE_TM_ERROR_TYPE_NODE_PARAMS_CMAN,
1048 RTE_TM_ERROR_TYPE_NODE_PARAMS_WRED_PROFILE_ID,
1049 RTE_TM_ERROR_TYPE_NODE_PARAMS_SHARED_WRED_CONTEXT_ID,
1050 RTE_TM_ERROR_TYPE_NODE_PARAMS_N_SHARED_WRED_CONTEXTS,
1051 RTE_TM_ERROR_TYPE_NODE_PARAMS_STATS,
1052 RTE_TM_ERROR_TYPE_NODE_ID,
1091 uint32_t *n_leaf_nodes,
1198 uint32_t wred_profile_id,
1221 uint32_t wred_profile_id,
1252 uint32_t shared_wred_context_id,
1253 uint32_t wred_profile_id,
1276 uint32_t shared_wred_context_id,
1300 uint32_t shaper_profile_id,
1323 uint32_t shaper_profile_id,
1352 uint32_t shared_shaper_id,
1353 uint32_t shaper_profile_id,
1375 uint32_t shared_shaper_id,
1444 uint32_t parent_node_id,
1605 uint32_t parent_node_id,
1634 uint32_t shaper_profile_id,
1661 uint32_t shared_shaper_id,
1688 uint64_t stats_mask,
1716 int *wfq_weight_mode,
1717 uint32_t n_sp_priorities,
1763 uint32_t wred_profile_id,
1788 uint32_t shared_wred_context_id,
1821 uint64_t *stats_mask,