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
975 RTE_TM_ERROR_TYPE_CAPABILITIES,
976 RTE_TM_ERROR_TYPE_LEVEL_ID,
977 RTE_TM_ERROR_TYPE_WRED_PROFILE,
978 RTE_TM_ERROR_TYPE_WRED_PROFILE_GREEN,
979 RTE_TM_ERROR_TYPE_WRED_PROFILE_YELLOW,
980 RTE_TM_ERROR_TYPE_WRED_PROFILE_RED,
981 RTE_TM_ERROR_TYPE_WRED_PROFILE_ID,
982 RTE_TM_ERROR_TYPE_SHARED_WRED_CONTEXT_ID,
983 RTE_TM_ERROR_TYPE_SHAPER_PROFILE,
984 RTE_TM_ERROR_TYPE_SHAPER_PROFILE_COMMITTED_RATE,
985 RTE_TM_ERROR_TYPE_SHAPER_PROFILE_COMMITTED_SIZE,
986 RTE_TM_ERROR_TYPE_SHAPER_PROFILE_PEAK_RATE,
987 RTE_TM_ERROR_TYPE_SHAPER_PROFILE_PEAK_SIZE,
988 RTE_TM_ERROR_TYPE_SHAPER_PROFILE_PKT_ADJUST_LEN,
989 RTE_TM_ERROR_TYPE_SHAPER_PROFILE_ID,
990 RTE_TM_ERROR_TYPE_SHARED_SHAPER_ID,
991 RTE_TM_ERROR_TYPE_NODE_PARENT_NODE_ID,
992 RTE_TM_ERROR_TYPE_NODE_PRIORITY,
993 RTE_TM_ERROR_TYPE_NODE_WEIGHT,
994 RTE_TM_ERROR_TYPE_NODE_PARAMS,
995 RTE_TM_ERROR_TYPE_NODE_PARAMS_SHAPER_PROFILE_ID,
996 RTE_TM_ERROR_TYPE_NODE_PARAMS_SHARED_SHAPER_ID,
997 RTE_TM_ERROR_TYPE_NODE_PARAMS_N_SHARED_SHAPERS,
998 RTE_TM_ERROR_TYPE_NODE_PARAMS_WFQ_WEIGHT_MODE,
999 RTE_TM_ERROR_TYPE_NODE_PARAMS_N_SP_PRIORITIES,
1000 RTE_TM_ERROR_TYPE_NODE_PARAMS_CMAN,
1001 RTE_TM_ERROR_TYPE_NODE_PARAMS_WRED_PROFILE_ID,
1002 RTE_TM_ERROR_TYPE_NODE_PARAMS_SHARED_WRED_CONTEXT_ID,
1003 RTE_TM_ERROR_TYPE_NODE_PARAMS_N_SHARED_WRED_CONTEXTS,
1004 RTE_TM_ERROR_TYPE_NODE_PARAMS_STATS,
1005 RTE_TM_ERROR_TYPE_NODE_ID,
1044 uint32_t *n_leaf_nodes,
1151 uint32_t wred_profile_id,
1174 uint32_t wred_profile_id,
1205 uint32_t shared_wred_context_id,
1206 uint32_t wred_profile_id,
1229 uint32_t shared_wred_context_id,
1253 uint32_t shaper_profile_id,
1276 uint32_t shaper_profile_id,
1305 uint32_t shared_shaper_id,
1306 uint32_t shaper_profile_id,
1328 uint32_t shared_shaper_id,
1397 uint32_t parent_node_id,
1554 uint32_t parent_node_id,
1583 uint32_t shaper_profile_id,
1610 uint32_t shared_shaper_id,
1637 uint64_t stats_mask,
1665 int *wfq_weight_mode,
1666 uint32_t n_sp_priorities,
1712 uint32_t wred_profile_id,
1737 uint32_t shared_wred_context_id,
1770 uint64_t *stats_mask,