---
name: "rte_eth_conf"
section: "3"
platform: "linux"
package: "dpdk-doc"
version: "24.11.4-0+deb13u1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/rte_eth_conf"
---

# rte\_eth\_conf(3)

## NAME

rte\_eth\_conf

## SYNOPSIS

`#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 {\
    struct **rte\_eth\_rss\_conf** **rss\_conf**\
    struct **rte\_eth\_vmdq\_dcb\_conf** **vmdq\_dcb\_conf**\
    struct rte\_eth\_dcb\_rx\_conf **dcb\_rx\_conf**\
    struct **rte\_eth\_vmdq\_rx\_conf** **vmdq\_rx\_conf**\
 } **rx\_adv\_conf**\
 union {\
    struct rte\_eth\_vmdq\_dcb\_tx\_conf **vmdq\_dcb\_tx\_conf**\
    struct rte\_eth\_dcb\_tx\_conf **dcb\_tx\_conf**\
    struct rte\_eth\_vmdq\_tx\_conf **vmdq\_tx\_conf**\
 } **tx\_adv\_conf**\
 uint32\_t **dcb\_capability\_en**\
 struct **rte\_eth\_intr\_conf** **intr\_conf**\

## Detailed Description

A structure used to configure an Ethernet port. Depending upon the Rx multi-queue mode, extra advanced configuration settings may be needed.

Definition at line **1511** of file **rte\_ethdev.h**.

## Field Documentation

### 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.

Definition at line **1512** of file **rte\_ethdev.h**.

### struct rte\_eth\_rxmode rxmode

Port Rx configuration.

Definition at line **1519** of file **rte\_ethdev.h**.

### struct rte\_eth\_txmode txmode

Port Tx configuration.

Definition at line **1520** of file **rte\_ethdev.h**.

### 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 **1521** of file **rte\_ethdev.h**.

### struct rte\_eth\_rss\_conf rss\_conf

Port RSS configuration

Definition at line **1527** of file **rte\_ethdev.h**.

### struct rte\_eth\_vmdq\_dcb\_conf vmdq\_dcb\_conf

Port VMDq+DCB configuration.

Definition at line **1529** of file **rte\_ethdev.h**.

### struct rte\_eth\_dcb\_rx\_conf dcb\_rx\_conf

Port DCB Rx configuration.

Definition at line **1531** of file **rte\_ethdev.h**.

### struct rte\_eth\_vmdq\_rx\_conf vmdq\_rx\_conf

Port VMDq Rx configuration.

Definition at line **1533** of file **rte\_ethdev.h**.

### struct { ... } rx\_adv\_conf

Port Rx filtering configuration.

### struct rte\_eth\_vmdq\_dcb\_tx\_conf vmdq\_dcb\_tx\_conf

Port VMDq+DCB Tx configuration.

Definition at line **1537** of file **rte\_ethdev.h**.

### struct rte\_eth\_dcb\_tx\_conf dcb\_tx\_conf

Port DCB Tx configuration.

Definition at line **1539** of file **rte\_ethdev.h**.

### struct rte\_eth\_vmdq\_tx\_conf vmdq\_tx\_conf

Port VMDq Tx configuration.

Definition at line **1541** of file **rte\_ethdev.h**.

### union { ... } tx\_adv\_conf

Port Tx DCB configuration (union).

### 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 **1545** of file **rte\_ethdev.h**.

### struct rte\_eth\_intr\_conf intr\_conf

Interrupt mode configuration.

Definition at line **1546** of file **rte\_ethdev.h**.

## Author

Generated automatically by Doxygen for DPDK from the source code.
