numam-dpdk/drivers/net/szedata2
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
..
Makefile pci: introduce library and driver 2017-10-26 23:17:31 +02:00
rte_eth_szedata2.c ethdev: fix link autonegotiation value 2018-01-16 18:47:49 +01:00
rte_eth_szedata2.h net/szedata2: use macro from common library 2017-07-06 15:00:56 +02:00
rte_pmd_szedata2_version.map szedata2: add new poll mode driver 2015-11-20 17:17:04 +01:00
szedata2_iobuf.c net/szedata2: add more supported firmwares 2017-06-12 15:21:22 +01:00
szedata2_iobuf.h net/szedata2: move ibuf and obuf to specific header 2017-06-12 15:21:22 +01:00