diff options
author | Padmanabh Ratnakar <padmanabh.ratnakar@emulex.com> | 2012-04-25 05:46:28 +0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-04-26 13:03:31 +0400 |
commit | a70473949698c1c46e5523e1810a0a0f904a1fd2 (patch) | |
tree | 9dda768596a6f884ccc1ee849ddfb988a567e7f2 | |
parent | 804c751599855a83efdc781cd9a2bda725d1391c (diff) | |
download | linux-a70473949698c1c46e5523e1810a0a0f904a1fd2.tar.xz |
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>
-rw-r--r-- | drivers/net/ethernet/emulex/benet/be_ethtool.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/emulex/benet/be_ethtool.c b/drivers/net/ethernet/emulex/benet/be_ethtool.c index dc9f74c69c40..0c6f06efce12 100644 --- a/drivers/net/ethernet/emulex/benet/be_ethtool.c +++ b/drivers/net/ethernet/emulex/benet/be_ethtool.c @@ -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; } |