DPDK  19.05.0
Data Fields
rte_eth_dev_info Struct Reference

#include <rte_ethdev.h>

Data Fields

const char * driver_name
unsigned int if_index
uint16_t min_mtu
uint16_t max_mtu
const uint32_t * dev_flags
uint32_t min_rx_bufsize
uint32_t max_rx_pktlen
uint16_t max_rx_queues
uint16_t max_tx_queues
uint32_t max_mac_addrs
uint16_t max_vfs
uint16_t max_vmdq_pools
uint64_t rx_offload_capa
uint64_t tx_offload_capa
uint64_t rx_queue_offload_capa
uint64_t tx_queue_offload_capa
uint16_t reta_size
uint8_t hash_key_size
uint64_t flow_type_rss_offloads
struct rte_eth_rxconf default_rxconf
struct rte_eth_txconf default_txconf
uint16_t vmdq_queue_base
uint16_t vmdq_queue_num
uint16_t vmdq_pool_base
struct rte_eth_desc_lim rx_desc_lim
struct rte_eth_desc_lim tx_desc_lim
uint32_t speed_capa
uint16_t nb_rx_queues
uint16_t nb_tx_queues
struct rte_eth_dev_portconf default_rxportconf
struct rte_eth_dev_portconf default_txportconf
uint64_t dev_capa
struct rte_eth_switch_info switch_info

Detailed Description

Ethernet device information A structure used to retrieve the contextual information of an Ethernet device, such as the controlling driver of the device, etc...

Examples:
examples/bond/main.c, examples/distributor/main.c, examples/ethtool/ethtool-app/main.c, examples/ethtool/lib/rte_ethtool.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/kni.c, examples/ip_pipeline/link.c, examples/ip_reassembly/main.c, examples/ipsec-secgw/ipsec-secgw.c, examples/ipsec-secgw/sa.c, examples/ipv4_multicast/main.c, examples/kni/main.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/symmetric_mp/main.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 1138 of file rte_ethdev.h.

Field Documentation

const char* driver_name

Generic device information Device Driver name.

Examples:
examples/ethtool/lib/rte_ethtool.c.

Definition at line 1140 of file rte_ethdev.h.

unsigned int if_index

Index to bound host interface, or 0 if none. Use if_indextoname() to translate into an interface name.

Definition at line 1141 of file rte_ethdev.h.

uint16_t min_mtu

Minimum MTU allowed

Definition at line 1143 of file rte_ethdev.h.

uint16_t max_mtu

Maximum MTU allowed

Definition at line 1144 of file rte_ethdev.h.

const uint32_t* dev_flags

Device flags

Definition at line 1145 of file rte_ethdev.h.

uint32_t min_rx_bufsize

Minimum size of RX buffer.

Definition at line 1146 of file rte_ethdev.h.

uint32_t max_rx_pktlen

Maximum configurable length of RX pkt.

Definition at line 1147 of file rte_ethdev.h.

uint16_t max_rx_queues

Maximum number of RX queues.

Definition at line 1148 of file rte_ethdev.h.

uint16_t max_tx_queues

Maximum number of TX queues.

Definition at line 1149 of file rte_ethdev.h.

uint32_t max_mac_addrs

Maximum number of MAC addresses.

Definition at line 1150 of file rte_ethdev.h.

uint16_t max_vfs

Maximum number of hash MAC addresses for MTA and UTA. Maximum number of VFs.

Definition at line 1153 of file rte_ethdev.h.

uint16_t max_vmdq_pools

Maximum number of VMDq pools.

Definition at line 1154 of file rte_ethdev.h.

uint64_t rx_offload_capa

All RX offload capabilities including all per-queue ones

Definition at line 1156 of file rte_ethdev.h.

uint64_t tx_offload_capa

All TX offload capabilities including all per-queue ones

Definition at line 1158 of file rte_ethdev.h.

uint64_t rx_queue_offload_capa

Device per-queue RX offload capabilities.

Definition at line 1160 of file rte_ethdev.h.

uint64_t tx_queue_offload_capa

Device per-queue TX offload capabilities.

Definition at line 1162 of file rte_ethdev.h.

uint16_t reta_size

Device redirection table size, the total number of entries.

Definition at line 1164 of file rte_ethdev.h.

uint8_t hash_key_size

Hash key size in bytes

Definition at line 1165 of file rte_ethdev.h.

uint64_t flow_type_rss_offloads

Bit mask of RSS offloads, the bit offset also means flow type

Definition at line 1167 of file rte_ethdev.h.

struct rte_eth_rxconf default_rxconf

Default RX configuration

Definition at line 1168 of file rte_ethdev.h.

struct rte_eth_txconf default_txconf

Default TX configuration

Definition at line 1169 of file rte_ethdev.h.

uint16_t vmdq_queue_base

First queue ID for VMDQ pools.

Definition at line 1170 of file rte_ethdev.h.

uint16_t vmdq_queue_num

Queue number for VMDQ pools.

Definition at line 1171 of file rte_ethdev.h.

uint16_t vmdq_pool_base

First ID of VMDQ pools.

Definition at line 1172 of file rte_ethdev.h.

struct rte_eth_desc_lim rx_desc_lim

RX descriptors limits

Definition at line 1173 of file rte_ethdev.h.

struct rte_eth_desc_lim tx_desc_lim

TX descriptors limits

Definition at line 1174 of file rte_ethdev.h.

uint32_t speed_capa

Supported speeds bitmap (ETH_LINK_SPEED_).

Definition at line 1175 of file rte_ethdev.h.

uint16_t nb_rx_queues

Configured number of rx/tx queues Number of RX queues.

Definition at line 1177 of file rte_ethdev.h.

uint16_t nb_tx_queues

Number of TX queues.

Definition at line 1178 of file rte_ethdev.h.

struct rte_eth_dev_portconf default_rxportconf

Rx parameter recommendations

Definition at line 1180 of file rte_ethdev.h.

struct rte_eth_dev_portconf default_txportconf

Tx parameter recommendations

Definition at line 1182 of file rte_ethdev.h.

uint64_t dev_capa

Generic device capabilities (RTE_ETH_DEV_CAPA_).

Definition at line 1184 of file rte_ethdev.h.

struct rte_eth_switch_info switch_info

Switching information for ports on a device with a embedded managed interconnect/switch.

Definition at line 1189 of file rte_ethdev.h.


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