numam-dpdk/drivers/net
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
..
af_packet ethdev: fix link autonegotiation value 2018-01-16 18:47:49 +01:00
ark drivers/net: fix number of segment storage type 2017-11-10 09:17:13 +00:00
avf net/avf: enable Rx interrupt 2018-01-16 18:47:49 +01:00
avp net/avp: implement dynamic logging 2018-01-16 18:47:49 +01:00
bnx2x net/bnx2x: implement dynamic logging 2018-01-16 18:47:49 +01:00
bnxt net/bnxt: fix headroom initialization 2018-01-16 18:47:49 +01:00
bonding net/bonding: burst mode hash calculation 2018-01-16 18:47:49 +01:00
cxgbe mbuf: rename physical address to IOVA 2017-11-06 22:44:26 +01:00
dpaa net/dpaa: support push mode 2018-01-16 18:47:49 +01:00
dpaa2 net/dpaa2: prefetch the parse results from next fd 2018-01-16 18:47:49 +01:00
e1000 ethdev: fix link autonegotiation value 2018-01-16 18:47:49 +01:00
ena net/ena: implement dynamic logging 2018-01-16 18:47:49 +01:00
enic net/enic: fix TSO for packets greater than 9208 bytes 2017-11-02 19:32:04 +01:00
failsafe ethdev: fix link autonegotiation value 2018-01-16 18:47:49 +01:00
fm10k net/fm10k: implement dynamic logging 2018-01-16 18:47:49 +01:00
i40e net/i40e: support AVF basic interface 2018-01-16 18:47:49 +01:00
ixgbe net/ixgbe/base: update README file 2018-01-16 18:47:49 +01:00
kni ethdev: fix link autonegotiation value 2018-01-16 18:47:49 +01:00
liquidio net/liquidio: implement dynamic logging 2018-01-16 18:47:49 +01:00
mlx4 net/mlx4: convert to new Rx offloads API 2018-01-16 18:47:49 +01:00
mlx5 net/mlx5: convert to new Rx offloads API 2018-01-16 18:47:49 +01:00
mrvl net/mrvl: add extra error logs 2018-01-16 18:47:49 +01:00
nfp net/nfp: implement dynamic logging 2018-01-16 18:47:49 +01:00
null ethdev: fix link autonegotiation value 2018-01-16 18:47:49 +01:00
octeontx ethdev: fix link autonegotiation value 2018-01-16 18:47:49 +01:00
pcap ethdev: fix link autonegotiation value 2018-01-16 18:47:49 +01:00
qede net/qede: implement dynamic logging 2018-01-16 18:47:49 +01:00
ring ethdev: fix link autonegotiation value 2018-01-16 18:47:49 +01:00
sfc net/sfc: change license to BSD-3-Clause 2018-01-16 18:47:49 +01:00
softnic ethdev: fix link autonegotiation value 2018-01-16 18:47:49 +01:00
szedata2 ethdev: fix link autonegotiation value 2018-01-16 18:47:49 +01:00
tap ethdev: fix link autonegotiation value 2018-01-16 18:47:49 +01:00
thunderx ethdev: fix link autonegotiation value 2018-01-16 18:47:49 +01:00
vhost drivers: use SPDX tag for Intel copyright files 2018-01-04 22:41:39 +01:00
virtio net/virtio: implement dynamic logging 2018-01-16 18:47:49 +01:00
vmxnet3 ethdev: fix link autonegotiation value 2018-01-16 18:47:49 +01:00
Makefile net/avf: initialize PMD 2018-01-16 18:47:49 +01:00