Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit bcebe559 authored by Manish chopra's avatar Manish chopra Committed by David S. Miller
Browse files

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: default avatarManish chopra <manish.chopra@qlogic.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 75928b1e
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -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;

	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;
}