forked from Minki/linux
be2net: Fix ethtool self test for Lancer
Lancer does not support DDR self test. Fix ethtool self test by skipping this test for Lancer. Signed-off-by: Padmanabh Ratnakar <padmanabh.ratnakar@emulex.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
804c751599
commit
a704739496
@ -793,7 +793,7 @@ be_self_test(struct net_device *netdev, struct ethtool_test *test, u64 *data)
|
||||
}
|
||||
}
|
||||
|
||||
if (be_test_ddr_dma(adapter) != 0) {
|
||||
if (!lancer_chip(adapter) && be_test_ddr_dma(adapter) != 0) {
|
||||
data[3] = 1;
|
||||
test->flags |= ETH_TEST_FL_FAILED;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user