net/e1000: fix forced configuration of speed and duplex
authorAnanda Sathyanarayana <ananda@versa-networks.com>
Wed, 2 Nov 2016 23:36:55 +0000 (16:36 -0700)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Mon, 7 Nov 2016 15:04:55 +0000 (16:04 +0100)
commit6880bdb6c6ec1220303c34591961d613154b89b4
tree9ea3d419ab0172ac1bd6193029727f4cb52e09d8
parent164a601b52b9e8283053e5d259dfe5002057e223
net/e1000: fix forced configuration of speed and duplex

From the code, it looks like, hw->mac.autoneg, variable is used to
switch between calling either autoneg function or forcing
speed/duplex function. But this variable is not modified in
eth_em_start/eth_igb_start routines (it is always set to 1)
even while forcing the link speed.

Following discussion thread has some more information on this:
http://dpdk.org/ml/archives/dev/2016-October/049272.html

Signed-off-by: Ananda Sathyanarayana <ananda@versa-networks.com>
Acked-by: Wenzhuo Lu <wenzhuo.lu@intel.com>
drivers/net/e1000/em_ethdev.c
drivers/net/e1000/igb_ethdev.c