be2net: Fix ethtool self test for Lancer
authorPadmanabh Ratnakar <padmanabh.ratnakar@emulex.com>
Wed, 25 Apr 2012 01:46:28 +0000 (01:46 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 26 Apr 2012 09:03:31 +0000 (05:03 -0400)
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>
drivers/net/ethernet/emulex/benet/be_ethtool.c

index dc9f74c..0c6f06e 100644 (file)
@@ -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;
        }