diff options
author | Sony Chacko <sony.chacko@qlogic.com> | 2011-01-10 01:15:22 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-01-10 22:34:54 +0100 |
commit | 13b93ed924a82affd1e3a48f631cbb12c552199d (patch) | |
tree | 7865b55d62171105f40e1b096caeb62ae877f885 /drivers/net/qlcnic | |
parent | qlcnic: fix flash fw version read (diff) | |
download | linux-13b93ed924a82affd1e3a48f631cbb12c552199d.tar.xz linux-13b93ed924a82affd1e3a48f631cbb12c552199d.zip |
qlcnic: fix ethtool diagnostics test
IRQ diag test was getting executed only when both register test
and link test passed. The test should get executed if ETH_TEST_FL_OFFLINE
flag is set.
Signed-off-by: Sony Chacko <sony.chacko@qlogic.com>
Signed-off-by: Amit Kumar Salecha <amit.salecha@qlogic.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/qlcnic')
-rw-r--r-- | drivers/net/qlcnic/qlcnic_ethtool.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/qlcnic/qlcnic_ethtool.c b/drivers/net/qlcnic/qlcnic_ethtool.c index 1e7af709d395..4c14510e2a87 100644 --- a/drivers/net/qlcnic/qlcnic_ethtool.c +++ b/drivers/net/qlcnic/qlcnic_ethtool.c @@ -672,7 +672,7 @@ qlcnic_diag_test(struct net_device *dev, struct ethtool_test *eth_test, if (data[1]) eth_test->flags |= ETH_TEST_FL_FAILED; - if (eth_test->flags == ETH_TEST_FL_OFFLINE) { + if (eth_test->flags & ETH_TEST_FL_OFFLINE) { data[2] = qlcnic_irq_test(dev); if (data[2]) eth_test->flags |= ETH_TEST_FL_FAILED; |