From: Manish Chopra <manish.chopra@qlogic.com>
To: bhutchings@solarflare.com
Cc: davem@davemloft.net, netdev@vger.kernel.org,
Dept_NX_Linux_NIC_Driver@qlogic.com,
anirban.chakraborty@qlogic.com,
Manish chopra <manish.chopra@qlogic.com>
Subject: [PATCH NEXT 2/2] qlcnic-ethtool: set the ethtool_dump flag by ETH_FW_DUMP_DISABLE value that is zero, if firmware dump is disabled.
Date: Tue, 15 May 2012 07:13:39 -0400 [thread overview]
Message-ID: <1337080419-31786-3-git-send-email-manish.chopra@qlogic.com> (raw)
In-Reply-To: <1337080419-31786-1-git-send-email-manish.chopra@qlogic.com>
From: Manish chopra <manish.chopra@qlogic.com>
Signed-off-by: Manish chopra <manish.chopra@qlogic.com>
---
.../net/ethernet/qlogic/qlcnic/qlcnic_ethtool.c | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
diff --git a/drivers/net/ethernet/qlogic/qlcnic/qlcnic_ethtool.c b/drivers/net/ethernet/qlogic/qlcnic/qlcnic_ethtool.c
index 735423f..9e9e78a 100644
--- a/drivers/net/ethernet/qlogic/qlcnic/qlcnic_ethtool.c
+++ b/drivers/net/ethernet/qlogic/qlcnic/qlcnic_ethtool.c
@@ -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;
}
--
1.7.1
next prev parent reply other threads:[~2012-05-15 11:37 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-05-15 11:13 [PATCH net-next 0/2] ethtool changes Manish Chopra
2012-05-15 11:13 ` [PATCH NEXT 1/2] linux/ethtool: Added macro ETH_FW_DUMP_DISABLE Manish Chopra
2012-05-15 14:01 ` Ben Hutchings
2012-05-15 11:13 ` Manish Chopra [this message]
2012-05-15 17:14 ` [PATCH net-next 0/2] ethtool changes David Miller
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1337080419-31786-3-git-send-email-manish.chopra@qlogic.com \
--to=manish.chopra@qlogic.com \
--cc=Dept_NX_Linux_NIC_Driver@qlogic.com \
--cc=anirban.chakraborty@qlogic.com \
--cc=bhutchings@solarflare.com \
--cc=davem@davemloft.net \
--cc=netdev@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).