diff options
author | Nick Nunley <nicholasx.d.nunley@intel.com> | 2010-02-17 02:01:21 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-02-17 22:21:32 +0100 |
commit | 3145535ac6e4769e587a38a67d888a10f24a7af9 (patch) | |
tree | 5d0d93d0b97bf3aadf7f5b568bf2f1c7e053f84b /drivers/net/igb/igb_main.c | |
parent | igb: add support for wake-on-link (diff) | |
download | linux-3145535ac6e4769e587a38a67d888a10f24a7af9.tar.xz linux-3145535ac6e4769e587a38a67d888a10f24a7af9.zip |
igb: 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/igb/igb_main.c')
-rw-r--r-- | drivers/net/igb/igb_main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/igb/igb_main.c b/drivers/net/igb/igb_main.c index 677b5f5ab49c..e40319e2ec25 100644 --- a/drivers/net/igb/igb_main.c +++ b/drivers/net/igb/igb_main.c @@ -3020,7 +3020,7 @@ static void igb_update_phy_info(unsigned long data) * igb_has_link - check shared code for link and determine up/down * @adapter: pointer to driver private info **/ -static bool igb_has_link(struct igb_adapter *adapter) +bool igb_has_link(struct igb_adapter *adapter) { struct e1000_hw *hw = &adapter->hw; bool link_active = false; |