numam-dpdk/drivers/net/e1000
Thomas Monjalon 1e3a958f40 ethdev: fix link autonegotiation value
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: 82113036e4 ("ethdev: redesign link speed config")

Suggested-by: Andrew Rybchenko <arybchenko@solarflare.com>
Signed-off-by: Thomas Monjalon <thomas@monjalon.net>
Acked-by: Stephen Hemminger <stephen@networkplumber.org>
2018-01-16 18:47:49 +01:00
..
base fix typos 2018-01-11 18:26:46 +01:00
e1000_ethdev.h net/e1000: move RSS to flow API 2018-01-16 18:47:49 +01:00
e1000_logs.h net/e1000: implement dynamic logging 2018-01-16 18:47:49 +01:00
em_ethdev.c ethdev: fix link autonegotiation value 2018-01-16 18:47:49 +01:00
em_rxtx.c drivers: use SPDX tag for Intel copyright files 2018-01-04 22:41:39 +01:00
igb_ethdev.c ethdev: fix link autonegotiation value 2018-01-16 18:47:49 +01:00
igb_flow.c net/e1000: move RSS to flow API 2018-01-16 18:47:49 +01:00
igb_pf.c drivers: use SPDX tag for Intel copyright files 2018-01-04 22:41:39 +01:00
igb_regs.h drivers: use SPDX tag for Intel copyright files 2018-01-04 22:41:39 +01:00
igb_rxtx.c net/e1000: move RSS to flow API 2018-01-16 18:47:49 +01:00
Makefile drivers: use SPDX tag for Intel copyright files 2018-01-04 22:41:39 +01:00
rte_pmd_e1000_version.map e1000: move to drivers/net/ 2015-05-22 15:51:38 +02:00