]> git.baikalelectronics.ru Git - kernel.git/commit
igb: correct link test not being run when link is down
authorAlexander Duyck <alexander.h.duyck@intel.com>
Thu, 1 Jul 2010 13:39:01 +0000 (13:39 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 2 Jul 2010 05:45:57 +0000 (22:45 -0700)
commitbf0cfff6edbba22fac12ace862ad8f20e9beff20
tree6aa2f8e2c4442844bb0a341753a7c43835a75516
parent0345c7d1d9b3e8e71a13625e76d698de5c806fb0
igb: correct link test not being run when link is down

The igb online link test was always reporting pass because instead of
checking for if_running it was checking for netif_carrier_ok.

This change corrects the test so that it is run if the interface is running
instead of checking for netif carrier ok.

Signed-off-by: Alexander Duyck <alexander.h.duyck@intel.com>
Tested-by: Emil Tantilov <emil.s.tantilov@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/igb/igb_ethtool.c