DPDK 21.11.9
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_common.h>
26#include <rte_meter.h>
27
28#ifdef __cplusplus
29extern "C" {
30#endif
31
45#define RTE_TM_ETH_FRAMING_OVERHEAD 20
46
57#define RTE_TM_ETH_FRAMING_OVERHEAD_FCS 24
58
66#define RTE_TM_WRED_PROFILE_ID_NONE UINT32_MAX
67
75#define RTE_TM_SHAPER_PROFILE_ID_NONE UINT32_MAX
76
82#define RTE_TM_NODE_ID_NULL UINT32_MAX
83
89#define RTE_TM_NODE_LEVEL_ID_ANY UINT32_MAX
90
97
100
103
106
109
112
115
118
123
128};
129
135 uint64_t n_pkts;
136
138 uint64_t n_bytes;
139
141 struct {
146
151
156
162};
163
173
179
182
185
188
191
194
197};
198
204 uint32_t n_nodes_max;
205
209 uint32_t n_levels_max;
210
215
220
227 uint32_t shaper_n_max;
228
234
243
248
253
261
269
270
275
280
288
294
299
304
311
318
319
324
329
336
346
356
369
374
382
390
398
406
412
421
428
433
438
447
450
453
456
459
464
468 uint64_t stats_mask;
469};
470
476 uint32_t n_nodes_max;
477
483
489
495
501
503 union {
505 struct {
512
522
529
536
545
554
564
571
578
586
599
611
630
637
647
656
664 uint64_t stats_mask;
666
668 struct {
675
684
691
698
707
716
725 uint32_t shaper_shared_n_max;
726
733
740
749
758
766
773
784
792 uint64_t stats_mask;
794 };
795};
796
803
808
814
820
827
834
840
846
852
854 union {
856 struct {
859
867
876
890
896
904
912
914
916 struct {
919
922
925
928
936 };
937
941 uint64_t stats_mask;
942};
943
964};
965
971 uint64_t min_th;
972
974 uint64_t max_th;
975
979 uint16_t maxp_inv;
980
982 uint16_t wq_log2;
983};
984
1002
1008};
1009
1015 uint64_t rate;
1016
1018 uint64_t size;
1019};
1020
1047
1050
1058
1068};
1069
1103
1106
1109
1111 union {
1113 struct {
1123
1127
1129 struct {
1132
1136 struct {
1143
1150
1159 };
1160
1167 uint64_t stats_mask;
1168};
1169
1179 RTE_TM_ERROR_TYPE_CAPABILITIES,
1180 RTE_TM_ERROR_TYPE_LEVEL_ID,
1181 RTE_TM_ERROR_TYPE_WRED_PROFILE,
1182 RTE_TM_ERROR_TYPE_WRED_PROFILE_GREEN,
1183 RTE_TM_ERROR_TYPE_WRED_PROFILE_YELLOW,
1184 RTE_TM_ERROR_TYPE_WRED_PROFILE_RED,
1185 RTE_TM_ERROR_TYPE_WRED_PROFILE_ID,
1186 RTE_TM_ERROR_TYPE_SHARED_WRED_CONTEXT_ID,
1187 RTE_TM_ERROR_TYPE_SHAPER_PROFILE,
1188 RTE_TM_ERROR_TYPE_SHAPER_PROFILE_COMMITTED_RATE,
1189 RTE_TM_ERROR_TYPE_SHAPER_PROFILE_COMMITTED_SIZE,
1190 RTE_TM_ERROR_TYPE_SHAPER_PROFILE_PEAK_RATE,
1191 RTE_TM_ERROR_TYPE_SHAPER_PROFILE_PEAK_SIZE,
1192 RTE_TM_ERROR_TYPE_SHAPER_PROFILE_PKT_ADJUST_LEN,
1193 RTE_TM_ERROR_TYPE_SHAPER_PROFILE_PACKET_MODE,
1194 RTE_TM_ERROR_TYPE_SHAPER_PROFILE_ID,
1195 RTE_TM_ERROR_TYPE_SHARED_SHAPER_ID,
1196 RTE_TM_ERROR_TYPE_NODE_PARENT_NODE_ID,
1197 RTE_TM_ERROR_TYPE_NODE_PRIORITY,
1198 RTE_TM_ERROR_TYPE_NODE_WEIGHT,
1199 RTE_TM_ERROR_TYPE_NODE_PARAMS,
1200 RTE_TM_ERROR_TYPE_NODE_PARAMS_SHAPER_PROFILE_ID,
1201 RTE_TM_ERROR_TYPE_NODE_PARAMS_SHARED_SHAPER_ID,
1202 RTE_TM_ERROR_TYPE_NODE_PARAMS_N_SHARED_SHAPERS,
1203 RTE_TM_ERROR_TYPE_NODE_PARAMS_WFQ_WEIGHT_MODE,
1204 RTE_TM_ERROR_TYPE_NODE_PARAMS_N_SP_PRIORITIES,
1205 RTE_TM_ERROR_TYPE_NODE_PARAMS_CMAN,
1206 RTE_TM_ERROR_TYPE_NODE_PARAMS_WRED_PROFILE_ID,
1207 RTE_TM_ERROR_TYPE_NODE_PARAMS_SHARED_WRED_CONTEXT_ID,
1208 RTE_TM_ERROR_TYPE_NODE_PARAMS_N_SHARED_WRED_CONTEXTS,
1209 RTE_TM_ERROR_TYPE_NODE_PARAMS_STATS,
1210 RTE_TM_ERROR_TYPE_NODE_ID,
1211};
1212
1226 const void *cause;
1227 const char *message;
1228};
1229
1247__rte_experimental
1248int
1250 uint32_t *n_leaf_nodes,
1251 struct rte_tm_error *error);
1252
1272__rte_experimental
1273int
1274rte_tm_node_type_get(uint16_t port_id,
1275 uint32_t node_id,
1276 int *is_leaf,
1277 struct rte_tm_error *error);
1278
1291__rte_experimental
1292int
1294 struct rte_tm_capabilities *cap,
1295 struct rte_tm_error *error);
1296
1312__rte_experimental
1313int
1315 uint32_t level_id,
1316 struct rte_tm_level_capabilities *cap,
1317 struct rte_tm_error *error);
1318
1333__rte_experimental
1334int
1336 uint32_t node_id,
1337 struct rte_tm_node_capabilities *cap,
1338 struct rte_tm_error *error);
1339
1359__rte_experimental
1360int
1362 uint32_t wred_profile_id,
1363 struct rte_tm_wred_params *profile,
1364 struct rte_tm_error *error);
1365
1383__rte_experimental
1384int
1386 uint32_t wred_profile_id,
1387 struct rte_tm_error *error);
1388
1415__rte_experimental
1416int
1418 uint32_t shared_wred_context_id,
1419 uint32_t wred_profile_id,
1420 struct rte_tm_error *error);
1421
1440__rte_experimental
1441int
1443 uint32_t shared_wred_context_id,
1444 struct rte_tm_error *error);
1445
1465__rte_experimental
1466int
1468 uint32_t shaper_profile_id,
1469 struct rte_tm_shaper_params *profile,
1470 struct rte_tm_error *error);
1471
1489__rte_experimental
1490int
1492 uint32_t shaper_profile_id,
1493 struct rte_tm_error *error);
1494
1519__rte_experimental
1520int
1522 uint32_t shared_shaper_id,
1523 uint32_t shaper_profile_id,
1524 struct rte_tm_error *error);
1525
1543__rte_experimental
1544int
1546 uint32_t shared_shaper_id,
1547 struct rte_tm_error *error);
1548
1612__rte_experimental
1613int
1614rte_tm_node_add(uint16_t port_id,
1615 uint32_t node_id,
1616 uint32_t parent_node_id,
1617 uint32_t priority,
1618 uint32_t weight,
1619 uint32_t level_id,
1620 struct rte_tm_node_params *params,
1621 struct rte_tm_error *error);
1622
1646__rte_experimental
1647int
1648rte_tm_node_delete(uint16_t port_id,
1649 uint32_t node_id,
1650 struct rte_tm_error *error);
1651
1671__rte_experimental
1672int
1673rte_tm_node_suspend(uint16_t port_id,
1674 uint32_t node_id,
1675 struct rte_tm_error *error);
1676
1695__rte_experimental
1696int
1697rte_tm_node_resume(uint16_t port_id,
1698 uint32_t node_id,
1699 struct rte_tm_error *error);
1700
1737__rte_experimental
1738int
1740 int clear_on_fail,
1741 struct rte_tm_error *error);
1742
1778__rte_experimental
1779int
1781 uint32_t node_id,
1782 uint32_t parent_node_id,
1783 uint32_t priority,
1784 uint32_t weight,
1785 struct rte_tm_error *error);
1786
1808__rte_experimental
1809int
1811 uint32_t node_id,
1812 uint32_t shaper_profile_id,
1813 struct rte_tm_error *error);
1814
1836__rte_experimental
1837int
1839 uint32_t node_id,
1840 uint32_t shared_shaper_id,
1841 int add,
1842 struct rte_tm_error *error);
1843
1864__rte_experimental
1865int
1867 uint32_t node_id,
1868 uint64_t stats_mask,
1869 struct rte_tm_error *error);
1870
1893__rte_experimental
1894int
1896 uint32_t node_id,
1897 int *wfq_weight_mode,
1898 uint32_t n_sp_priorities,
1899 struct rte_tm_error *error);
1900
1917__rte_experimental
1918int
1920 uint32_t node_id,
1921 enum rte_tm_cman_mode cman,
1922 struct rte_tm_error *error);
1923
1942__rte_experimental
1943int
1945 uint32_t node_id,
1946 uint32_t wred_profile_id,
1947 struct rte_tm_error *error);
1948
1968__rte_experimental
1969int
1971 uint32_t node_id,
1972 uint32_t shared_wred_context_id,
1973 int add,
1974 struct rte_tm_error *error);
1975
2001__rte_experimental
2002int
2003rte_tm_node_stats_read(uint16_t port_id,
2004 uint32_t node_id,
2005 struct rte_tm_node_stats *stats,
2006 uint64_t *stats_mask,
2007 int clear,
2008 struct rte_tm_error *error);
2009
2039__rte_experimental
2040int
2041rte_tm_mark_vlan_dei(uint16_t port_id,
2042 int mark_green,
2043 int mark_yellow,
2044 int mark_red,
2045 struct rte_tm_error *error);
2046
2090__rte_experimental
2091int
2092rte_tm_mark_ip_ecn(uint16_t port_id,
2093 int mark_green,
2094 int mark_yellow,
2095 int mark_red,
2096 struct rte_tm_error *error);
2097
2139__rte_experimental
2140int
2141rte_tm_mark_ip_dscp(uint16_t port_id,
2142 int mark_green,
2143 int mark_yellow,
2144 int mark_red,
2145 struct rte_tm_error *error);
2146
2147#ifdef __cplusplus
2148}
2149#endif
2150
2151#endif /* __INCLUDE_RTE_TM_H__ */
#define RTE_STD_C11
Definition: rte_common.h:42
@ RTE_COLORS
Definition: rte_meter.h:40
__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:1176
@ RTE_TM_ERROR_TYPE_UNSPECIFIED
Definition: rte_tm.h:1178
@ RTE_TM_ERROR_TYPE_NONE
Definition: rte_tm.h:1177
__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:960
@ RTE_TM_CMAN_TAIL_DROP
Definition: rte_tm.h:961
@ RTE_TM_CMAN_WRED
Definition: rte_tm.h:963
@ RTE_TM_CMAN_HEAD_DROP
Definition: rte_tm.h:962
__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:94
@ RTE_TM_STATS_N_PKTS_YELLOW_DROPPED
Definition: rte_tm.h:105
@ RTE_TM_STATS_N_BYTES
Definition: rte_tm.h:99
@ RTE_TM_STATS_N_BYTES_GREEN_DROPPED
Definition: rte_tm.h:111
@ RTE_TM_STATS_N_PKTS
Definition: rte_tm.h:96
@ RTE_TM_STATS_N_BYTES_RED_DROPPED
Definition: rte_tm.h:117
@ RTE_TM_STATS_N_PKTS_RED_DROPPED
Definition: rte_tm.h:108
@ RTE_TM_STATS_N_PKTS_QUEUED
Definition: rte_tm.h:122
@ RTE_TM_STATS_N_BYTES_QUEUED
Definition: rte_tm.h:127
@ RTE_TM_STATS_N_BYTES_YELLOW_DROPPED
Definition: rte_tm.h:114
@ RTE_TM_STATS_N_PKTS_GREEN_DROPPED
Definition: rte_tm.h:102
__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:167
@ RTE_TM_UPDATE_NODE_PARENT_CHANGE_LEVEL
Definition: rte_tm.h:178
@ RTE_TM_UPDATE_NODE_ADD_DELETE
Definition: rte_tm.h:181
@ RTE_TM_UPDATE_NODE_PARENT_KEEP_LEVEL
Definition: rte_tm.h:172
@ RTE_TM_UPDATE_NODE_WFQ_WEIGHT_MODE
Definition: rte_tm.h:187
@ RTE_TM_UPDATE_NODE_SUSPEND_RESUME
Definition: rte_tm.h:184
@ RTE_TM_UPDATE_NODE_STATS
Definition: rte_tm.h:196
@ RTE_TM_UPDATE_NODE_CMAN
Definition: rte_tm.h:193
@ RTE_TM_UPDATE_NODE_N_SP_PRIORITIES
Definition: rte_tm.h:190
int cman_head_drop_supported
Definition: rte_tm.h:411
int mark_ip_ecn_sctp_supported[RTE_COLORS]
Definition: rte_tm.h:455
int shaper_shared_packet_mode_supported
Definition: rte_tm.h:310
int mark_vlan_dei_supported[RTE_COLORS]
Definition: rte_tm.h:449
uint32_t sched_wfq_n_groups_max
Definition: rte_tm.h:368
int non_leaf_nodes_identical
Definition: rte_tm.h:214
int shaper_pkt_length_adjust_min
Definition: rte_tm.h:323
uint32_t sched_n_children_max
Definition: rte_tm.h:335
int mark_ip_dscp_supported[RTE_COLORS]
Definition: rte_tm.h:458
uint64_t stats_mask
Definition: rte_tm.h:468
int sched_wfq_byte_mode_supported
Definition: rte_tm.h:389
uint32_t shaper_private_n_max
Definition: rte_tm.h:233
uint32_t sched_wfq_n_children_per_group_max
Definition: rte_tm.h:355
uint32_t shaper_shared_dual_rate_n_max
Definition: rte_tm.h:293
uint32_t sched_wfq_weight_max
Definition: rte_tm.h:373
uint32_t cman_wred_context_n_max
Definition: rte_tm.h:420
uint64_t shaper_private_rate_max
Definition: rte_tm.h:252
int shaper_private_packet_mode_supported
Definition: rte_tm.h:260
uint32_t shaper_n_max
Definition: rte_tm.h:227
uint32_t shaper_shared_n_nodes_per_shaper_max
Definition: rte_tm.h:279
uint32_t sched_sp_n_priorities_max
Definition: rte_tm.h:345
uint32_t cman_wred_context_private_n_max
Definition: rte_tm.h:427
int leaf_nodes_identical
Definition: rte_tm.h:219
uint32_t cman_wred_context_shared_n_max
Definition: rte_tm.h:432
uint64_t shaper_private_rate_min
Definition: rte_tm.h:247
uint32_t shaper_shared_n_max
Definition: rte_tm.h:274
uint32_t cman_wred_context_shared_n_nodes_per_context_max
Definition: rte_tm.h:437
uint32_t cman_wred_context_shared_n_contexts_per_node_max
Definition: rte_tm.h:446
int shaper_private_byte_mode_supported
Definition: rte_tm.h:268
uint32_t shaper_shared_n_shapers_per_node_max
Definition: rte_tm.h:287
int mark_ip_ecn_tcp_supported[RTE_COLORS]
Definition: rte_tm.h:452
int shaper_pkt_length_adjust_max
Definition: rte_tm.h:328
uint64_t shaper_shared_rate_min
Definition: rte_tm.h:298
int shaper_shared_byte_mode_supported
Definition: rte_tm.h:317
int sched_wfq_packet_mode_supported
Definition: rte_tm.h:381
int cman_wred_packet_mode_supported
Definition: rte_tm.h:397
uint32_t n_nodes_max
Definition: rte_tm.h:204
int shaper_private_dual_rate_n_max
Definition: rte_tm.h:242
uint64_t dynamic_update_mask
Definition: rte_tm.h:463
int cman_wred_byte_mode_supported
Definition: rte_tm.h:405
uint32_t n_levels_max
Definition: rte_tm.h:209
uint64_t shaper_shared_rate_max
Definition: rte_tm.h:303
const char * message
Definition: rte_tm.h:1227
enum rte_tm_error_type type
Definition: rte_tm.h:1225
const void * cause
Definition: rte_tm.h:1226
int shaper_shared_packet_mode_supported
Definition: rte_tm.h:570
uint32_t sched_wfq_n_groups_max
Definition: rte_tm.h:629
uint32_t sched_n_children_max
Definition: rte_tm.h:585
uint32_t sched_wfq_n_children_per_group_max
Definition: rte_tm.h:610
uint32_t sched_wfq_weight_max
Definition: rte_tm.h:636
struct rte_tm_level_capabilities::@189::@191 nonleaf
int shaper_private_dual_rate_supported
Definition: rte_tm.h:521
uint32_t n_nodes_nonleaf_max
Definition: rte_tm.h:482
uint64_t shaper_private_rate_max
Definition: rte_tm.h:535
int shaper_private_packet_mode_supported
Definition: rte_tm.h:544
uint32_t sched_sp_n_priorities_max
Definition: rte_tm.h:598
uint32_t cman_wred_context_shared_n_max
Definition: rte_tm.h:783
uint64_t shaper_private_rate_min
Definition: rte_tm.h:528
uint32_t shaper_shared_n_max
Definition: rte_tm.h:563
int cman_wred_context_private_supported
Definition: rte_tm.h:772
uint32_t n_nodes_leaf_max
Definition: rte_tm.h:488
int shaper_private_byte_mode_supported
Definition: rte_tm.h:553
int shaper_shared_byte_mode_supported
Definition: rte_tm.h:577
int sched_wfq_packet_mode_supported
Definition: rte_tm.h:646
int cman_wred_packet_mode_supported
Definition: rte_tm.h:748
struct rte_tm_level_capabilities::@189::@192 leaf
int shaper_shared_packet_mode_supported
Definition: rte_tm.h:845
uint32_t sched_wfq_n_groups_max
Definition: rte_tm.h:889
uint32_t sched_n_children_max
Definition: rte_tm.h:858
int sched_wfq_byte_mode_supported
Definition: rte_tm.h:911
uint32_t sched_wfq_n_children_per_group_max
Definition: rte_tm.h:875
uint32_t sched_wfq_weight_max
Definition: rte_tm.h:895
int shaper_private_dual_rate_supported
Definition: rte_tm.h:807
uint64_t shaper_private_rate_max
Definition: rte_tm.h:819
int shaper_private_packet_mode_supported
Definition: rte_tm.h:826
struct rte_tm_node_capabilities::@193::@196 leaf
uint32_t sched_sp_n_priorities_max
Definition: rte_tm.h:866
uint32_t cman_wred_context_shared_n_max
Definition: rte_tm.h:934
uint64_t shaper_private_rate_min
Definition: rte_tm.h:813
uint32_t shaper_shared_n_max
Definition: rte_tm.h:839
int cman_wred_context_private_supported
Definition: rte_tm.h:927
int shaper_private_byte_mode_supported
Definition: rte_tm.h:833
struct rte_tm_node_capabilities::@193::@195 nonleaf
int shaper_shared_byte_mode_supported
Definition: rte_tm.h:851
int sched_wfq_packet_mode_supported
Definition: rte_tm.h:903
int cman_wred_packet_mode_supported
Definition: rte_tm.h:918
int cman_wred_byte_mode_supported
Definition: rte_tm.h:921
uint32_t n_shared_wred_contexts
Definition: rte_tm.h:1156
uint32_t wred_profile_id
Definition: rte_tm.h:1142
struct rte_tm_node_params::@197::@199 nonleaf
uint64_t stats_mask
Definition: rte_tm.h:1167
uint32_t n_sp_priorities
Definition: rte_tm.h:1125
uint32_t shaper_profile_id
Definition: rte_tm.h:1102
uint32_t * shared_wred_context_id
Definition: rte_tm.h:1149
uint32_t * shared_shaper_id
Definition: rte_tm.h:1105
int * wfq_weight_mode
Definition: rte_tm.h:1122
uint32_t n_shared_shapers
Definition: rte_tm.h:1108
struct rte_tm_node_params::@197::@200 leaf
enum rte_tm_cman_mode cman
Definition: rte_tm.h:1131
struct rte_tm_node_params::@197::@200::@201 wred
struct rte_tm_node_stats::@188 leaf
uint64_t n_pkts_dropped[RTE_COLORS]
Definition: rte_tm.h:145
uint64_t n_bytes
Definition: rte_tm.h:138
uint64_t n_pkts
Definition: rte_tm.h:135
uint64_t n_bytes_queued
Definition: rte_tm.h:160
uint64_t n_bytes_dropped[RTE_COLORS]
Definition: rte_tm.h:150
uint64_t n_pkts_queued
Definition: rte_tm.h:155
uint64_t max_th
Definition: rte_tm.h:974
uint16_t wq_log2
Definition: rte_tm.h:982
uint16_t maxp_inv
Definition: rte_tm.h:979
uint64_t min_th
Definition: rte_tm.h:971
struct rte_tm_token_bucket committed
Definition: rte_tm.h:1046
struct rte_tm_token_bucket peak
Definition: rte_tm.h:1049
int32_t pkt_length_adjust
Definition: rte_tm.h:1057
struct rte_tm_red_params red_params[RTE_COLORS]
Definition: rte_tm.h:1001