API Reference Manual
1.47.0
|
Schedule configuration. More...
#include <schedule_types.h>
Data Fields | |
uint32_t | num_queues |
Maximum number of scheduled queues to be supported. More... | |
uint32_t | queue_size |
Maximum number of events required to be stored simultaneously in scheduled queue. More... | |
uint32_t | max_flow_id |
Maximum flow ID per queue. More... | |
struct { | |
odp_bool_t all | |
ODP_SCHED_GROUP_ALL. More... | |
odp_bool_t control | |
ODP_SCHED_GROUP_CONTROL. More... | |
odp_bool_t worker | |
ODP_SCHED_GROUP_WORKER. More... | |
odp_schedule_group_param_t all_param | |
Parameters for ODP_SCHED_GROUP_ALL schedule group. | |
odp_schedule_group_param_t control_param | |
Parameters for ODP_SCHED_GROUP_CONTROL schedule group. | |
odp_schedule_group_param_t worker_param | |
Parameters for ODP_SCHED_GROUP_WORKER schedule group. | |
} | sched_group |
Enable/disable predefined scheduling groups. More... | |
Schedule configuration.
Definition at line 483 of file api/spec/schedule_types.h.
uint32_t odp_schedule_config_t::num_queues |
Maximum number of scheduled queues to be supported.
Definition at line 488 of file api/spec/schedule_types.h.
uint32_t odp_schedule_config_t::queue_size |
Maximum number of events required to be stored simultaneously in scheduled queue.
This number must not exceed 'max_queue_size' capability. A value of 0 configures default queue size supported by the implementation.
Definition at line 495 of file api/spec/schedule_types.h.
uint32_t odp_schedule_config_t::max_flow_id |
Maximum flow ID per queue.
This value must not exceed 'max_flow_id' capability. Flow aware mode of scheduling is enabled when the value is greater than 0. The default value is 0.
Application can assign events to specific flows by calling odp_event_flow_id_set() before enqueuing events into a scheduled queue. When in flow aware mode, the event flow id value affects scheduling of the event and synchronization is maintained per flow within each queue.
Depending on the implementation, there may be much more flows supported than queues, as flows are lightweight entities.
Definition at line 514 of file api/spec/schedule_types.h.
odp_bool_t odp_schedule_config_t::all |
ODP_SCHED_GROUP_ALL.
0: Disable group 1: Enable group (default)
Definition at line 527 of file api/spec/schedule_types.h.
odp_bool_t odp_schedule_config_t::control |
ODP_SCHED_GROUP_CONTROL.
0: Disable group 1: Enable group (default)
Definition at line 534 of file api/spec/schedule_types.h.
odp_bool_t odp_schedule_config_t::worker |
ODP_SCHED_GROUP_WORKER.
0: Disable group 1: Enable group (default)
Definition at line 541 of file api/spec/schedule_types.h.
struct { ... } odp_schedule_config_t::sched_group |
Enable/disable predefined scheduling groups.
Application can additionally provide parameters for the to-be-enabled predefined schedule groups.