diff mbox

[net-next] qlcnic: ethtool change to provide the dump_state information

Message ID 1331920711-16049-2-git-send-email-anirban.chakraborty@qlogic.com
State Rejected, archived
Delegated to: David Miller
Headers show

Commit Message

Anirban Chakraborty March 16, 2012, 5:58 p.m. UTC
From: Manish chopra <manish.chopra@qlogic.com>

o dump_state will be either enabled/disabled that is 1/0

Signed-off-by: Manish chopra <manish.chopra@qlogic.com>
Signed-off-by: Anirban Chakraborty <anirban.chakraborty@qlogic.com>
---
 .../net/ethernet/qlogic/qlcnic/qlcnic_ethtool.c    |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)
diff mbox

Patch

diff --git a/drivers/net/ethernet/qlogic/qlcnic/qlcnic_ethtool.c b/drivers/net/ethernet/qlogic/qlcnic/qlcnic_ethtool.c
index 89ddf7f..56f7ebc 100644
--- a/drivers/net/ethernet/qlogic/qlcnic/qlcnic_ethtool.c
+++ b/drivers/net/ethernet/qlogic/qlcnic/qlcnic_ethtool.c
@@ -1136,6 +1136,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->dump_state = ETH_FW_DUMP_ENABLE;
+	else
+		dump->dump_state = ETH_FW_DUMP_DISABLE;
+
 	dump->flag = fw_dump->tmpl_hdr->drv_cap_mask;
 	dump->version = adapter->fw_version;
 	return 0;