Skip to contentSkip to conversation

be2net: ethtool self test reorganization.

PATCH Applied Sarveshwar Bandi 2 participants 2 messages Jan 19, 2010 – Jan 22, 2010

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/2 be2net: ethtool self test reorganization.

The ddr dma ethtool self test needs to be performed even when ETH_TEST_FL_OFFLINE is not set.

---
 drivers/net/benet/be_ethtool.c |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)
drivers/net/benet/be_ethtool.c +4 -3
index f18c02f..2f2ebbd 100644
@@ -545,10 +545,11 @@ be_self_test(struct net_device *netdev, 
 						&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;
 	}
 
 }
Signature · 1 line
1.4.0