API Reference Manual  1.45.0
odp_tm_sched_params_t Struct Reference

TM scheduler parameters. More...

#include <traffic_mngr.h>

Data Fields

odp_tm_sched_mode_t sched_modes [ODP_TM_MAX_PRIORITIES]
 sched_modes indicates whether weighted scheduling should be used or not - on a priority basis. More...
 
uint32_t sched_weights [ODP_TM_MAX_PRIORITIES]
 In the case that sched_modes for a given strict priority level indicates the use of weighted scheduling, this field supplies the weighting factors. More...
 

Detailed Description

TM scheduler parameters.

Use odp_tm_sched_params_init() to initialize parameters into their default values.

Definition at line 1222 of file api/spec/traffic_mngr.h.

Field Documentation

◆ sched_modes

odp_tm_sched_mode_t odp_tm_sched_params_t::sched_modes[ODP_TM_MAX_PRIORITIES]

sched_modes indicates whether weighted scheduling should be used or not - on a priority basis.

The default value is ODP_TM_BYTE_BASED_WEIGHTS for all priorities

Definition at line 1226 of file api/spec/traffic_mngr.h.

◆ sched_weights

uint32_t odp_tm_sched_params_t::sched_weights[ODP_TM_MAX_PRIORITIES]

In the case that sched_modes for a given strict priority level indicates the use of weighted scheduling, this field supplies the weighting factors.

The weights - when defined - are used such that the (adjusted) frame lengths are divided by these weights (i.e. they are divisors and not multipliers). Consequently a weight of 0 (when sched_mode is ODP_TM_BYTE_BASED_WEIGHTS) is illegal.

Definition at line 1235 of file api/spec/traffic_mngr.h.


The documentation for this struct was generated from the following file: