CNDP  22.08.0
netdev_link Struct Reference

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

Definition at line 25 of file netdev_funcs.h.

Field Documentation

◆ link_speed

uint32_t link_speed

ETH_SPEED_NUM_

Definition at line 26 of file netdev_funcs.h.

◆ link_duplex

uint16_t link_duplex

ETH_LINK_[HALF/FULL]_DUPLEX

Definition at line 27 of file netdev_funcs.h.

◆ link_autoneg

uint16_t link_autoneg

ETH_LINK_[AUTONEG/FIXED]

Definition at line 28 of file netdev_funcs.h.

◆ link_status

uint16_t link_status

ETH_LINK_[DOWN/UP]

Definition at line 29 of file netdev_funcs.h.


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