DPDK  2.2.0
Data Fields
rte_eth_conf Struct Reference

#include <rte_ethdev.h>

Data Fields

uint16_t link_speed
uint16_t link_duplex
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_fdir_conf fdir_conf
struct rte_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.

Examples:
bond/main.c, distributor/main.c, dpdk_qat/main.c, ethtool/ethtool-app/main.c, exception_path/main.c, ip_fragmentation/main.c, ip_reassembly/main.c, ipv4_multicast/main.c, kni/main.c, l2fwd-crypto/main.c, l2fwd-ivshmem/host/host.c, l2fwd-jobstats/main.c, l2fwd-keepalive/main.c, l2fwd/main.c, l3fwd-acl/main.c, l3fwd-power/main.c, l3fwd-vf/main.c, l3fwd/main.c, link_status_interrupt/main.c, load_balancer/init.c, multi_process/client_server_mp/mp_server/init.c, multi_process/l2fwd_fork/main.c, multi_process/symmetric_mp/main.c, netmap_compat/bridge/bridge.c, netmap_compat/lib/compat_netmap.c, packet_ordering/main.c, performance-thread/l3fwd-thread/main.c, ptpclient/ptpclient.c, qos_meter/main.c, qos_sched/init.c, quota_watermark/qw/init.c, rxtx_callbacks/main.c, skeleton/basicfwd.c, tep_termination/vxlan_setup.c, vhost/main.c, vhost_xen/main.c, vmdq/main.c, and vmdq_dcb/main.c.

Definition at line 762 of file rte_ethdev.h.

Field Documentation

uint16_t link_speed

ETH_LINK_SPEED_10[0|00|000], or 0 for autonegotation

Definition at line 764 of file rte_ethdev.h.

uint16_t link_duplex

ETH_LINK_[HALF_DUPLEX|FULL_DUPLEX], or 0 for autonegotation

Definition at line 766 of file rte_ethdev.h.

struct rte_eth_rxmode rxmode
struct rte_eth_txmode txmode

Port TX configuration.

Definition at line 768 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 769 of file rte_ethdev.h.

struct rte_eth_rss_conf rss_conf

Port RSS configuration

Definition at line 775 of file rte_ethdev.h.

struct rte_eth_vmdq_dcb_conf vmdq_dcb_conf

Port vmdq+dcb configuration.

Examples:
vmdq_dcb/main.c.

Definition at line 776 of file rte_ethdev.h.

struct rte_eth_dcb_rx_conf dcb_rx_conf

Port dcb RX configuration.

Definition at line 778 of file rte_ethdev.h.

struct rte_eth_vmdq_rx_conf vmdq_rx_conf

Port vmdq RX configuration.

Examples:
vhost/main.c, vhost_xen/main.c, and vmdq/main.c.

Definition at line 780 of file rte_ethdev.h.

struct { ... } rx_adv_conf

Port RX filtering configuration (union).

Examples:
vhost/main.c, vhost_xen/main.c, vmdq/main.c, and vmdq_dcb/main.c.
struct rte_eth_vmdq_dcb_tx_conf vmdq_dcb_tx_conf

Port vmdq+dcb TX configuration.

Definition at line 784 of file rte_ethdev.h.

struct rte_eth_dcb_tx_conf dcb_tx_conf

Port dcb TX configuration.

Definition at line 786 of file rte_ethdev.h.

struct rte_eth_vmdq_tx_conf vmdq_tx_conf

Port vmdq TX configuration.

Definition at line 788 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 ETH_DCB_PFC_SUPPORT.

Definition at line 793 of file rte_ethdev.h.

struct rte_fdir_conf fdir_conf

FDIR configuration.

Definition at line 794 of file rte_ethdev.h.

struct rte_intr_conf intr_conf

Interrupt mode configuration.

Definition at line 795 of file rte_ethdev.h.


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