API Reference Manual  1.45.0
api/abi-default/traffic_mngr.h
Go to the documentation of this file.
1 /* SPDX-License-Identifier: BSD-3-Clause
2  * Copyright (c) 2015-2018 Linaro Limited
3  * Copyright (c) 2022 Marvell
4  */
5 
12 #ifndef ODP_ABI_TRAFFIC_MNGR_H_
13 #define ODP_ABI_TRAFFIC_MNGR_H_
14 
15 #ifdef __cplusplus
16 extern "C" {
17 #endif
18 
19 #include <odp/api/std_types.h>
20 
30 #define ODP_TM_MAX_NUM_SYSTEMS 8
31 
36 #define ODP_TM_MAX_PRIORITIES 16
37 
43 #define ODP_TM_MAX_LEVELS 8
44 
48 #define ODP_TM_MIN_SCHED_WEIGHT 1U
49 
54 #define ODP_TM_MAX_SCHED_WEIGHT 255U
55 
59 #define ODP_TM_MAX_TM_QUEUES (4 * 1024)
60 
64 #define ODP_TM_MAX_NUM_OUTPUTS 256
65 
69 #define ODP_TM_MAX_NUM_TM_NODES (4 * 1024)
70 
75 #define ODP_TM_MAX_TM_NODE_FANIN (4 * 1024)
76 
80 #define ODP_TM_INVALID_PRIORITY 255
81 
82 #define ODP_TM_NAME_LEN 32
83 
91 typedef uint16_t odp_tm_percent_t;
92 
96 typedef uint64_t odp_tm_handle_t;
97 
104 
109 
114 
120 
126 
133 
139 
143 #define ODP_TM_INVALID 0
144 
150 #define ODP_TM_ROOT ((odp_tm_handle_t)-1)
151 
156 #ifdef __cplusplus
157 }
158 #endif
159 
160 #endif
Standard C language types and definitions for ODP.
odp_tm_handle_t odp_tm_t
Each odp_tm_t value represents a specific TM system.
odp_tm_handle_t odp_tm_wred_t
Each odp_tm_wred_t value is an opaque ODP handle representing a specific WRED profile usable across a...
odp_tm_handle_t odp_tm_node_t
Each odp_tm_node_t value is an opaque ODP handle representing a specific tm_node within a specific TM...
odp_tm_handle_t odp_tm_queue_t
Each odp_tm_queue_t value is an opaque ODP handle representing a specific tm_queue within a specific ...
odp_tm_handle_t odp_tm_sched_t
Each odp_tm_sched_t value is an opaque ODP handle representing a specific tm_node scheduler profile u...
uint64_t odp_tm_handle_t
The odp_tm_handle_t type is a generic type that can stand for any of the other ODP_TM handle types.
uint16_t odp_tm_percent_t
The odp_tm_percent_t type is used when specifying fields that are percentages.
odp_tm_handle_t odp_tm_threshold_t
Each odp_tm_threshold_t value is an opaque ODP handle representing a specific queue threshold profile...
odp_tm_handle_t odp_tm_shaper_t
Each odp_tm_shaper_t value is an opaque ODP handle representing a specific shaper profile usable acro...