]> git.proxmox.com Git - mirror_ubuntu-disco-kernel.git/commitdiff
bnx2x: Fix ethtool -t link test for MF (non-pmf) devices.
authorDmitry Kravkov <dmitry@broadcom.com>
Mon, 28 Feb 2011 03:37:12 +0000 (03:37 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 28 Feb 2011 21:14:47 +0000 (13:14 -0800)
Signed-off-by: Dmitry Kravkov <dmitry@broadcom.com>
Signed-off-by: Eilon Greenstein <eilong@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/bnx2x/bnx2x_ethtool.c

index 5b0fe7a35ac8c8ecc8ab38c35b8aa242c340314c..ef2919987a100a687f492ea36b1ef38c29d8e9d4 100644 (file)
@@ -1932,11 +1932,11 @@ static void bnx2x_self_test(struct net_device *dev,
                buf[4] = 1;
                etest->flags |= ETH_TEST_FL_FAILED;
        }
-       if (bp->port.pmf)
-               if (bnx2x_link_test(bp, is_serdes) != 0) {
-                       buf[5] = 1;
-                       etest->flags |= ETH_TEST_FL_FAILED;
-               }
+
+       if (bnx2x_link_test(bp, is_serdes) != 0) {
+               buf[5] = 1;
+               etest->flags |= ETH_TEST_FL_FAILED;
+       }
 
 #ifdef BNX2X_EXTRA_DEBUG
        bnx2x_panic_dump(bp);