]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
ice: Don't tell the OS that link is going down
authorMichal Swiatkowski <michal.swiatkowski@intel.com>
Thu, 13 Feb 2020 21:31:24 +0000 (13:31 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 12 Mar 2020 06:18:28 +0000 (07:18 +0100)
commit85e1f6b3996fd1ddadf3967778fd0f99f2ba23b5
tree4ddcd769597abbe7376bffe49b1bdf3f0c8993e0
parent827b9516c693bcd1483db1c657aeeacc6de0bad4
ice: Don't tell the OS that link is going down

[ Upstream commit 8a55c08d3bbc9ffc9639f69f742e59ebd99f913b ]

Remove code that tell the OS that link is going down when user
change flow control via ethtool. When link is up it isn't certain
that link goes down after 0x0605 aq command. If link doesn't go
down, OS thinks that link is down, but physical link is up. To
reset this state user have to take interface down and up.

If link goes down after 0x0605 command, FW send information
about that and after that driver tells the OS that the link goes
down. So this code in ethtool is unnecessary.

Signed-off-by: Michal Swiatkowski <michal.swiatkowski@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>
drivers/net/ethernet/intel/ice/ice_ethtool.c