提交 bcebe559 编写于 作者: M Manish chopra 提交者: David S. Miller

qlcnic-ethtool: set the ethtool_dump flag by ETH_FW_DUMP_DISABLE value that is...

qlcnic-ethtool: set the ethtool_dump flag by ETH_FW_DUMP_DISABLE value that is zero, if firmware dump is disabled.
Signed-off-by: NManish chopra <manish.chopra@qlogic.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 75928b1e
...@@ -1232,7 +1232,12 @@ qlcnic_get_dump_flag(struct net_device *netdev, struct ethtool_dump *dump) ...@@ -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; dump->len = fw_dump->tmpl_hdr->size + fw_dump->size;
else else
dump->len = 0; 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; dump->version = adapter->fw_version;
return 0; return 0;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册