aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/e1000/e1000_main.c
diff options
context:
space:
mode:
authorNick Nunley <nicholasx.d.nunley@intel.com>2010-02-03 09:49:28 -0500
committerDavid S. Miller <davem@davemloft.net>2010-02-03 22:39:56 -0500
commitb548192acaebcb05d6a87d1e94f19835b1a18a8b (patch)
treed84ebe0a50cbeba290d01525ec14d3c91f713e24 /drivers/net/e1000/e1000_main.c
parent10eec95569513206877769ad9336591c08015cfe (diff)
e1000: Report link status in ethtool when interface is down
With this change ethtool will correctly report link status when the interface is down. Currently ethtool reports the link as not detected when the interface is down. Signed-off-by: Nicholas Nunley <nicholasx.d.nunley@intel.com> Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/e1000/e1000_main.c')
-rw-r--r--drivers/net/e1000/e1000_main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/e1000/e1000_main.c b/drivers/net/e1000/e1000_main.c
index b608528f26fc..4ff50d6fe5e4 100644
--- a/drivers/net/e1000/e1000_main.c
+++ b/drivers/net/e1000/e1000_main.c
@@ -2246,7 +2246,7 @@ static void e1000_82547_tx_fifo_stall(unsigned long data)
2246 } 2246 }
2247} 2247}
2248 2248
2249static bool e1000_has_link(struct e1000_adapter *adapter) 2249bool e1000_has_link(struct e1000_adapter *adapter)
2250{ 2250{
2251 struct e1000_hw *hw = &adapter->hw; 2251 struct e1000_hw *hw = &adapter->hw;
2252 bool link_active = false; 2252 bool link_active = false;