36 #ifndef __INCLUDE_RTE_TM_H__
37 #define __INCLUDE_RTE_TM_H__
72 #define RTE_TM_ETH_FRAMING_OVERHEAD 20
84 #define RTE_TM_ETH_FRAMING_OVERHEAD_FCS 24
93 #define RTE_TM_WRED_PROFILE_ID_NONE UINT32_MAX
102 #define RTE_TM_SHAPER_PROFILE_ID_NONE UINT32_MAX
109 #define RTE_TM_NODE_ID_NULL UINT32_MAX
116 #define RTE_TM_NODE_LEVEL_ID_ANY UINT32_MAX
1024 RTE_TM_ERROR_TYPE_CAPABILITIES,
1025 RTE_TM_ERROR_TYPE_LEVEL_ID,
1026 RTE_TM_ERROR_TYPE_WRED_PROFILE,
1027 RTE_TM_ERROR_TYPE_WRED_PROFILE_GREEN,
1028 RTE_TM_ERROR_TYPE_WRED_PROFILE_YELLOW,
1029 RTE_TM_ERROR_TYPE_WRED_PROFILE_RED,
1030 RTE_TM_ERROR_TYPE_WRED_PROFILE_ID,
1031 RTE_TM_ERROR_TYPE_SHARED_WRED_CONTEXT_ID,
1032 RTE_TM_ERROR_TYPE_SHAPER_PROFILE,
1033 RTE_TM_ERROR_TYPE_SHAPER_PROFILE_COMMITTED_RATE,
1034 RTE_TM_ERROR_TYPE_SHAPER_PROFILE_COMMITTED_SIZE,
1035 RTE_TM_ERROR_TYPE_SHAPER_PROFILE_PEAK_RATE,
1036 RTE_TM_ERROR_TYPE_SHAPER_PROFILE_PEAK_SIZE,
1037 RTE_TM_ERROR_TYPE_SHAPER_PROFILE_PKT_ADJUST_LEN,
1038 RTE_TM_ERROR_TYPE_SHAPER_PROFILE_ID,
1039 RTE_TM_ERROR_TYPE_SHARED_SHAPER_ID,
1040 RTE_TM_ERROR_TYPE_NODE_PARENT_NODE_ID,
1041 RTE_TM_ERROR_TYPE_NODE_PRIORITY,
1042 RTE_TM_ERROR_TYPE_NODE_WEIGHT,
1043 RTE_TM_ERROR_TYPE_NODE_PARAMS,
1044 RTE_TM_ERROR_TYPE_NODE_PARAMS_SHAPER_PROFILE_ID,
1045 RTE_TM_ERROR_TYPE_NODE_PARAMS_SHARED_SHAPER_ID,
1046 RTE_TM_ERROR_TYPE_NODE_PARAMS_N_SHARED_SHAPERS,
1047 RTE_TM_ERROR_TYPE_NODE_PARAMS_WFQ_WEIGHT_MODE,
1048 RTE_TM_ERROR_TYPE_NODE_PARAMS_N_SP_PRIORITIES,
1049 RTE_TM_ERROR_TYPE_NODE_PARAMS_CMAN,
1050 RTE_TM_ERROR_TYPE_NODE_PARAMS_WRED_PROFILE_ID,
1051 RTE_TM_ERROR_TYPE_NODE_PARAMS_SHARED_WRED_CONTEXT_ID,
1052 RTE_TM_ERROR_TYPE_NODE_PARAMS_N_SHARED_WRED_CONTEXTS,
1053 RTE_TM_ERROR_TYPE_NODE_PARAMS_STATS,
1054 RTE_TM_ERROR_TYPE_NODE_ID,
1093 uint32_t *n_leaf_nodes,
1200 uint32_t wred_profile_id,
1223 uint32_t wred_profile_id,
1254 uint32_t shared_wred_context_id,
1255 uint32_t wred_profile_id,
1278 uint32_t shared_wred_context_id,
1302 uint32_t shaper_profile_id,
1325 uint32_t shaper_profile_id,
1354 uint32_t shared_shaper_id,
1355 uint32_t shaper_profile_id,
1377 uint32_t shared_shaper_id,
1446 uint32_t parent_node_id,
1603 uint32_t parent_node_id,
1632 uint32_t shaper_profile_id,
1659 uint32_t shared_shaper_id,
1686 uint64_t stats_mask,
1714 int *wfq_weight_mode,
1715 uint32_t n_sp_priorities,
1761 uint32_t wred_profile_id,
1786 uint32_t shared_wred_context_id,
1819 uint64_t *stats_mask,