From: Sarveshwar Bandi Date: Tue, 19 Jan 2010 05:15:00 +0000 (+0000) Subject: be2net: ethtool self test reorganization. X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=8f47afe080df450eedda7b29873512c2a9a9adcb;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git 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 Signed-off-by: David S. Miller --- 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) &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; } }