DPDK 25.11.3
Loading...
Searching...
No Matches
rte_eth_conf Struct Reference

#include <rte_ethdev.h>

Data Fields

uint32_t link_speeds
struct rte_eth_rxmode rxmode
struct rte_eth_txmode txmode
uint32_t lpbk_mode
struct  rx_adv_conf
union  tx_adv_conf
uint32_t dcb_capability_en
struct rte_eth_intr_conf intr_conf

Detailed Description

Field Documentation

◆ link_speeds

uint32_t link_speeds

bitmap of RTE_ETH_LINK_SPEED_XXX of speeds to be used. RTE_ETH_LINK_SPEED_FIXED disables link autonegotiation, and a unique speed shall be set. Otherwise, the bitmap defines the set of speeds to be advertised. If the special value RTE_ETH_LINK_SPEED_AUTONEG (0) is used, all speeds supported are advertised.

Examples
examples/l3fwd-power/main.c, and examples/l3fwd/main.c.

Definition at line 1543 of file rte_ethdev.h.

◆ rxmode

◆ txmode

◆ lpbk_mode

uint32_t lpbk_mode

Loopback operation mode. By default the value is 0, meaning the loopback mode is disabled. Read the datasheet of given Ethernet controller for details. The possible values of this field are defined in implementation of each driver.

Definition at line 1552 of file rte_ethdev.h.

◆ rx_adv_conf

◆ tx_adv_conf

Port Tx DCB configuration (union).

Examples
examples/vmdq_dcb/main.c.

◆ dcb_capability_en

uint32_t dcb_capability_en

Currently,Priority Flow Control(PFC) are supported,if DCB with PFC is needed,and the variable must be set RTE_ETH_DCB_PFC_SUPPORT.

Definition at line 1576 of file rte_ethdev.h.

◆ intr_conf

struct rte_eth_intr_conf intr_conf

Interrupt mode configuration.

Examples
examples/l3fwd-power/main.c.

Definition at line 1577 of file rte_ethdev.h.


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