DPDK  24.03.0
rte_tm.h
Go to the documentation of this file.
1 /* SPDX-License-Identifier: BSD-3-Clause
2  * Copyright(c) 2017 Intel Corporation.
3  * Copyright(c) 2017 Cavium.
4  * Copyright(c) 2017 NXP.
5  */
6 
7 #ifndef __INCLUDE_RTE_TM_H__
8 #define __INCLUDE_RTE_TM_H__
9 
19 #include <stdint.h>
20 
21 #include <rte_common.h>
22 #include <rte_meter.h>
23 
24 #ifdef __cplusplus
25 extern "C" {
26 #endif
27 
41 #define RTE_TM_ETH_FRAMING_OVERHEAD 20
42 
53 #define RTE_TM_ETH_FRAMING_OVERHEAD_FCS 24
54 
62 #define RTE_TM_WRED_PROFILE_ID_NONE UINT32_MAX
63 
71 #define RTE_TM_SHAPER_PROFILE_ID_NONE UINT32_MAX
72 
78 #define RTE_TM_NODE_ID_NULL UINT32_MAX
79 
85 #define RTE_TM_NODE_LEVEL_ID_ANY UINT32_MAX
86 
93 
96 
99 
102 
105 
108 
111 
114 
119 
124 };
125 
131  uint64_t n_pkts;
132 
134  uint64_t n_bytes;
135 
137  struct {
142 
147 
151  uint64_t n_pkts_queued;
152 
156  uint64_t n_bytes_queued;
157  } leaf;
158 };
159 
169 
175 
178 
181 
184 
187 
190 
193 };
194 
200  uint32_t n_nodes_max;
201 
205  uint32_t n_levels_max;
206 
211 
216 
223  uint32_t shaper_n_max;
224 
230 
239 
244 
249 
257 
265 
266 
271 
276 
284 
290 
295 
300 
307 
314 
315 
320 
325 
332 
342 
352 
365 
370 
378 
386 
394 
402 
408 
417 
424 
429 
434 
443 
445  int mark_vlan_dei_supported[RTE_COLORS];
446 
448  int mark_ip_ecn_tcp_supported[RTE_COLORS];
449 
451  int mark_ip_ecn_sctp_supported[RTE_COLORS];
452 
454  int mark_ip_dscp_supported[RTE_COLORS];
455 
460 
464  uint64_t stats_mask;
465 };
466 
472  uint32_t n_nodes_max;
473 
479 
485 
491 
497 
498  union {
500  struct {
507 
517 
524 
531 
540 
549 
559 
566 
573 
581 
594 
606 
625 
632 
642 
651 
659  uint64_t stats_mask;
660  } nonleaf;
661 
663  struct {
669  int shaper_private_supported;
670 
678  int shaper_private_dual_rate_supported;
679 
685  uint64_t shaper_private_rate_min;
686 
692  uint64_t shaper_private_rate_max;
693 
701  int shaper_private_packet_mode_supported;
702 
710  int shaper_private_byte_mode_supported;
711 
720  uint32_t shaper_shared_n_max;
721 
727  int shaper_shared_packet_mode_supported;
728 
734  int shaper_shared_byte_mode_supported;
735 
744 
753 
761 
768 
779 
787  uint64_t stats_mask;
788  } leaf;
789  };
790 };
791 
798 
803 
809 
815 
822 
829 
835 
841 
847 
848  union {
850  struct {
853 
861 
870 
884 
890 
898 
906 
907  } nonleaf;
908 
910  struct {
913 
916 
919 
922 
929  } leaf;
930  };
931 
935  uint64_t stats_mask;
936 };
937 
958 };
959 
965  uint64_t min_th;
966 
968  uint64_t max_th;
969 
973  uint16_t maxp_inv;
974 
976  uint16_t wq_log2;
977 };
978 
995  struct rte_tm_red_params red_params[RTE_COLORS];
996 
1002 };
1003 
1009  uint64_t rate;
1010 
1012  uint64_t size;
1013 };
1014 
1040  struct rte_tm_token_bucket committed;
1041 
1043  struct rte_tm_token_bucket peak;
1044 
1052 
1062 };
1063 
1097 
1099  uint32_t *shared_shaper_id;
1100 
1103 
1104  union {
1106  struct {
1116 
1119  } nonleaf;
1120 
1122  struct {
1124  enum rte_tm_cman_mode cman;
1125 
1129  struct {
1136 
1143 
1150  } wred;
1151  } leaf;
1152  };
1153 
1160  uint64_t stats_mask;
1161 };
1162 
1172  RTE_TM_ERROR_TYPE_CAPABILITIES,
1173  RTE_TM_ERROR_TYPE_LEVEL_ID,
1174  RTE_TM_ERROR_TYPE_WRED_PROFILE,
1175  RTE_TM_ERROR_TYPE_WRED_PROFILE_GREEN,
1176  RTE_TM_ERROR_TYPE_WRED_PROFILE_YELLOW,
1177  RTE_TM_ERROR_TYPE_WRED_PROFILE_RED,
1178  RTE_TM_ERROR_TYPE_WRED_PROFILE_ID,
1179  RTE_TM_ERROR_TYPE_SHARED_WRED_CONTEXT_ID,
1180  RTE_TM_ERROR_TYPE_SHAPER_PROFILE,
1181  RTE_TM_ERROR_TYPE_SHAPER_PROFILE_COMMITTED_RATE,
1182  RTE_TM_ERROR_TYPE_SHAPER_PROFILE_COMMITTED_SIZE,
1183  RTE_TM_ERROR_TYPE_SHAPER_PROFILE_PEAK_RATE,
1184  RTE_TM_ERROR_TYPE_SHAPER_PROFILE_PEAK_SIZE,
1185  RTE_TM_ERROR_TYPE_SHAPER_PROFILE_PKT_ADJUST_LEN,
1186  RTE_TM_ERROR_TYPE_SHAPER_PROFILE_PACKET_MODE,
1187  RTE_TM_ERROR_TYPE_SHAPER_PROFILE_ID,
1188  RTE_TM_ERROR_TYPE_SHARED_SHAPER_ID,
1189  RTE_TM_ERROR_TYPE_NODE_PARENT_NODE_ID,
1190  RTE_TM_ERROR_TYPE_NODE_PRIORITY,
1191  RTE_TM_ERROR_TYPE_NODE_WEIGHT,
1192  RTE_TM_ERROR_TYPE_NODE_PARAMS,
1193  RTE_TM_ERROR_TYPE_NODE_PARAMS_SHAPER_PROFILE_ID,
1194  RTE_TM_ERROR_TYPE_NODE_PARAMS_SHARED_SHAPER_ID,
1195  RTE_TM_ERROR_TYPE_NODE_PARAMS_N_SHARED_SHAPERS,
1196  RTE_TM_ERROR_TYPE_NODE_PARAMS_WFQ_WEIGHT_MODE,
1197  RTE_TM_ERROR_TYPE_NODE_PARAMS_N_SP_PRIORITIES,
1198  RTE_TM_ERROR_TYPE_NODE_PARAMS_CMAN,
1199  RTE_TM_ERROR_TYPE_NODE_PARAMS_WRED_PROFILE_ID,
1200  RTE_TM_ERROR_TYPE_NODE_PARAMS_SHARED_WRED_CONTEXT_ID,
1201  RTE_TM_ERROR_TYPE_NODE_PARAMS_N_SHARED_WRED_CONTEXTS,
1202  RTE_TM_ERROR_TYPE_NODE_PARAMS_STATS,
1203  RTE_TM_ERROR_TYPE_NODE_ID,
1204 };
1205 
1218  enum rte_tm_error_type type;
1219  const void *cause;
1220  const char *message;
1221 };
1222 
1240 int
1241 rte_tm_get_number_of_leaf_nodes(uint16_t port_id,
1242  uint32_t *n_leaf_nodes,
1243  struct rte_tm_error *error);
1244 
1264 int
1265 rte_tm_node_type_get(uint16_t port_id,
1266  uint32_t node_id,
1267  int *is_leaf,
1268  struct rte_tm_error *error);
1269 
1282 int
1283 rte_tm_capabilities_get(uint16_t port_id,
1284  struct rte_tm_capabilities *cap,
1285  struct rte_tm_error *error);
1286 
1302 int
1303 rte_tm_level_capabilities_get(uint16_t port_id,
1304  uint32_t level_id,
1305  struct rte_tm_level_capabilities *cap,
1306  struct rte_tm_error *error);
1307 
1322 int
1323 rte_tm_node_capabilities_get(uint16_t port_id,
1324  uint32_t node_id,
1325  struct rte_tm_node_capabilities *cap,
1326  struct rte_tm_error *error);
1327 
1347 int
1348 rte_tm_wred_profile_add(uint16_t port_id,
1349  uint32_t wred_profile_id,
1350  struct rte_tm_wred_params *profile,
1351  struct rte_tm_error *error);
1352 
1370 int
1371 rte_tm_wred_profile_delete(uint16_t port_id,
1372  uint32_t wred_profile_id,
1373  struct rte_tm_error *error);
1374 
1401 int
1402 rte_tm_shared_wred_context_add_update(uint16_t port_id,
1403  uint32_t shared_wred_context_id,
1404  uint32_t wred_profile_id,
1405  struct rte_tm_error *error);
1406 
1425 int
1426 rte_tm_shared_wred_context_delete(uint16_t port_id,
1427  uint32_t shared_wred_context_id,
1428  struct rte_tm_error *error);
1429 
1449 int
1450 rte_tm_shaper_profile_add(uint16_t port_id,
1451  uint32_t shaper_profile_id,
1452  struct rte_tm_shaper_params *profile,
1453  struct rte_tm_error *error);
1454 
1472 int
1473 rte_tm_shaper_profile_delete(uint16_t port_id,
1474  uint32_t shaper_profile_id,
1475  struct rte_tm_error *error);
1476 
1501 int
1502 rte_tm_shared_shaper_add_update(uint16_t port_id,
1503  uint32_t shared_shaper_id,
1504  uint32_t shaper_profile_id,
1505  struct rte_tm_error *error);
1506 
1524 int
1525 rte_tm_shared_shaper_delete(uint16_t port_id,
1526  uint32_t shared_shaper_id,
1527  struct rte_tm_error *error);
1528 
1592 int
1593 rte_tm_node_add(uint16_t port_id,
1594  uint32_t node_id,
1595  uint32_t parent_node_id,
1596  uint32_t priority,
1597  uint32_t weight,
1598  uint32_t level_id,
1599  struct rte_tm_node_params *params,
1600  struct rte_tm_error *error);
1601 
1625 int
1626 rte_tm_node_delete(uint16_t port_id,
1627  uint32_t node_id,
1628  struct rte_tm_error *error);
1629 
1649 int
1650 rte_tm_node_suspend(uint16_t port_id,
1651  uint32_t node_id,
1652  struct rte_tm_error *error);
1653 
1672 int
1673 rte_tm_node_resume(uint16_t port_id,
1674  uint32_t node_id,
1675  struct rte_tm_error *error);
1676 
1713 int
1714 rte_tm_hierarchy_commit(uint16_t port_id,
1715  int clear_on_fail,
1716  struct rte_tm_error *error);
1717 
1753 int
1754 rte_tm_node_parent_update(uint16_t port_id,
1755  uint32_t node_id,
1756  uint32_t parent_node_id,
1757  uint32_t priority,
1758  uint32_t weight,
1759  struct rte_tm_error *error);
1760 
1782 int
1783 rte_tm_node_shaper_update(uint16_t port_id,
1784  uint32_t node_id,
1785  uint32_t shaper_profile_id,
1786  struct rte_tm_error *error);
1787 
1809 int
1810 rte_tm_node_shared_shaper_update(uint16_t port_id,
1811  uint32_t node_id,
1812  uint32_t shared_shaper_id,
1813  int add,
1814  struct rte_tm_error *error);
1815 
1836 int
1837 rte_tm_node_stats_update(uint16_t port_id,
1838  uint32_t node_id,
1839  uint64_t stats_mask,
1840  struct rte_tm_error *error);
1841 
1864 int
1865 rte_tm_node_wfq_weight_mode_update(uint16_t port_id,
1866  uint32_t node_id,
1867  int *wfq_weight_mode,
1868  uint32_t n_sp_priorities,
1869  struct rte_tm_error *error);
1870 
1887 int
1888 rte_tm_node_cman_update(uint16_t port_id,
1889  uint32_t node_id,
1890  enum rte_tm_cman_mode cman,
1891  struct rte_tm_error *error);
1892 
1911 int
1912 rte_tm_node_wred_context_update(uint16_t port_id,
1913  uint32_t node_id,
1914  uint32_t wred_profile_id,
1915  struct rte_tm_error *error);
1916 
1936 int
1938  uint32_t node_id,
1939  uint32_t shared_wred_context_id,
1940  int add,
1941  struct rte_tm_error *error);
1942 
1968 int
1969 rte_tm_node_stats_read(uint16_t port_id,
1970  uint32_t node_id,
1971  struct rte_tm_node_stats *stats,
1972  uint64_t *stats_mask,
1973  int clear,
1974  struct rte_tm_error *error);
1975 
2005 int
2006 rte_tm_mark_vlan_dei(uint16_t port_id,
2007  int mark_green,
2008  int mark_yellow,
2009  int mark_red,
2010  struct rte_tm_error *error);
2011 
2055 int
2056 rte_tm_mark_ip_ecn(uint16_t port_id,
2057  int mark_green,
2058  int mark_yellow,
2059  int mark_red,
2060  struct rte_tm_error *error);
2061 
2103 int
2104 rte_tm_mark_ip_dscp(uint16_t port_id,
2105  int mark_green,
2106  int mark_yellow,
2107  int mark_red,
2108  struct rte_tm_error *error);
2109 
2110 #ifdef __cplusplus
2111 }
2112 #endif
2113 
2114 #endif /* __INCLUDE_RTE_TM_H__ */
int rte_tm_mark_vlan_dei(uint16_t port_id, int mark_green, int mark_yellow, int mark_red, struct rte_tm_error *error)
int cman_wred_packet_mode_supported
Definition: rte_tm.h:743
int * wfq_weight_mode
Definition: rte_tm.h:1115
int rte_tm_capabilities_get(uint16_t port_id, struct rte_tm_capabilities *cap, struct rte_tm_error *error)
int rte_tm_node_resume(uint16_t port_id, uint32_t node_id, struct rte_tm_error *error)
int cman_wred_packet_mode_supported
Definition: rte_tm.h:393
int sched_wfq_packet_mode_supported
Definition: rte_tm.h:897
uint64_t shaper_private_rate_min
Definition: rte_tm.h:808
int shaper_shared_byte_mode_supported
Definition: rte_tm.h:846
int rte_tm_node_stats_update(uint16_t port_id, uint32_t node_id, uint64_t stats_mask, struct rte_tm_error *error)
uint64_t n_pkts
Definition: rte_tm.h:131
int rte_tm_node_delete(uint16_t port_id, uint32_t node_id, struct rte_tm_error *error)
int shaper_private_dual_rate_supported
Definition: rte_tm.h:802
int shaper_private_byte_mode_supported
Definition: rte_tm.h:828
uint32_t n_shared_shapers
Definition: rte_tm.h:1102
uint64_t shaper_private_rate_max
Definition: rte_tm.h:530
int rte_tm_node_shaper_update(uint16_t port_id, uint32_t node_id, uint32_t shaper_profile_id, struct rte_tm_error *error)
int rte_tm_shared_shaper_delete(uint16_t port_id, uint32_t shared_shaper_id, struct rte_tm_error *error)
const void * cause
Definition: rte_tm.h:1219
int shaper_pkt_length_adjust_min
Definition: rte_tm.h:319
int shaper_shared_packet_mode_supported
Definition: rte_tm.h:565
int rte_tm_mark_ip_dscp(uint16_t port_id, int mark_green, int mark_yellow, int mark_red, struct rte_tm_error *error)
uint32_t sched_wfq_n_groups_max
Definition: rte_tm.h:883
int sched_wfq_byte_mode_supported
Definition: rte_tm.h:905
int cman_wred_context_private_supported
Definition: rte_tm.h:921
int shaper_private_packet_mode_supported
Definition: rte_tm.h:539
uint32_t wred_profile_id
Definition: rte_tm.h:1135
uint64_t shaper_private_rate_min
Definition: rte_tm.h:243
uint32_t sched_wfq_weight_max
Definition: rte_tm.h:889
int32_t pkt_length_adjust
Definition: rte_tm.h:1051
uint32_t cman_wred_context_private_n_max
Definition: rte_tm.h:423
uint32_t shaper_shared_n_shapers_per_node_max
Definition: rte_tm.h:283
int leaf_nodes_identical
Definition: rte_tm.h:215
int rte_tm_shared_shaper_add_update(uint16_t port_id, uint32_t shared_shaper_id, uint32_t shaper_profile_id, struct rte_tm_error *error)
int rte_tm_wred_profile_add(uint16_t port_id, uint32_t wred_profile_id, struct rte_tm_wred_params *profile, struct rte_tm_error *error)
uint32_t * shared_wred_context_id
Definition: rte_tm.h:1142
int sched_wfq_byte_mode_supported
Definition: rte_tm.h:385
int rte_tm_node_suspend(uint16_t port_id, uint32_t node_id, struct rte_tm_error *error)
uint32_t sched_wfq_n_children_per_group_max
Definition: rte_tm.h:351
int shaper_private_byte_mode_supported
Definition: rte_tm.h:264
int rte_tm_mark_ip_ecn(uint16_t port_id, int mark_green, int mark_yellow, int mark_red, struct rte_tm_error *error)
int sched_wfq_packet_mode_supported
Definition: rte_tm.h:377
uint32_t sched_sp_n_priorities_max
Definition: rte_tm.h:593
uint32_t sched_wfq_weight_max
Definition: rte_tm.h:631
uint64_t n_bytes
Definition: rte_tm.h:134
uint32_t shaper_shared_dual_rate_n_max
Definition: rte_tm.h:289
uint32_t shaper_n_max
Definition: rte_tm.h:223
uint64_t n_pkts_queued
Definition: rte_tm.h:151
int cman_wred_context_private_supported
Definition: rte_tm.h:767
uint32_t cman_wred_context_n_max
Definition: rte_tm.h:416
uint32_t sched_wfq_n_groups_max
Definition: rte_tm.h:364
int cman_wred_byte_mode_supported
Definition: rte_tm.h:915
rte_tm_dynamic_update_type
Definition: rte_tm.h:163
uint32_t n_nodes_nonleaf_max
Definition: rte_tm.h:478
uint32_t n_levels_max
Definition: rte_tm.h:205
uint32_t shaper_shared_n_max
Definition: rte_tm.h:834
int rte_tm_node_cman_update(uint16_t port_id, uint32_t node_id, enum rte_tm_cman_mode cman, struct rte_tm_error *error)
uint64_t min_th
Definition: rte_tm.h:965
uint64_t dynamic_update_mask
Definition: rte_tm.h:459
uint32_t n_sp_priorities
Definition: rte_tm.h:1118
int cman_head_drop_supported
Definition: rte_tm.h:407
uint64_t shaper_private_rate_max
Definition: rte_tm.h:814
uint64_t max_th
Definition: rte_tm.h:968
int rte_tm_hierarchy_commit(uint16_t port_id, int clear_on_fail, struct rte_tm_error *error)
uint64_t stats_mask
Definition: rte_tm.h:1160
uint64_t n_pkts_dropped[RTE_COLORS]
Definition: rte_tm.h:141
uint64_t n_bytes_queued
Definition: rte_tm.h:156
const char * message
Definition: rte_tm.h:1220
uint64_t shaper_shared_rate_max
Definition: rte_tm.h:299
uint32_t sched_wfq_n_children_per_group_max
Definition: rte_tm.h:605
uint32_t n_nodes_leaf_max
Definition: rte_tm.h:484
uint32_t shaper_profile_id
Definition: rte_tm.h:1096
int rte_tm_node_parent_update(uint16_t port_id, uint32_t node_id, uint32_t parent_node_id, uint32_t priority, uint32_t weight, struct rte_tm_error *error)
int rte_tm_shared_wred_context_delete(uint16_t port_id, uint32_t shared_wred_context_id, struct rte_tm_error *error)
uint32_t cman_wred_context_shared_n_max
Definition: rte_tm.h:778
int rte_tm_shaper_profile_add(uint16_t port_id, uint32_t shaper_profile_id, struct rte_tm_shaper_params *profile, struct rte_tm_error *error)
int shaper_pkt_length_adjust_max
Definition: rte_tm.h:324
int shaper_private_dual_rate_supported
Definition: rte_tm.h:516
int rte_tm_node_add(uint16_t port_id, uint32_t node_id, uint32_t parent_node_id, uint32_t priority, uint32_t weight, uint32_t level_id, struct rte_tm_node_params *params, struct rte_tm_error *error)
struct rte_tm_node_stats::@206 leaf
uint32_t n_nodes_max
Definition: rte_tm.h:200
uint32_t shaper_shared_n_max
Definition: rte_tm.h:558
uint32_t cman_wred_context_shared_n_nodes_per_context_max
Definition: rte_tm.h:433
uint32_t cman_wred_context_shared_n_max
Definition: rte_tm.h:428
int shaper_shared_byte_mode_supported
Definition: rte_tm.h:313
int rte_tm_node_wred_context_update(uint16_t port_id, uint32_t node_id, uint32_t wred_profile_id, struct rte_tm_error *error)
int shaper_shared_packet_mode_supported
Definition: rte_tm.h:840
uint64_t stats_mask
Definition: rte_tm.h:464
uint32_t shaper_shared_n_nodes_per_shaper_max
Definition: rte_tm.h:275
int rte_tm_node_shared_shaper_update(uint16_t port_id, uint32_t node_id, uint32_t shared_shaper_id, int add, struct rte_tm_error *error)
int shaper_private_dual_rate_n_max
Definition: rte_tm.h:238
int rte_tm_get_number_of_leaf_nodes(uint16_t port_id, uint32_t *n_leaf_nodes, struct rte_tm_error *error)
int shaper_private_byte_mode_supported
Definition: rte_tm.h:548
uint64_t shaper_private_rate_min
Definition: rte_tm.h:523
uint32_t cman_wred_context_shared_n_contexts_per_node_max
Definition: rte_tm.h:442
int cman_wred_packet_mode_supported
Definition: rte_tm.h:912
uint16_t wq_log2
Definition: rte_tm.h:976
int rte_tm_node_capabilities_get(uint16_t port_id, uint32_t node_id, struct rte_tm_node_capabilities *cap, struct rte_tm_error *error)
uint32_t * shared_shaper_id
Definition: rte_tm.h:1099
int rte_tm_node_wfq_weight_mode_update(uint16_t port_id, uint32_t node_id, int *wfq_weight_mode, uint32_t n_sp_priorities, struct rte_tm_error *error)
int rte_tm_node_stats_read(uint16_t port_id, uint32_t node_id, struct rte_tm_node_stats *stats, uint64_t *stats_mask, int clear, struct rte_tm_error *error)
uint32_t sched_wfq_weight_max
Definition: rte_tm.h:369
uint16_t maxp_inv
Definition: rte_tm.h:973
uint32_t sched_n_children_max
Definition: rte_tm.h:852
uint32_t cman_wred_context_shared_n_max
Definition: rte_tm.h:928
uint64_t shaper_private_rate_max
Definition: rte_tm.h:248
int cman_wred_byte_mode_supported
Definition: rte_tm.h:401
int non_leaf_nodes_identical
Definition: rte_tm.h:210
int rte_tm_shared_wred_context_add_update(uint16_t port_id, uint32_t shared_wred_context_id, uint32_t wred_profile_id, struct rte_tm_error *error)
uint32_t sched_n_children_max
Definition: rte_tm.h:331
uint32_t sched_n_children_max
Definition: rte_tm.h:580
rte_tm_error_type
Definition: rte_tm.h:1169
int shaper_shared_packet_mode_supported
Definition: rte_tm.h:306
uint32_t shaper_shared_n_max
Definition: rte_tm.h:270
int shaper_private_packet_mode_supported
Definition: rte_tm.h:256
uint32_t sched_sp_n_priorities_max
Definition: rte_tm.h:860
uint64_t n_bytes_dropped[RTE_COLORS]
Definition: rte_tm.h:146
uint32_t shaper_private_n_max
Definition: rte_tm.h:229
int sched_wfq_packet_mode_supported
Definition: rte_tm.h:641
int rte_tm_node_type_get(uint16_t port_id, uint32_t node_id, int *is_leaf, struct rte_tm_error *error)
int shaper_shared_byte_mode_supported
Definition: rte_tm.h:572
rte_tm_cman_mode
Definition: rte_tm.h:954
uint32_t sched_wfq_n_groups_max
Definition: rte_tm.h:624
uint64_t shaper_shared_rate_min
Definition: rte_tm.h:294
int rte_tm_shaper_profile_delete(uint16_t port_id, uint32_t shaper_profile_id, struct rte_tm_error *error)
uint32_t n_shared_wred_contexts
Definition: rte_tm.h:1149
uint32_t sched_wfq_n_children_per_group_max
Definition: rte_tm.h:869
int rte_tm_level_capabilities_get(uint16_t port_id, uint32_t level_id, struct rte_tm_level_capabilities *cap, struct rte_tm_error *error)
int rte_tm_node_shared_wred_context_update(uint16_t port_id, uint32_t node_id, uint32_t shared_wred_context_id, int add, struct rte_tm_error *error)
int shaper_private_packet_mode_supported
Definition: rte_tm.h:821
uint32_t sched_sp_n_priorities_max
Definition: rte_tm.h:341
int rte_tm_wred_profile_delete(uint16_t port_id, uint32_t wred_profile_id, struct rte_tm_error *error)
rte_tm_stats_type
Definition: rte_tm.h:90