DPDK  24.03.0-rc4
Data Fields
rte_event_port_conf Struct Reference

#include <rte_eventdev.h>

Data Fields

int32_t new_event_threshold
 
uint16_t dequeue_depth
 
uint16_t enqueue_depth
 
uint32_t event_port_cfg
 

Detailed Description

Event port configuration structure

Examples:
examples/eventdev_pipeline/pipeline_worker_generic.c, examples/eventdev_pipeline/pipeline_worker_tx.c, examples/ipsec-secgw/event_helper.c, 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 1077 of file rte_eventdev.h.

Field Documentation

◆ new_event_threshold

int32_t new_event_threshold

A backpressure threshold for new event enqueues on this port. Use for closed system event dev where event capacity is limited, and cannot exceed the capacity of the event dev.

Configuring ports with different thresholds can make higher priority traffic less likely to be backpressured. For example, a port used to inject NIC Rx packets into the event dev can have a lower threshold so as not to overwhelm the device, while ports used for worker pools can have a higher threshold. This value cannot exceed the rte_event_dev_config::nb_events_limit value which was previously supplied to rte_event_dev_configure().

This should be set to '-1' for open system, i.e when rte_event_dev_info::max_num_events == -1.

Examples:
examples/eventdev_pipeline/pipeline_worker_generic.c, examples/eventdev_pipeline/pipeline_worker_tx.c, examples/ipsec-secgw/event_helper.c, 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 1078 of file rte_eventdev.h.

◆ dequeue_depth

uint16_t dequeue_depth

◆ enqueue_depth

uint16_t enqueue_depth

◆ event_port_cfg

uint32_t event_port_cfg

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