diff options
Diffstat (limited to 'drivers/net/ethernet/broadcom')
-rw-r--r-- | drivers/net/ethernet/broadcom/bnx2x/bnx2x_ethtool.c | 19 |
1 files changed, 9 insertions, 10 deletions
diff --git a/drivers/net/ethernet/broadcom/bnx2x/bnx2x_ethtool.c b/drivers/net/ethernet/broadcom/bnx2x/bnx2x_ethtool.c index 397537bb4448..ce1a91618677 100644 --- a/drivers/net/ethernet/broadcom/bnx2x/bnx2x_ethtool.c +++ b/drivers/net/ethernet/broadcom/bnx2x/bnx2x_ethtool.c | |||
@@ -2867,16 +2867,9 @@ static void bnx2x_self_test(struct net_device *dev, | |||
2867 | 2867 | ||
2868 | memset(buf, 0, sizeof(u64) * BNX2X_NUM_TESTS(bp)); | 2868 | memset(buf, 0, sizeof(u64) * BNX2X_NUM_TESTS(bp)); |
2869 | 2869 | ||
2870 | if (bnx2x_test_nvram(bp) != 0) { | ||
2871 | if (!IS_MF(bp)) | ||
2872 | buf[4] = 1; | ||
2873 | else | ||
2874 | buf[0] = 1; | ||
2875 | etest->flags |= ETH_TEST_FL_FAILED; | ||
2876 | } | ||
2877 | |||
2878 | if (!netif_running(dev)) { | 2870 | if (!netif_running(dev)) { |
2879 | DP(BNX2X_MSG_ETHTOOL, "Interface is down\n"); | 2871 | DP(BNX2X_MSG_ETHTOOL, |
2872 | "Can't perform self-test when interface is down\n"); | ||
2880 | return; | 2873 | return; |
2881 | } | 2874 | } |
2882 | 2875 | ||
@@ -2938,7 +2931,13 @@ static void bnx2x_self_test(struct net_device *dev, | |||
2938 | /* wait until link state is restored */ | 2931 | /* wait until link state is restored */ |
2939 | bnx2x_wait_for_link(bp, link_up, is_serdes); | 2932 | bnx2x_wait_for_link(bp, link_up, is_serdes); |
2940 | } | 2933 | } |
2941 | 2934 | if (bnx2x_test_nvram(bp) != 0) { | |
2935 | if (!IS_MF(bp)) | ||
2936 | buf[4] = 1; | ||
2937 | else | ||
2938 | buf[0] = 1; | ||
2939 | etest->flags |= ETH_TEST_FL_FAILED; | ||
2940 | } | ||
2942 | if (bnx2x_test_intr(bp) != 0) { | 2941 | if (bnx2x_test_intr(bp) != 0) { |
2943 | if (!IS_MF(bp)) | 2942 | if (!IS_MF(bp)) |
2944 | buf[5] = 1; | 2943 | buf[5] = 1; |