aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorManish chopra <manish.chopra@qlogic.com>2012-05-14 21:13:39 -0400
committerDavid S. Miller <davem@davemloft.net>2012-05-15 13:13:33 -0400
commitbcebe55957323d9a5bc9d0f7a0747ccbb34c86dd (patch)
treeb57e8a89c8b573beac3c7c7da12372b4a69a1171
parent75928b1e80648ae51606c89ae441c85648d261c0 (diff)
qlcnic-ethtool: set the ethtool_dump flag by ETH_FW_DUMP_DISABLE value that is zero, if firmware dump is disabled.
Signed-off-by: Manish chopra <manish.chopra@qlogic.com> Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r--drivers/net/ethernet/qlogic/qlcnic/qlcnic_ethtool.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/drivers/net/ethernet/qlogic/qlcnic/qlcnic_ethtool.c b/drivers/net/ethernet/qlogic/qlcnic/qlcnic_ethtool.c
index 735423f7273f..9e9e78a5c4d7 100644
--- a/drivers/net/ethernet/qlogic/qlcnic/qlcnic_ethtool.c
+++ b/drivers/net/ethernet/qlogic/qlcnic/qlcnic_ethtool.c
@@ -1232,7 +1232,12 @@ qlcnic_get_dump_flag(struct net_device *netdev, struct ethtool_dump *dump)
1232 dump->len = fw_dump->tmpl_hdr->size + fw_dump->size; 1232 dump->len = fw_dump->tmpl_hdr->size + fw_dump->size;
1233 else 1233 else
1234 dump->len = 0; 1234 dump->len = 0;
1235 dump->flag = fw_dump->tmpl_hdr->drv_cap_mask; 1235
1236 if (!fw_dump->enable)
1237 dump->flag = ETH_FW_DUMP_DISABLE;
1238 else
1239 dump->flag = fw_dump->tmpl_hdr->drv_cap_mask;
1240
1236 dump->version = adapter->fw_version; 1241 dump->version = adapter->fw_version;
1237 return 0; 1242 return 0;
1238} 1243}