Skip to content

Commit

Permalink
be2net: ethtool self test reorganization.
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Sarveshwar Bandi authored and David S. Miller committed Jan 22, 2010
1 parent 09cb47a commit 8f47afe
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions drivers/net/benet/be_ethtool.c
Original file line number Diff line number Diff line change
Expand Up @@ -545,10 +545,11 @@ be_self_test(struct net_device *netdev, struct ethtool_test *test, u64 *data)
&data[2]) != 0) {
test->flags |= ETH_TEST_FL_FAILED;
}
}

data[3] = be_test_ddr_dma(adapter);
if (data[3] != 0)
test->flags |= ETH_TEST_FL_FAILED;
if (be_test_ddr_dma(adapter) != 0) {
data[3] = 1;
test->flags |= ETH_TEST_FL_FAILED;
}

}
Expand Down

0 comments on commit 8f47afe

Please sign in to comment.