aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/igb
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/igb')
-rw-r--r--drivers/net/igb/igb_ethtool.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/drivers/net/igb/igb_ethtool.c b/drivers/net/igb/igb_ethtool.c
index f2ebf927e4bc..26bf6a13d1c1 100644
--- a/drivers/net/igb/igb_ethtool.c
+++ b/drivers/net/igb/igb_ethtool.c
@@ -1823,12 +1823,10 @@ static void igb_diag_test(struct net_device *netdev,
1823 dev_info(&adapter->pdev->dev, "online testing starting\n"); 1823 dev_info(&adapter->pdev->dev, "online testing starting\n");
1824 1824
1825 /* PHY is powered down when interface is down */ 1825 /* PHY is powered down when interface is down */
1826 if (!netif_carrier_ok(netdev)) { 1826 if (if_running && igb_link_test(adapter, &data[4]))
1827 eth_test->flags |= ETH_TEST_FL_FAILED;
1828 else
1827 data[4] = 0; 1829 data[4] = 0;
1828 } else {
1829 if (igb_link_test(adapter, &data[4]))
1830 eth_test->flags |= ETH_TEST_FL_FAILED;
1831 }
1832 1830
1833 /* Online tests aren't run; pass by default */ 1831 /* Online tests aren't run; pass by default */
1834 data[0] = 0; 1832 data[0] = 0;