diff options
author | Sarveshwar Bandi <sarveshwarb@serverengines.com> | 2010-01-19 00:15:00 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-01-22 01:49:50 -0500 |
commit | 8f47afe080df450eedda7b29873512c2a9a9adcb (patch) | |
tree | 758292e527da872a25008bc5d720be748bc8e7c5 /drivers/net/benet/be_ethtool.c | |
parent | 09cb47a2c68f9596927bc05dab0453edb35cd32d (diff) |
be2net: ethtool self test reorganization.
The ddr dma ethtool self test needs to be performed even when ETH_TEST_FL_OFFLINE is not set.
Signed-off-by: Sarveshwar Bandi <sarveshwarb@serverengines.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/benet/be_ethtool.c')
-rw-r--r-- | drivers/net/benet/be_ethtool.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/drivers/net/benet/be_ethtool.c b/drivers/net/benet/be_ethtool.c index f18c02f3a5e4..2f2ebbd678f2 100644 --- a/drivers/net/benet/be_ethtool.c +++ b/drivers/net/benet/be_ethtool.c | |||
@@ -545,10 +545,11 @@ be_self_test(struct net_device *netdev, struct ethtool_test *test, u64 *data) | |||
545 | &data[2]) != 0) { | 545 | &data[2]) != 0) { |
546 | test->flags |= ETH_TEST_FL_FAILED; | 546 | test->flags |= ETH_TEST_FL_FAILED; |
547 | } | 547 | } |
548 | } | ||
548 | 549 | ||
549 | data[3] = be_test_ddr_dma(adapter); | 550 | if (be_test_ddr_dma(adapter) != 0) { |
550 | if (data[3] != 0) | 551 | data[3] = 1; |
551 | test->flags |= ETH_TEST_FL_FAILED; | 552 | test->flags |= ETH_TEST_FL_FAILED; |
552 | } | 553 | } |
553 | 554 | ||
554 | } | 555 | } |