API Reference Manual  1.47.0
api/spec/queue_types.h
Go to the documentation of this file.
1 /* SPDX-License-Identifier: BSD-3-Clause
2  * Copyright (c) 2018 Linaro Limited
3  * Copyright (c) 2024-2025 Nokia
4  */
5 
12 #ifndef ODP_API_SPEC_QUEUE_TYPES_H_
13 #define ODP_API_SPEC_QUEUE_TYPES_H_
14 #include <odp/visibility_begin.h>
15 
17 #include <odp/api/schedule_types.h>
18 
19 #ifdef __cplusplus
20 extern "C" {
21 #endif
22 
45 typedef enum odp_queue_type_t {
51 
58 
67 
69 
73 typedef enum odp_queue_op_mode_t {
80 
88 
98 
100 
129 typedef enum odp_nonblocking_t {
134 
140 
146 
148 
165 typedef enum odp_queue_order_t {
171 
177 
179 
183 typedef struct odp_queue_capability_t {
187  uint32_t max_queues;
188 
190  struct {
193  uint32_t max_num;
194 
199  uint32_t max_size;
200 
204  struct {
207  uint32_t max_num;
208 
211  uint32_t max_size;
212 
214 
218  struct {
221  uint32_t max_num;
222 
225  uint32_t max_size;
226 
228 
231 
232  } plain;
233 
235 
239 typedef struct odp_queue_param_t {
245 
252 
265 
271 
277 
284 
292  void *context;
293 
299  uint32_t context_len;
300 
307  uint32_t size;
308 
328  uint32_t num_aggr;
329 
338 
340 
345 typedef struct odp_queue_info_t {
346  const char *name;
349 
353 typedef struct odp_aggr_enq_param_t {
367  uint8_t start_of_vector :1;
368 
380  uint8_t end_of_vector :1;
381 
383 
394 typedef struct odp_aggr_enq_profile_t {
396  enum {
399 
405 
411 
414  } type;
415 
422  uintptr_t param;
424 
429 #ifdef __cplusplus
430 }
431 #endif
432 
433 #include <odp/visibility_end.h>
434 #endif
ODP event vector API type definitions.
ODP schedule.
struct odp_aggr_enq_param_t odp_aggr_enq_param_t
Event aggregator enqueuing parameters.
odp_nonblocking_t
Non-blocking level.
struct odp_queue_info_t odp_queue_info_t
Queue information Retrieve information about a queue with odp_queue_info()
struct odp_aggr_enq_profile_t odp_aggr_enq_profile_t
Event aggregator enqueuing profile.
odp_queue_type_t
Queue type.
struct odp_queue_param_t odp_queue_param_t
ODP Queue parameters.
odp_queue_op_mode_t
Queue operation mode.
odp_queue_order_t
Original event order maintenance options.
struct odp_queue_capability_t odp_queue_capability_t
Queue capabilities.
@ ODP_NONBLOCKING_WF
Non-blocking and wait-free implementation.
@ ODP_BLOCKING
Blocking implementation.
@ ODP_NONBLOCKING_LF
Non-blocking and lock-free implementation.
@ ODP_QUEUE_TYPE_SCHED
Scheduled queue.
@ ODP_QUEUE_TYPE_PLAIN
Plain queue.
@ ODP_QUEUE_TYPE_AGGR
Aggregator queue.
@ ODP_QUEUE_OP_MT
Multithread safe operation.
@ ODP_QUEUE_OP_DISABLED
Disabled.
@ ODP_QUEUE_OP_MT_UNSAFE
Not multithread safe operation.
@ ODP_QUEUE_ORDER_KEEP
Keep original event order.
@ ODP_QUEUE_ORDER_IGNORE
Ignore original event order.
Event aggregator enqueuing parameters.
uint8_t end_of_vector
The event being enqueued is the last event of related events.
uint8_t start_of_vector
The event being enqueued is the first event of related events.
Event aggregator enqueuing profile.
@ ODP_AEP_TYPE_NONE
Default enqueuing behaviour with no hints being passed.
@ ODP_AEP_TYPE_IPV4_FRAG
Try to get fragments of the same IPv4 packet into the same vector by enqueuing the first and last fra...
@ ODP_AEP_TYPE_CUSTOM
Implementation specific behaviour.
@ ODP_AEP_TYPE_IPV6_FRAG
Try to get fragments of the same IPv6 packet into the same vector by enqueuing the first and last fra...
uintptr_t param
Additional implementation specific parameter for the ODP_AEP_TYPE_CUSTOM profile type.
enum odp_aggr_enq_profile_t::@154 type
Profile type.
Event aggregator capabilities.
Event vector configuration.
uint32_t max_size
Maximum number of events a plain (ODP_BLOCKING) queue can store simultaneously.
uint32_t max_num
Maximum number of plain (ODP_BLOCKING) queues of the default size.
struct odp_queue_capability_t::@151::@153 waitfree
Wait-free (ODP_NONBLOCKING_WF) implementation capabilities.
struct odp_queue_capability_t::@151::@152 lockfree
Lock-free (ODP_NONBLOCKING_LF) implementation capabilities.
uint32_t max_queues
Maximum number of event queues of any type (default size).
struct odp_queue_capability_t::@151 plain
Plain queue capabilities.
odp_event_aggr_capability_t aggr
Event vector generation capabilities.
Queue information Retrieve information about a queue with odp_queue_info()
odp_queue_param_t param
queue parameters
const char * name
queue name
ODP Queue parameters.
odp_schedule_param_t sched
Scheduler parameters.
odp_queue_order_t order
Original event order maintenance.
odp_queue_op_mode_t enq_mode
Enqueue mode.
uint32_t size
Queue size.
odp_queue_type_t type
Queue type.
uint32_t context_len
Queue context data length.
void * context
Queue context pointer.
odp_queue_op_mode_t deq_mode
Dequeue mode.
const odp_event_aggr_config_t * aggr
Event aggregator configuration parameters.
odp_nonblocking_t nonblocking
Non-blocking level.
uint32_t num_aggr
Number of event aggregators.
Scheduler parameters.