i40e: don't restart nway if autoneg not supported
authorMitch Williams <mitch.a.williams@intel.com>
Fri, 26 Oct 2018 21:33:28 +0000 (14:33 -0700)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Wed, 14 Nov 2018 18:56:33 +0000 (10:56 -0800)
commit7c3758f7839377ab67529cc50264a640636c47af
tree5679087701c2f2c82d672158dcfe9fd00278fe8c
parent5734fe87486e858124ec30d73be0a265e02c042c
i40e: don't restart nway if autoneg not supported

On link types that do not support autoneg, we cannot attempt to restart
nway negotiation. This results in a dead link that requires a power
cycle to remedy.

Fix this by saving off the autoneg state and checking this value before
we try to restart nway.

Signed-off-by: Mitch Williams <mitch.a.williams@intel.com>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/i40e/i40e_ethtool.c