DPDK  18.05.1
Data Fields
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 {
   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:
examples/bbdev_app/main.c, examples/bond/main.c, examples/distributor/main.c, examples/ethtool/ethtool-app/main.c, examples/eventdev_pipeline/main.c, examples/exception_path/main.c, examples/flow_classify/flow_classify.c, examples/flow_filtering/main.c, examples/ip_fragmentation/main.c, examples/ip_pipeline/link.c, examples/ip_reassembly/main.c, examples/ipsec-secgw/ipsec-secgw.c, examples/ipv4_multicast/main.c, examples/kni/main.c, examples/l2fwd-cat/l2fwd-cat.c, examples/l2fwd-crypto/main.c, examples/l2fwd-jobstats/main.c, examples/l2fwd-keepalive/main.c, examples/l2fwd/main.c, examples/l3fwd-acl/main.c, examples/l3fwd-power/main.c, examples/l3fwd-vf/main.c, examples/l3fwd/main.c, examples/link_status_interrupt/main.c, examples/load_balancer/init.c, examples/multi_process/client_server_mp/mp_server/init.c, examples/multi_process/l2fwd_fork/main.c, examples/multi_process/symmetric_mp/main.c, examples/netmap_compat/bridge/bridge.c, examples/netmap_compat/lib/compat_netmap.c, examples/packet_ordering/main.c, examples/performance-thread/l3fwd-thread/main.c, examples/ptpclient/ptpclient.c, examples/qos_meter/main.c, examples/qos_sched/init.c, examples/quota_watermark/qw/init.c, examples/rxtx_callbacks/main.c, examples/server_node_efd/server/init.c, examples/skeleton/basicfwd.c, examples/tep_termination/vxlan_setup.c, examples/vhost/main.c, examples/vm_power_manager/main.c, examples/vmdq/main.c, and examples/vmdq_dcb/main.c.

Definition at line 878 of file rte_ethdev.h.

Field Documentation

uint32_t link_speeds

bitmap of ETH_LINK_SPEED_XXX of speeds to be used. 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 ETH_LINK_SPEED_AUTONEG (0) is used, all speeds supported are advertised.

Examples:
examples/ip_pipeline/link.c.

Definition at line 879 of file rte_ethdev.h.

struct rte_eth_rxmode rxmode
struct rte_eth_txmode txmode
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 888 of file rte_ethdev.h.

struct rte_eth_rss_conf rss_conf

Port RSS configuration

Examples:
examples/vmdq_dcb/main.c.

Definition at line 894 of file rte_ethdev.h.

struct rte_eth_vmdq_dcb_conf vmdq_dcb_conf

Port vmdq+dcb configuration.

Examples:
examples/vmdq_dcb/main.c.

Definition at line 895 of file rte_ethdev.h.

struct rte_eth_dcb_rx_conf dcb_rx_conf

Port dcb RX configuration.

Examples:
examples/vmdq_dcb/main.c.

Definition at line 897 of file rte_ethdev.h.

struct rte_eth_vmdq_rx_conf vmdq_rx_conf

Port vmdq RX configuration.

Examples:
examples/vhost/main.c, examples/vmdq/main.c, and examples/vmdq_dcb/main.c.

Definition at line 899 of file rte_ethdev.h.

struct { ... } rx_adv_conf
struct rte_eth_vmdq_dcb_tx_conf vmdq_dcb_tx_conf

Port vmdq+dcb TX configuration.

Examples:
examples/vmdq_dcb/main.c.

Definition at line 903 of file rte_ethdev.h.

struct rte_eth_dcb_tx_conf dcb_tx_conf

Port dcb TX configuration.

Definition at line 905 of file rte_ethdev.h.

struct rte_eth_vmdq_tx_conf vmdq_tx_conf

Port vmdq TX configuration.

Definition at line 907 of file rte_ethdev.h.

union { ... } tx_adv_conf

Port TX DCB configuration (union).

Examples:
examples/vmdq_dcb/main.c.
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 912 of file rte_ethdev.h.

struct rte_fdir_conf fdir_conf

FDIR configuration.

Definition at line 913 of file rte_ethdev.h.

struct rte_intr_conf intr_conf

Interrupt mode configuration.

Examples:
examples/l3fwd-power/main.c.

Definition at line 914 of file rte_ethdev.h.


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