Thread (11 messages) flat view 11 messages, 3 authors, 2011-05-04

RE: [ethtool PATCH] FW dump support

From: <hidden>
Date: 2011-05-04 18:16:20

________________________________________
From: netdev-owner@vger.kernel.org [netdev-owner@vger.kernel.org] On Behalf Of Ben Hutchings [bhutchings@solarflare.com]
Sent: Wednesday, May 04, 2011 12:40 PM
To: anirban.chakraborty@qlogic.com
Cc: netdev@vger.kernel.org; --no-chain-reply-to@mv.qlogic.com; davem@davemloft.net
Subject: Re: [ethtool PATCH] FW dump support
On Mon, 2011-05-02 at 16:29 -0700, anirban.chakraborty@qlogic.com wrote:
quoted
From: Anirban Chakraborty <redacted>

Added support to take FW dump via ethtool.
[...]
quoted
--- a/ethtool.c
+++ b/ethtool.c
[...]
quoted
@@ -263,6 +270,12 @@ static struct option {
              "Get Rx ntuple filters and actions\n" },
     { "-P", "--show-permaddr", MODE_PERMADDR,
              "Show permanent hardware address" },
+    { "-W", "--get-dump", MODE_GET_DUMP,
+             "Get dump level\n" },
+    { "-Wd", "--get-dump-data", MODE_GET_DUMP_DATA,
+             "Get dump data", "FILENAME " "Name of the dump file\n" },
The short options should only include one letter.  Also the general
pattern is that 'get' options use lower-case letters and 'set' options
use upper-case letters.  No, I'm not sure how best to handle a set of 3
options.  Maybe you can combine --get-dump and --get-dump-data, making
the filename optional?
ethtool already has "-f" option to flash/write the FW image.
Can you use "-F" to get the FW dump data out?
And then may be, these options can be extended to get the get/set dump levels?

-Ajit
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help