提交 633ac363 编写于 作者: D Dmitry Kravkov 提交者: David S. Miller

bnx2x: Fix ethtool -t link test for MF (non-pmf) devices.

Signed-off-by: NDmitry Kravkov <dmitry@broadcom.com>
Signed-off-by: NEilon Greenstein <eilong@broadcom.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 d4215ef7
...@@ -1932,7 +1932,7 @@ static void bnx2x_self_test(struct net_device *dev, ...@@ -1932,7 +1932,7 @@ static void bnx2x_self_test(struct net_device *dev,
buf[4] = 1; buf[4] = 1;
etest->flags |= ETH_TEST_FL_FAILED; etest->flags |= ETH_TEST_FL_FAILED;
} }
if (bp->port.pmf)
if (bnx2x_link_test(bp, is_serdes) != 0) { if (bnx2x_link_test(bp, is_serdes) != 0) {
buf[5] = 1; buf[5] = 1;
etest->flags |= ETH_TEST_FL_FAILED; etest->flags |= ETH_TEST_FL_FAILED;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册