DPDK 22.11.4
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
23#include <stdint.h>
24
25#include <rte_compat.h>
26#include <rte_common.h>
27#include <rte_meter.h>
28
29#ifdef __cplusplus
30extern "C" {
31#endif
32
46#define RTE_TM_ETH_FRAMING_OVERHEAD 20
47
58#define RTE_TM_ETH_FRAMING_OVERHEAD_FCS 24
59
67#define RTE_TM_WRED_PROFILE_ID_NONE UINT32_MAX
68
76#define RTE_TM_SHAPER_PROFILE_ID_NONE UINT32_MAX
77
83#define RTE_TM_NODE_ID_NULL UINT32_MAX
84
90#define RTE_TM_NODE_LEVEL_ID_ANY UINT32_MAX
91
98
101
104
107
110
113
116
119
124
129};
130
136 uint64_t n_pkts;
137
139 uint64_t n_bytes;
140
142 struct {
147
152
157
163};
164
174
180
183
186
189
192
195
198};
199
205 uint32_t n_nodes_max;
206
210 uint32_t n_levels_max;
211
216
221
228 uint32_t shaper_n_max;
229
235
244
249
254
262
270
271
276
281
289
295
300
305
312
319
320
325
330
337
347
357
370
375
383
391
399
407
413
422
429
434
439
448
451
454
457
460
465
469 uint64_t stats_mask;
470};
471
477 uint32_t n_nodes_max;
478
484
490
496
502
504 union {
506 struct {
513
523
530
537
546
555
565
572
579
587
600
612
631
638
648
657
665 uint64_t stats_mask;
667
669 struct {
676
685
692
699
708
717
726 uint32_t shaper_shared_n_max;
727
734
741
750
759
767
774
785
793 uint64_t stats_mask;
795 };
796};
797
804
809
815
821
828
835
841
847
853
855 union {
857 struct {
860
868
877
891
897
905
913
915
917 struct {
920
923
926
929
937 };
938
942 uint64_t stats_mask;
943};
944
965};
966
972 uint64_t min_th;
973
975 uint64_t max_th;
976
980 uint16_t maxp_inv;
981
983 uint16_t wq_log2;
984};
985
1003
1009};
1010
1016 uint64_t rate;
1017
1019 uint64_t size;
1020};
1021
1048
1051
1059
1069};
1070
1104
1107
1110
1112 union {
1114 struct {
1124
1128
1130 struct {
1133
1137 struct {
1144
1151
1160 };
1161
1168 uint64_t stats_mask;
1169};
1170
1180 RTE_TM_ERROR_TYPE_CAPABILITIES,
1181 RTE_TM_ERROR_TYPE_LEVEL_ID,
1182 RTE_TM_ERROR_TYPE_WRED_PROFILE,
1183 RTE_TM_ERROR_TYPE_WRED_PROFILE_GREEN,
1184 RTE_TM_ERROR_TYPE_WRED_PROFILE_YELLOW,
1185 RTE_TM_ERROR_TYPE_WRED_PROFILE_RED,
1186 RTE_TM_ERROR_TYPE_WRED_PROFILE_ID,
1187 RTE_TM_ERROR_TYPE_SHARED_WRED_CONTEXT_ID,
1188 RTE_TM_ERROR_TYPE_SHAPER_PROFILE,
1189 RTE_TM_ERROR_TYPE_SHAPER_PROFILE_COMMITTED_RATE,
1190 RTE_TM_ERROR_TYPE_SHAPER_PROFILE_COMMITTED_SIZE,
1191 RTE_TM_ERROR_TYPE_SHAPER_PROFILE_PEAK_RATE,
1192 RTE_TM_ERROR_TYPE_SHAPER_PROFILE_PEAK_SIZE,
1193 RTE_TM_ERROR_TYPE_SHAPER_PROFILE_PKT_ADJUST_LEN,
1194 RTE_TM_ERROR_TYPE_SHAPER_PROFILE_PACKET_MODE,
1195 RTE_TM_ERROR_TYPE_SHAPER_PROFILE_ID,
1196 RTE_TM_ERROR_TYPE_SHARED_SHAPER_ID,
1197 RTE_TM_ERROR_TYPE_NODE_PARENT_NODE_ID,
1198 RTE_TM_ERROR_TYPE_NODE_PRIORITY,
1199 RTE_TM_ERROR_TYPE_NODE_WEIGHT,
1200 RTE_TM_ERROR_TYPE_NODE_PARAMS,
1201 RTE_TM_ERROR_TYPE_NODE_PARAMS_SHAPER_PROFILE_ID,
1202 RTE_TM_ERROR_TYPE_NODE_PARAMS_SHARED_SHAPER_ID,
1203 RTE_TM_ERROR_TYPE_NODE_PARAMS_N_SHARED_SHAPERS,
1204 RTE_TM_ERROR_TYPE_NODE_PARAMS_WFQ_WEIGHT_MODE,
1205 RTE_TM_ERROR_TYPE_NODE_PARAMS_N_SP_PRIORITIES,
1206 RTE_TM_ERROR_TYPE_NODE_PARAMS_CMAN,
1207 RTE_TM_ERROR_TYPE_NODE_PARAMS_WRED_PROFILE_ID,
1208 RTE_TM_ERROR_TYPE_NODE_PARAMS_SHARED_WRED_CONTEXT_ID,
1209 RTE_TM_ERROR_TYPE_NODE_PARAMS_N_SHARED_WRED_CONTEXTS,
1210 RTE_TM_ERROR_TYPE_NODE_PARAMS_STATS,
1211 RTE_TM_ERROR_TYPE_NODE_ID,
1212};
1213
1227 const void *cause;
1228 const char *message;
1229};
1230
1248__rte_experimental
1249int
1251 uint32_t *n_leaf_nodes,
1252 struct rte_tm_error *error);
1253
1273__rte_experimental
1274int
1275rte_tm_node_type_get(uint16_t port_id,
1276 uint32_t node_id,
1277 int *is_leaf,
1278 struct rte_tm_error *error);
1279
1292__rte_experimental
1293int
1295 struct rte_tm_capabilities *cap,
1296 struct rte_tm_error *error);
1297
1313__rte_experimental
1314int
1316 uint32_t level_id,
1317 struct rte_tm_level_capabilities *cap,
1318 struct rte_tm_error *error);
1319
1334__rte_experimental
1335int
1337 uint32_t node_id,
1338 struct rte_tm_node_capabilities *cap,
1339 struct rte_tm_error *error);
1340
1360__rte_experimental
1361int
1363 uint32_t wred_profile_id,
1364 struct rte_tm_wred_params *profile,
1365 struct rte_tm_error *error);
1366
1384__rte_experimental
1385int
1387 uint32_t wred_profile_id,
1388 struct rte_tm_error *error);
1389
1416__rte_experimental
1417int
1419 uint32_t shared_wred_context_id,
1420 uint32_t wred_profile_id,
1421 struct rte_tm_error *error);
1422
1441__rte_experimental
1442int
1444 uint32_t shared_wred_context_id,
1445 struct rte_tm_error *error);
1446
1466__rte_experimental
1467int
1469 uint32_t shaper_profile_id,
1470 struct rte_tm_shaper_params *profile,
1471 struct rte_tm_error *error);
1472
1490__rte_experimental
1491int
1493 uint32_t shaper_profile_id,
1494 struct rte_tm_error *error);
1495
1520__rte_experimental
1521int
1523 uint32_t shared_shaper_id,
1524 uint32_t shaper_profile_id,
1525 struct rte_tm_error *error);
1526
1544__rte_experimental
1545int
1547 uint32_t shared_shaper_id,
1548 struct rte_tm_error *error);
1549
1613__rte_experimental
1614int
1615rte_tm_node_add(uint16_t port_id,
1616 uint32_t node_id,
1617 uint32_t parent_node_id,
1618 uint32_t priority,
1619 uint32_t weight,
1620 uint32_t level_id,
1621 struct rte_tm_node_params *params,
1622 struct rte_tm_error *error);
1623
1647__rte_experimental
1648int
1649rte_tm_node_delete(uint16_t port_id,
1650 uint32_t node_id,
1651 struct rte_tm_error *error);
1652
1672__rte_experimental
1673int
1674rte_tm_node_suspend(uint16_t port_id,
1675 uint32_t node_id,
1676 struct rte_tm_error *error);
1677
1696__rte_experimental
1697int
1698rte_tm_node_resume(uint16_t port_id,
1699 uint32_t node_id,
1700 struct rte_tm_error *error);
1701
1738__rte_experimental
1739int
1741 int clear_on_fail,
1742 struct rte_tm_error *error);
1743
1779__rte_experimental
1780int
1782 uint32_t node_id,
1783 uint32_t parent_node_id,
1784 uint32_t priority,
1785 uint32_t weight,
1786 struct rte_tm_error *error);
1787
1809__rte_experimental
1810int
1812 uint32_t node_id,
1813 uint32_t shaper_profile_id,
1814 struct rte_tm_error *error);
1815
1837__rte_experimental
1838int
1840 uint32_t node_id,
1841 uint32_t shared_shaper_id,
1842 int add,
1843 struct rte_tm_error *error);
1844
1865__rte_experimental
1866int
1868 uint32_t node_id,
1869 uint64_t stats_mask,
1870 struct rte_tm_error *error);
1871
1894__rte_experimental
1895int
1897 uint32_t node_id,
1898 int *wfq_weight_mode,
1899 uint32_t n_sp_priorities,
1900 struct rte_tm_error *error);
1901
1918__rte_experimental
1919int
1921 uint32_t node_id,
1922 enum rte_tm_cman_mode cman,
1923 struct rte_tm_error *error);
1924
1943__rte_experimental
1944int
1946 uint32_t node_id,
1947 uint32_t wred_profile_id,
1948 struct rte_tm_error *error);
1949
1969__rte_experimental
1970int
1972 uint32_t node_id,
1973 uint32_t shared_wred_context_id,
1974 int add,
1975 struct rte_tm_error *error);
1976
2002__rte_experimental
2003int
2004rte_tm_node_stats_read(uint16_t port_id,
2005 uint32_t node_id,
2006 struct rte_tm_node_stats *stats,
2007 uint64_t *stats_mask,
2008 int clear,
2009 struct rte_tm_error *error);
2010
2040__rte_experimental
2041int
2042rte_tm_mark_vlan_dei(uint16_t port_id,
2043 int mark_green,
2044 int mark_yellow,
2045 int mark_red,
2046 struct rte_tm_error *error);
2047
2091__rte_experimental
2092int
2093rte_tm_mark_ip_ecn(uint16_t port_id,
2094 int mark_green,
2095 int mark_yellow,
2096 int mark_red,
2097 struct rte_tm_error *error);
2098
2140__rte_experimental
2141int
2142rte_tm_mark_ip_dscp(uint16_t port_id,
2143 int mark_green,
2144 int mark_yellow,
2145 int mark_red,
2146 struct rte_tm_error *error);
2147
2148#ifdef __cplusplus
2149}
2150#endif
2151
2152#endif /* __INCLUDE_RTE_TM_H__ */
#define RTE_STD_C11
Definition: rte_common.h:39
@ RTE_COLORS
Definition: rte_meter.h:39
__rte_experimental int rte_tm_shaper_profile_delete(uint16_t port_id, uint32_t shaper_profile_id, struct rte_tm_error *error)
__rte_experimental int rte_tm_shared_shaper_delete(uint16_t port_id, uint32_t shared_shaper_id, struct rte_tm_error *error)
rte_tm_error_type
Definition: rte_tm.h:1177
@ RTE_TM_ERROR_TYPE_UNSPECIFIED
Definition: rte_tm.h:1179
@ RTE_TM_ERROR_TYPE_NONE
Definition: rte_tm.h:1178
__rte_experimental 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)
__rte_experimental 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)
__rte_experimental int rte_tm_mark_ip_ecn(uint16_t port_id, int mark_green, int mark_yellow, int mark_red, struct rte_tm_error *error)
__rte_experimental 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)
__rte_experimental int rte_tm_mark_ip_dscp(uint16_t port_id, int mark_green, int mark_yellow, int mark_red, struct rte_tm_error *error)
__rte_experimental int rte_tm_node_type_get(uint16_t port_id, uint32_t node_id, int *is_leaf, struct rte_tm_error *error)
__rte_experimental 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)
__rte_experimental int rte_tm_shared_wred_context_delete(uint16_t port_id, uint32_t shared_wred_context_id, struct rte_tm_error *error)
__rte_experimental 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)
__rte_experimental 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)
__rte_experimental int rte_tm_get_number_of_leaf_nodes(uint16_t port_id, uint32_t *n_leaf_nodes, struct rte_tm_error *error)
__rte_experimental 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)
__rte_experimental 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)
__rte_experimental int rte_tm_node_suspend(uint16_t port_id, uint32_t node_id, struct rte_tm_error *error)
rte_tm_cman_mode
Definition: rte_tm.h:961
@ RTE_TM_CMAN_TAIL_DROP
Definition: rte_tm.h:962
@ RTE_TM_CMAN_WRED
Definition: rte_tm.h:964
@ RTE_TM_CMAN_HEAD_DROP
Definition: rte_tm.h:963
__rte_experimental int rte_tm_node_shaper_update(uint16_t port_id, uint32_t node_id, uint32_t shaper_profile_id, struct rte_tm_error *error)
rte_tm_stats_type
Definition: rte_tm.h:95
@ RTE_TM_STATS_N_PKTS_YELLOW_DROPPED
Definition: rte_tm.h:106
@ RTE_TM_STATS_N_BYTES
Definition: rte_tm.h:100
@ RTE_TM_STATS_N_BYTES_GREEN_DROPPED
Definition: rte_tm.h:112
@ RTE_TM_STATS_N_PKTS
Definition: rte_tm.h:97
@ RTE_TM_STATS_N_BYTES_RED_DROPPED
Definition: rte_tm.h:118
@ RTE_TM_STATS_N_PKTS_RED_DROPPED
Definition: rte_tm.h:109
@ RTE_TM_STATS_N_PKTS_QUEUED
Definition: rte_tm.h:123
@ RTE_TM_STATS_N_BYTES_QUEUED
Definition: rte_tm.h:128
@ RTE_TM_STATS_N_BYTES_YELLOW_DROPPED
Definition: rte_tm.h:115
@ RTE_TM_STATS_N_PKTS_GREEN_DROPPED
Definition: rte_tm.h:103
__rte_experimental 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)
__rte_experimental 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)
__rte_experimental int rte_tm_node_stats_update(uint16_t port_id, uint32_t node_id, uint64_t stats_mask, struct rte_tm_error *error)
__rte_experimental 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)
__rte_experimental int rte_tm_wred_profile_delete(uint16_t port_id, uint32_t wred_profile_id, struct rte_tm_error *error)
__rte_experimental int rte_tm_mark_vlan_dei(uint16_t port_id, int mark_green, int mark_yellow, int mark_red, struct rte_tm_error *error)
__rte_experimental 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)
__rte_experimental int rte_tm_node_delete(uint16_t port_id, uint32_t node_id, struct rte_tm_error *error)
__rte_experimental int rte_tm_hierarchy_commit(uint16_t port_id, int clear_on_fail, struct rte_tm_error *error)
__rte_experimental int rte_tm_node_resume(uint16_t port_id, uint32_t node_id, struct rte_tm_error *error)
__rte_experimental int rte_tm_capabilities_get(uint16_t port_id, struct rte_tm_capabilities *cap, struct rte_tm_error *error)
__rte_experimental 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)
__rte_experimental 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)
rte_tm_dynamic_update_type
Definition: rte_tm.h:168
@ RTE_TM_UPDATE_NODE_PARENT_CHANGE_LEVEL
Definition: rte_tm.h:179
@ RTE_TM_UPDATE_NODE_ADD_DELETE
Definition: rte_tm.h:182
@ RTE_TM_UPDATE_NODE_PARENT_KEEP_LEVEL
Definition: rte_tm.h:173
@ RTE_TM_UPDATE_NODE_WFQ_WEIGHT_MODE
Definition: rte_tm.h:188
@ RTE_TM_UPDATE_NODE_SUSPEND_RESUME
Definition: rte_tm.h:185
@ RTE_TM_UPDATE_NODE_STATS
Definition: rte_tm.h:197
@ RTE_TM_UPDATE_NODE_CMAN
Definition: rte_tm.h:194
@ RTE_TM_UPDATE_NODE_N_SP_PRIORITIES
Definition: rte_tm.h:191
int cman_head_drop_supported
Definition: rte_tm.h:412
int mark_ip_ecn_sctp_supported[RTE_COLORS]
Definition: rte_tm.h:456
int shaper_shared_packet_mode_supported
Definition: rte_tm.h:311
int mark_vlan_dei_supported[RTE_COLORS]
Definition: rte_tm.h:450
uint32_t sched_wfq_n_groups_max
Definition: rte_tm.h:369
int non_leaf_nodes_identical
Definition: rte_tm.h:215
int shaper_pkt_length_adjust_min
Definition: rte_tm.h:324
uint32_t sched_n_children_max
Definition: rte_tm.h:336
int mark_ip_dscp_supported[RTE_COLORS]
Definition: rte_tm.h:459
uint64_t stats_mask
Definition: rte_tm.h:469
int sched_wfq_byte_mode_supported
Definition: rte_tm.h:390
uint32_t shaper_private_n_max
Definition: rte_tm.h:234
uint32_t sched_wfq_n_children_per_group_max
Definition: rte_tm.h:356
uint32_t shaper_shared_dual_rate_n_max
Definition: rte_tm.h:294
uint32_t sched_wfq_weight_max
Definition: rte_tm.h:374
uint32_t cman_wred_context_n_max
Definition: rte_tm.h:421
uint64_t shaper_private_rate_max
Definition: rte_tm.h:253
int shaper_private_packet_mode_supported
Definition: rte_tm.h:261
uint32_t shaper_n_max
Definition: rte_tm.h:228
uint32_t shaper_shared_n_nodes_per_shaper_max
Definition: rte_tm.h:280
uint32_t sched_sp_n_priorities_max
Definition: rte_tm.h:346
uint32_t cman_wred_context_private_n_max
Definition: rte_tm.h:428
int leaf_nodes_identical
Definition: rte_tm.h:220
uint32_t cman_wred_context_shared_n_max
Definition: rte_tm.h:433
uint64_t shaper_private_rate_min
Definition: rte_tm.h:248
uint32_t shaper_shared_n_max
Definition: rte_tm.h:275
uint32_t cman_wred_context_shared_n_nodes_per_context_max
Definition: rte_tm.h:438
uint32_t cman_wred_context_shared_n_contexts_per_node_max
Definition: rte_tm.h:447
int shaper_private_byte_mode_supported
Definition: rte_tm.h:269
uint32_t shaper_shared_n_shapers_per_node_max
Definition: rte_tm.h:288
int mark_ip_ecn_tcp_supported[RTE_COLORS]
Definition: rte_tm.h:453
int shaper_pkt_length_adjust_max
Definition: rte_tm.h:329
uint64_t shaper_shared_rate_min
Definition: rte_tm.h:299
int shaper_shared_byte_mode_supported
Definition: rte_tm.h:318
int sched_wfq_packet_mode_supported
Definition: rte_tm.h:382
int cman_wred_packet_mode_supported
Definition: rte_tm.h:398
uint32_t n_nodes_max
Definition: rte_tm.h:205
int shaper_private_dual_rate_n_max
Definition: rte_tm.h:243
uint64_t dynamic_update_mask
Definition: rte_tm.h:464
int cman_wred_byte_mode_supported
Definition: rte_tm.h:406
uint32_t n_levels_max
Definition: rte_tm.h:210
uint64_t shaper_shared_rate_max
Definition: rte_tm.h:304
const char * message
Definition: rte_tm.h:1228
enum rte_tm_error_type type
Definition: rte_tm.h:1226
const void * cause
Definition: rte_tm.h:1227
int shaper_shared_packet_mode_supported
Definition: rte_tm.h:571
uint32_t sched_wfq_n_groups_max
Definition: rte_tm.h:630
uint32_t sched_n_children_max
Definition: rte_tm.h:586
uint32_t sched_wfq_n_children_per_group_max
Definition: rte_tm.h:611
uint32_t sched_wfq_weight_max
Definition: rte_tm.h:637
int shaper_private_dual_rate_supported
Definition: rte_tm.h:522
uint32_t n_nodes_nonleaf_max
Definition: rte_tm.h:483
uint64_t shaper_private_rate_max
Definition: rte_tm.h:536
int shaper_private_packet_mode_supported
Definition: rte_tm.h:545
struct rte_tm_level_capabilities::@159::@162 leaf
uint32_t sched_sp_n_priorities_max
Definition: rte_tm.h:599
uint32_t cman_wred_context_shared_n_max
Definition: rte_tm.h:784
uint64_t shaper_private_rate_min
Definition: rte_tm.h:529
uint32_t shaper_shared_n_max
Definition: rte_tm.h:564
int cman_wred_context_private_supported
Definition: rte_tm.h:773
uint32_t n_nodes_leaf_max
Definition: rte_tm.h:489
int shaper_private_byte_mode_supported
Definition: rte_tm.h:554
int shaper_shared_byte_mode_supported
Definition: rte_tm.h:578
int sched_wfq_packet_mode_supported
Definition: rte_tm.h:647
int cman_wred_packet_mode_supported
Definition: rte_tm.h:749
struct rte_tm_level_capabilities::@159::@161 nonleaf
struct rte_tm_node_capabilities::@163::@166 leaf
struct rte_tm_node_capabilities::@163::@165 nonleaf
int shaper_shared_packet_mode_supported
Definition: rte_tm.h:846
uint32_t sched_wfq_n_groups_max
Definition: rte_tm.h:890
uint32_t sched_n_children_max
Definition: rte_tm.h:859
int sched_wfq_byte_mode_supported
Definition: rte_tm.h:912
uint32_t sched_wfq_n_children_per_group_max
Definition: rte_tm.h:876
uint32_t sched_wfq_weight_max
Definition: rte_tm.h:896
int shaper_private_dual_rate_supported
Definition: rte_tm.h:808
uint64_t shaper_private_rate_max
Definition: rte_tm.h:820
int shaper_private_packet_mode_supported
Definition: rte_tm.h:827
uint32_t sched_sp_n_priorities_max
Definition: rte_tm.h:867
uint32_t cman_wred_context_shared_n_max
Definition: rte_tm.h:935
uint64_t shaper_private_rate_min
Definition: rte_tm.h:814
uint32_t shaper_shared_n_max
Definition: rte_tm.h:840
int cman_wred_context_private_supported
Definition: rte_tm.h:928
int shaper_private_byte_mode_supported
Definition: rte_tm.h:834
int shaper_shared_byte_mode_supported
Definition: rte_tm.h:852
int sched_wfq_packet_mode_supported
Definition: rte_tm.h:904
int cman_wred_packet_mode_supported
Definition: rte_tm.h:919
int cman_wred_byte_mode_supported
Definition: rte_tm.h:922
uint32_t n_shared_wred_contexts
Definition: rte_tm.h:1157
uint32_t wred_profile_id
Definition: rte_tm.h:1143
uint64_t stats_mask
Definition: rte_tm.h:1168
struct rte_tm_node_params::@167::@170::@171 wred
uint32_t n_sp_priorities
Definition: rte_tm.h:1126
uint32_t shaper_profile_id
Definition: rte_tm.h:1103
uint32_t * shared_wred_context_id
Definition: rte_tm.h:1150
uint32_t * shared_shaper_id
Definition: rte_tm.h:1106
int * wfq_weight_mode
Definition: rte_tm.h:1123
uint32_t n_shared_shapers
Definition: rte_tm.h:1109
struct rte_tm_node_params::@167::@169 nonleaf
enum rte_tm_cman_mode cman
Definition: rte_tm.h:1132
struct rte_tm_node_params::@167::@170 leaf
uint64_t n_pkts_dropped[RTE_COLORS]
Definition: rte_tm.h:146
uint64_t n_bytes
Definition: rte_tm.h:139
uint64_t n_pkts
Definition: rte_tm.h:136
uint64_t n_bytes_queued
Definition: rte_tm.h:161
uint64_t n_bytes_dropped[RTE_COLORS]
Definition: rte_tm.h:151
struct rte_tm_node_stats::@158 leaf
uint64_t n_pkts_queued
Definition: rte_tm.h:156
uint64_t max_th
Definition: rte_tm.h:975
uint16_t wq_log2
Definition: rte_tm.h:983
uint16_t maxp_inv
Definition: rte_tm.h:980
uint64_t min_th
Definition: rte_tm.h:972
struct rte_tm_token_bucket committed
Definition: rte_tm.h:1047
struct rte_tm_token_bucket peak
Definition: rte_tm.h:1050
int32_t pkt_length_adjust
Definition: rte_tm.h:1058
struct rte_tm_red_params red_params[RTE_COLORS]
Definition: rte_tm.h:1002