amdsmi_nic_port_t Struct Reference#
amdsmi_nic_port_t Struct Reference
NIC port information. More...
#include <amdsmi.h>
Data Fields | |
| amdsmi_bdf_t | bdf |
| uint32_t | port_num |
| char | type [AMDSMI_MAX_STRING_LENGTH] |
| char | flavour [AMDSMI_MAX_STRING_LENGTH] |
| char | netdev [AMDSMI_MAX_STRING_LENGTH] |
| uint8_t | ifindex |
| char | mac_address [AMDSMI_MAX_STRING_LENGTH] |
| uint8_t | carrier |
| uint16_t | mtu |
| char | link_state [AMDSMI_MAX_STRING_LENGTH] |
| uint32_t | link_speed |
| uint32_t | active_fec |
| Active FEC modes bitmask (see about FEC modes in the description) | |
| char | autoneg [AMDSMI_MAX_STRING_LENGTH] |
| char | pause_autoneg [AMDSMI_MAX_STRING_LENGTH] |
| char | pause_rx [AMDSMI_MAX_STRING_LENGTH] |
| char | pause_tx [AMDSMI_MAX_STRING_LENGTH] |
Detailed Description
NIC port information.
Active FEC Modes: The active_fec field provides a bitmask representation of Active FEC (Active Forward Error Correction) modes. The bitmask values are derived from the ethtool_fecparam structure, specifically the active_fec field. Below are examples of the defined FEC modes:
Examples:
- ETHTOOL_FEC_NONE (0x01)
- ETHTOOL_FEC_AUTO (0x02)
- ETHTOOL_FEC_RS (0x04)
- ETHTOOL_FEC_BASER (0x08)
- ETHTOOL_FEC_LLRS (0x10)
- ETHTOOL_FEC_OFF (0x20)
Note: These definitions are based on the latest available ethtool information. Users should verify if there are any updates or changes to these definitions in the relevant ethtool structure or field before implementing them in their code.
The documentation for this struct was generated from the following file: