DPDK  19.02.0
Data Fields
rte_eth_link Struct Reference

#include <rte_ethdev.h>

Data Fields

uint32_t link_speed
uint16_t link_duplex: 1
uint16_t link_autoneg: 1
uint16_t link_status: 1

Detailed Description

A structure used to retrieve link-level information of an Ethernet port.aligned for atomic64 read/write

Examples:
examples/bbdev_app/main.c, examples/distributor/main.c, examples/ethtool/lib/rte_ethtool.c, examples/exception_path/main.c, examples/flow_filtering/main.c, examples/ip_fragmentation/main.c, examples/ip_pipeline/cli.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-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/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/symmetric_mp/main.c, examples/performance-thread/l3fwd-thread/main.c, examples/qos_sched/init.c, examples/server_node_efd/server/init.c, and examples/vm_power_manager/main.c.

Definition at line 307 of file rte_ethdev.h.

Field Documentation

uint32_t link_speed

ETH_SPEED_NUM_

Examples:
examples/kni/main.c.

Definition at line 308 of file rte_ethdev.h.

uint16_t link_duplex

ETH_LINK_[HALF/FULL]_DUPLEX

Examples:
examples/kni/main.c.

Definition at line 309 of file rte_ethdev.h.

uint16_t link_autoneg

ETH_LINK_[AUTONEG/FIXED]

Examples:
examples/kni/main.c.

Definition at line 310 of file rte_ethdev.h.

uint16_t link_status

ETH_LINK_[DOWN/UP]

Examples:
examples/kni/main.c.

Definition at line 311 of file rte_ethdev.h.


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