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

login
register
mail settings
Submitter Anirban Chakraborty
Date March 16, 2012, 5:58 p.m.
Message ID <1331920711-16049-2-git-send-email-anirban.chakraborty@qlogic.com>
Download mbox | patch
Permalink /patch/147232/
State Rejected
Delegated to: David Miller
Headers show

Comments

Anirban Chakraborty - March 16, 2012, 5:58 p.m.
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(-)

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;