summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichal Swiatkowski <michal.swiatkowski@intel.com>2020-02-13 13:31:24 -0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2020-03-11 14:14:55 +0100
commit1e00f896ded69bc90672bbaf1d25e2b777a79b6d (patch)
tree0bc7b58c454463a3faaf29127582cf908da63c42
parente82a65b2f4f37111b52021feafb51b5d84ed7023 (diff)
downloadlinux-stable-1e00f896ded69bc90672bbaf1d25e2b777a79b6d.tar.gz
linux-stable-1e00f896ded69bc90672bbaf1d25e2b777a79b6d.tar.bz2
linux-stable-1e00f896ded69bc90672bbaf1d25e2b777a79b6d.zip
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>
-rw-r--r--drivers/net/ethernet/intel/ice/ice_ethtool.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/drivers/net/ethernet/intel/ice/ice_ethtool.c b/drivers/net/ethernet/intel/ice/ice_ethtool.c
index 4c5c87b158f5..627abef829c9 100644
--- a/drivers/net/ethernet/intel/ice/ice_ethtool.c
+++ b/drivers/net/ethernet/intel/ice/ice_ethtool.c
@@ -772,13 +772,6 @@ ice_set_pauseparam(struct net_device *netdev, struct ethtool_pauseparam *pause)
else
return -EINVAL;
- /* Tell the OS link is going down, the link will go back up when fw
- * says it is ready asynchronously
- */
- ice_print_link_msg(vsi, false);
- netif_carrier_off(netdev);
- netif_tx_stop_all_queues(netdev);
-
/* Set the FC mode and only restart AN if link is up */
status = ice_set_fc(pi, &aq_failures, link_up);