numam-dpdk/drivers/net/thunderx
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 drivers: use SPDX tag for Cavium copyright files 2018-01-09 16:19:01 +01:00
Makefile drivers: use SPDX tag for Cavium copyright files 2018-01-09 16:19:01 +01:00
nicvf_ethdev.c ethdev: fix link autonegotiation value 2018-01-16 18:47:49 +01:00
nicvf_ethdev.h drivers: use SPDX tag for Cavium copyright files 2018-01-09 16:19:01 +01:00
nicvf_logs.h net/thunderx: implement dynamic logging 2018-01-16 18:47:49 +01:00
nicvf_rxtx.c net/thunderx: fix multi segment Tx function return 2018-01-16 18:47:49 +01:00
nicvf_rxtx.h drivers: use SPDX tag for Cavium copyright files 2018-01-09 16:19:01 +01:00
nicvf_struct.h drivers: use SPDX tag for Cavium copyright files 2018-01-09 16:19:01 +01:00
nicvf_svf.c drivers: use SPDX tag for Cavium copyright files 2018-01-09 16:19:01 +01:00
nicvf_svf.h drivers: use SPDX tag for Cavium copyright files 2018-01-09 16:19:01 +01:00
rte_pmd_thunderx_nicvf_version.map net/thunderx: add PMD skeleton 2016-06-20 17:21:54 +02:00