Skip to content

Commit 8f47afe

Browse files
Sarveshwar Bandidavem330
authored andcommitted
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>
1 parent 09cb47a commit 8f47afe

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

drivers/net/benet/be_ethtool.c

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -545,10 +545,11 @@ be_self_test(struct net_device *netdev, struct ethtool_test *test, u64 *data)
545545
&data[2]) != 0) {
546546
test->flags |= ETH_TEST_FL_FAILED;
547547
}
548+
}
548549

549-
data[3] = be_test_ddr_dma(adapter);
550-
if (data[3] != 0)
551-
test->flags |= ETH_TEST_FL_FAILED;
550+
if (be_test_ddr_dma(adapter) != 0) {
551+
data[3] = 1;
552+
test->flags |= ETH_TEST_FL_FAILED;
552553
}
553554

554555
}

0 commit comments

Comments
 (0)