]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
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)
committerMarcelo Henrique Cerri <marcelo.cerri@canonical.com>
Fri, 17 Jan 2020 17:22:06 +0000 (14:22 -0300)
commitd53effc9428a9d545bb139b043f4e81ae9b849cc
treead4ab615068f08670ba56f18eb04ab7c72ecf09f
parentf1ffcba0fd7811540e86a576c18e538647051dd4
i40e: don't restart nway if autoneg not supported

BugLink: https://bugs.launchpad.net/bugs/1857158
[ Upstream commit 7c3758f7839377ab67529cc50264a640636c47af ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Kleber Sacilotto de Souza <kleber.souza@canonical.com>
drivers/net/ethernet/intel/i40e/i40e_ethtool.c