summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/intel/ixgbe/ixgbe_main.c
diff options
context:
space:
mode:
authorJacob Keller <jacob.e.keller@intel.com>2013-06-25 07:59:23 +0000
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>2013-08-29 02:39:26 -0700
commitf4f1040ae63c7c40ef24c1892d32ceae46d9ea05 (patch)
treec1150e7996513235d93fec07be88c85649526402 /drivers/net/ethernet/intel/ixgbe/ixgbe_main.c
parentcc328deac5a5f576aa79d87cfacf01e370e5e03e (diff)
downloadblackbird-op-linux-f4f1040ae63c7c40ef24c1892d32ceae46d9ea05.tar.gz
blackbird-op-linux-f4f1040ae63c7c40ef24c1892d32ceae46d9ea05.zip
ixgbe: disable link when adapter goes down
This patch fixes an issue with the 82599 adapter where it can potentially keep link lights up when the adapter has gone down. The patch adds a function which ensures link is disabled, and calls this function when the adapter transitions to a down state. Signed-off-by: Jacob Keller <jacob.e.keller@intel.com> Tested-by: Phil Schmitt <phillip.j.schmitt@intel.com> Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Diffstat (limited to 'drivers/net/ethernet/intel/ixgbe/ixgbe_main.c')
-rw-r--r--drivers/net/ethernet/intel/ixgbe/ixgbe_main.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/net/ethernet/intel/ixgbe/ixgbe_main.c b/drivers/net/ethernet/intel/ixgbe/ixgbe_main.c
index 128d6b885326..cf1b41ebf655 100644
--- a/drivers/net/ethernet/intel/ixgbe/ixgbe_main.c
+++ b/drivers/net/ethernet/intel/ixgbe/ixgbe_main.c
@@ -5292,6 +5292,9 @@ static int __ixgbe_shutdown(struct pci_dev *pdev, bool *enable_wake)
return retval;
#endif
+ if (hw->mac.ops.stop_link_on_d3)
+ hw->mac.ops.stop_link_on_d3(hw);
+
if (wufc) {
ixgbe_set_rx_mode(netdev);
OpenPOWER on IntegriCloud