DPDK  22.07.0
Data Fields
rte_event Struct Reference

#include <rte_eventdev.h>

Data Fields

union {
   struct {
      uint32_t   flow_id:20
 
      uint32_t   sub_event_type:8
 
      uint32_t   event_type:4
 
      uint8_t   op:2
 
      uint8_t   rsvd:4
 
      uint8_t   sched_type:2
 
      uint8_t   queue_id
 
      uint8_t   priority
 
      uint8_t   impl_opaque
 
   } 
 
}; 
 
union {
   uint64_t   u64
 
   void *   event_ptr
 
   struct rte_mbuf *   mbuf
 
   struct rte_event_vector *   vec
 
}; 
 

Detailed Description

The generic rte_event structure to hold the event attributes for dequeue and enqueue operation

Examples:
examples/eventdev_pipeline/pipeline_worker_generic.c, examples/eventdev_pipeline/pipeline_worker_tx.c, examples/ipsec-secgw/ipsec_worker.c, examples/l2fwd-event/l2fwd_common.c, examples/l2fwd-event/l2fwd_event.c, examples/l3fwd/l3fwd_em.c, examples/l3fwd/l3fwd_event.c, examples/l3fwd/l3fwd_fib.c, and examples/l3fwd/l3fwd_lpm.c.

Definition at line 1261 of file rte_eventdev.h.

Field Documentation

◆ flow_id

uint32_t flow_id

Targeted flow identifier for the enqueue and dequeue operation. The value must be in the range of [0, nb_event_queue_flows - 1] which previously supplied to rte_event_dev_configure().

Examples:
examples/eventdev_pipeline/pipeline_worker_generic.c.

Definition at line 1267 of file rte_eventdev.h.

◆ sub_event_type

uint32_t sub_event_type

Sub-event types based on the event source.

See also
RTE_EVENT_TYPE_CPU
Examples:
examples/eventdev_pipeline/pipeline_worker_tx.c.

Definition at line 1274 of file rte_eventdev.h.

◆ event_type

uint32_t event_type

◆ op

uint8_t op

The type of event enqueue operation - new/forward/ etc.This field is not preserved across an instance and is undefined on dequeue.

See also
RTE_EVENT_OP_NEW, (RTE_EVENT_OP_*)
Examples:
examples/eventdev_pipeline/pipeline_worker_generic.c, examples/eventdev_pipeline/pipeline_worker_tx.c, examples/ipsec-secgw/ipsec_worker.c, examples/l2fwd-event/l2fwd_event.c, examples/l3fwd/l3fwd_em.c, examples/l3fwd/l3fwd_fib.c, and examples/l3fwd/l3fwd_lpm.c.

Definition at line 1282 of file rte_eventdev.h.

◆ rsvd

uint8_t rsvd

Reserved for future use

Definition at line 1288 of file rte_eventdev.h.

◆ sched_type

uint8_t sched_type

◆ queue_id

uint8_t queue_id

◆ priority

uint8_t priority

Event priority relative to other events in the event queue. The requested priority should in the range of [RTE_EVENT_DEV_PRIORITY_HIGHEST, RTE_EVENT_DEV_PRIORITY_LOWEST]. The implementation shall normalize the requested priority to supported priority value. Valid when the device has RTE_EVENT_DEV_CAP_EVENT_QOS capability.

Examples:
examples/l2fwd-event/l2fwd_event_generic.c, examples/l2fwd-event/l2fwd_event_internal_port.c, examples/l3fwd/l3fwd_event_generic.c, and examples/l3fwd/l3fwd_event_internal_port.c.

Definition at line 1302 of file rte_eventdev.h.

◆ impl_opaque

uint8_t impl_opaque

Implementation specific opaque value. An implementation may use this field to hold implementation specific value to share between dequeue and enqueue operation. The application should not modify this field.

Definition at line 1312 of file rte_eventdev.h.

◆ @213

union { ... }

WORD0

◆ u64

uint64_t u64

Opaque 64-bit value

Examples:
examples/eventdev_pipeline/pipeline_worker_tx.c, and examples/ipsec-secgw/ipsec_worker.c.

Definition at line 1323 of file rte_eventdev.h.

◆ event_ptr

void* event_ptr

Opaque event pointer

Definition at line 1325 of file rte_eventdev.h.

◆ mbuf

struct rte_mbuf* mbuf

◆ vec

struct rte_event_vector* vec

◆ @215

union { ... }

WORD1


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