Skip to content

Commit

Permalink
qlcnic-ethtool: set the ethtool_dump flag by ETH_FW_DUMP_DISABLE valu…
Browse files Browse the repository at this point in the history
…e 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>
  • Loading branch information
Manish chopra authored and David S. Miller committed May 15, 2012
1 parent 75928b1 commit bcebe55
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion drivers/net/ethernet/qlogic/qlcnic/qlcnic_ethtool.c
Original file line number Diff line number Diff line change
Expand Up @@ -1232,7 +1232,12 @@ qlcnic_get_dump_flag(struct net_device *netdev, struct ethtool_dump *dump)
dump->len = fw_dump->tmpl_hdr->size + fw_dump->size;
else
dump->len = 0;
dump->flag = fw_dump->tmpl_hdr->drv_cap_mask;

if (!fw_dump->enable)
dump->flag = ETH_FW_DUMP_DISABLE;
else
dump->flag = fw_dump->tmpl_hdr->drv_cap_mask;

dump->version = adapter->fw_version;
return 0;
}
Expand Down

0 comments on commit bcebe55

Please sign in to comment.