DPDK 25.03.0-rc0
|
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) |
#define | RTE_PMD_DLB2_SET_QID_DEPTH(x, v) ((x)->rsvd = ((x)->rsvd & ~0x3) | (v & 0x3)) |
#define | RTE_PMD_DLB2_GET_QE_WEIGHT(x) (((x)->rsvd >> 2) & 0x3) |
#define | RTE_PMD_DLB2_SET_QE_WEIGHT(x, v) ((x)->rsvd = ((x)->rsvd & 0x3) | ((v & 0x3) << 2)) |
Enumerations | |
enum | dlb2_token_pop_mode |
Functions | |
__rte_experimental int | rte_pmd_dlb2_set_token_pop_mode (uint8_t dev_id, uint8_t port_id, enum dlb2_token_pop_mode mode) |
DLB PMD-specific functions.
Definition in file rte_pmd_dlb2.h.
#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.
#define RTE_PMD_DLB2_SET_QID_DEPTH | ( | x, | |
v | |||
) | ((x)->rsvd = ((x)->rsvd & ~0x3) | (v & 0x3)) |
Macro function to set QID depth of rte_event metadata. Currently lower 2 bits of 'rsvd' field are used to store QID depth.
Definition at line 32 of file rte_pmd_dlb2.h.
#define RTE_PMD_DLB2_GET_QE_WEIGHT | ( | x | ) | (((x)->rsvd >> 2) & 0x3) |
Macro function to get QE weight from rte_event metadata. Currently upper 2 bits of 'rsvd' field are used to store QE weight.
Definition at line 38 of file rte_pmd_dlb2.h.
#define RTE_PMD_DLB2_SET_QE_WEIGHT | ( | x, | |
v | |||
) | ((x)->rsvd = ((x)->rsvd & 0x3) | ((v & 0x3) << 2)) |
Macro function to set QE weight from rte_event metadata. Currently upper 2 bits of 'rsvd' field are used to store QE weight.
Definition at line 44 of file rte_pmd_dlb2.h.
enum dlb2_token_pop_mode |
Selects the token pop mode for a DLB2 port.
Definition at line 52 of file rte_pmd_dlb2.h.
__rte_experimental int rte_pmd_dlb2_set_token_pop_mode | ( | uint8_t | dev_id, |
uint8_t | port_id, | ||
enum dlb2_token_pop_mode | mode | ||
) |
Configure the token pop mode for a DLB2 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().
dev_id | The identifier of the event device. |
port_id | The identifier of the event port. |
mode | The token pop mode. |