API Reference Manual
1.46.0
|
TM queue parameters. More...
#include <traffic_mngr.h>
Data Fields | |
void * | user_context |
The user_context field is an generic pointer that the user can associate with a tm_queue and then get this same value back using the odp_tm_queue_context() call. | |
odp_tm_shaper_t | shaper_profile |
The shaper profile to be associated with this tm_queue. More... | |
odp_tm_threshold_t | threshold_profile |
The threshold profile to be used in setting the max queue fullness for WRED and/or tail drop. More... | |
odp_tm_wred_t | wred_profile [ODP_NUM_PACKET_COLORS] |
The WRED profile(s) to be associated with this tm_queue. More... | |
uint8_t | priority |
The strict priority level assigned to packets in this tm_queue - in other words all packets associated with a given tm_queue MUST have the same single strict priority level and this level must be in the range 0..max_priority. More... | |
odp_bool_t | ordered_enqueue |
Maintain original packet order of the source queue when enqueuing packets to this queue while holding ordered or atomic queue synchronization context. More... | |
TM queue parameters.
Use odp_tm_queue_params_init() to initialize parameters into their default values.
Definition at line 1749 of file api/spec/traffic_mngr.h.
odp_tm_shaper_t odp_tm_queue_params_t::shaper_profile |
The shaper profile to be associated with this tm_queue.
Can be ODP_TM_INVALID and can also be set and changed post-creation via odp_tm_queue_shaper_config(). The default value is ODP_TM_INVALID.
Definition at line 1758 of file api/spec/traffic_mngr.h.
odp_tm_threshold_t odp_tm_queue_params_t::threshold_profile |
The threshold profile to be used in setting the max queue fullness for WRED and/or tail drop.
Can be ODP_TM_INVALID and can also be set and changed post-creation via odp_tm_queue_threshold_config(). The default value is ODP_TM_INVALID.
One can specify the maximum queue limits either as a maximum number of packets in the queue or as a maximum number of bytes in the queue, or if both are specified, then whichever limit is hit first.
Definition at line 1768 of file api/spec/traffic_mngr.h.
odp_tm_wred_t odp_tm_queue_params_t::wred_profile[ODP_NUM_PACKET_COLORS] |
The WRED profile(s) to be associated with this tm_queue.
Any or all array elements can be ODP_TM_INVALID and can also be set and changed post-creation via odp_tm_queue_wred_config(). The default value is ODP_TM_INVALID for every color.
Definition at line 1774 of file api/spec/traffic_mngr.h.
uint8_t odp_tm_queue_params_t::priority |
The strict priority level assigned to packets in this tm_queue - in other words all packets associated with a given tm_queue MUST have the same single strict priority level and this level must be in the range 0..max_priority.
The default value is 0.
Definition at line 1780 of file api/spec/traffic_mngr.h.
odp_bool_t odp_tm_queue_params_t::ordered_enqueue |
Maintain original packet order of the source queue when enqueuing packets to this queue while holding ordered or atomic queue synchronization context.
Default value of this flag is true.
Definition at line 1786 of file api/spec/traffic_mngr.h.