diff options
author | Nick Nunley <nicholasx.d.nunley@intel.com> | 2010-02-03 09:49:28 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-02-03 22:39:56 -0500 |
commit | b548192acaebcb05d6a87d1e94f19835b1a18a8b (patch) | |
tree | d84ebe0a50cbeba290d01525ec14d3c91f713e24 /drivers/net/e1000/e1000_main.c | |
parent | 10eec95569513206877769ad9336591c08015cfe (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.c | 2 |
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 | ||
2249 | static bool e1000_has_link(struct e1000_adapter *adapter) | 2249 | bool 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; |