DPDK  21.02.0
Enumerations | Functions
rte_pmd_dlb.h File Reference

DLB PMD-specific functions. More...

#include <stdint.h>

Go to the source code of this file.

Enumerations

enum  dlb_token_pop_mode
 

Functions

__rte_experimental int rte_pmd_dlb_set_token_pop_mode (uint8_t dev_id, uint8_t port_id, enum dlb_token_pop_mode mode)
 

Detailed Description

DLB PMD-specific functions.

Definition in file rte_pmd_dlb.h.

Enumeration Type Documentation

Warning
EXPERIMENTAL: this API may change, or be removed, without prior notice

Selects the token pop mode for an DLB port.

Definition at line 27 of file rte_pmd_dlb.h.

Function Documentation

__rte_experimental int rte_pmd_dlb_set_token_pop_mode ( uint8_t  dev_id,
uint8_t  port_id,
enum dlb_token_pop_mode  mode 
)
Warning
EXPERIMENTAL: this API may change, or be removed, without prior notice

Configure the token pop mode for an DLB port. By default, all ports use AUTO_POP. This function must be called before calling rte_event_port_setup() for the port, but after calling rte_event_dev_configure().

Note
The defer_sched vdev arg, which configures all load-balanced ports with dequeue_depth == 1 for DEFERRED_POP mode, takes precedence over this function.
Parameters
dev_idThe identifier of the event device.
port_idThe identifier of the event port.
modeThe token pop mode.
Returns
  • 0: Success
  • EINVAL: Invalid dev_id, port_id, or mode
  • EINVAL: The DLB is not configured, is already running, or the port is already setup