DPDK 23.11.6
Macros | Enumerations | Functions
rte_pmd_dlb2.h File Reference

DLB PMD-specific functions. More...

#include <stdint.h>
#include <rte_compat.h>

Go to the source code of this file.

Macros

#define RTE_PMD_DLB2_GET_QID_DEPTH(x)   ((x)->rsvd & 0x3)
 

Enumerations

enum  rte_pmd_dlb2_token_pop_mode
 

Functions

__rte_experimental int rte_pmd_dlb2_set_token_pop_mode (uint8_t dev_id, uint8_t port_id, enum rte_pmd_dlb2_token_pop_mode mode)
 

Detailed Description

DLB PMD-specific functions.

Definition in file rte_pmd_dlb2.h.

Macro Definition Documentation

◆ RTE_PMD_DLB2_GET_QID_DEPTH

#define RTE_PMD_DLB2_GET_QID_DEPTH (   x)    ((x)->rsvd & 0x3)

Macro function to get QID depth of rte_event metadata. Currently lower 2 bits of 'rsvd' field are used to store QID depth.

Definition at line 26 of file rte_pmd_dlb2.h.

Enumeration Type Documentation

◆ rte_pmd_dlb2_token_pop_mode

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

Selects the token pop mode for a DLB2 port.

Definition at line 34 of file rte_pmd_dlb2.h.

Function Documentation

◆ rte_pmd_dlb2_set_token_pop_mode()

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

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

Parameters
dev_idThe identifier of the event device.
port_idThe identifier of the event port.
modeThe token pop mode.
Returns
  • 0: Success
  • EINVAL: Invalid parameter dev_id, port_id, or mode
  • EINVAL: The DLB2 device is not configured or is already running, or the port is already setup