1e3a958f40
There are 3 kind of link data in ethdev:
- capabilities (rte_eth_dev_info)
- configuration (rte_eth_conf)
- status (rte_eth_link)
A bit-field is used for capabilities (rte_eth_dev_info.speed_capa) and
configuration (rte_eth_conf.link_speeds).
Bits are defined in ETH_LINK_SPEED_*.
Some numerical (ETH_SPEED_NUM_*) and boolean (ETH_LINK_*) values
are used for the link status (rte_eth_link.*).
There was a mistake in the comment of rte_eth_link.link_autoneg,
suggesting ETH_LINK_SPEED_[AUTONEG/FIXED] which are 0/1,
instead of ETH_LINK_[AUTONEG/FIXED] which are 1/0.
The drivers are fixed to use ETH_LINK_[AUTONEG/FIXED].
Fixes:
|
||
---|---|---|
.. | ||
base | ||
e1000_ethdev.h | ||
e1000_logs.h | ||
em_ethdev.c | ||
em_rxtx.c | ||
igb_ethdev.c | ||
igb_flow.c | ||
igb_pf.c | ||
igb_regs.h | ||
igb_rxtx.c | ||
Makefile | ||
rte_pmd_e1000_version.map |