aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorManish chopra <manish.chopra@qlogic.com>2012-05-14 21:13:38 -0400
committerDavid S. Miller <davem@davemloft.net>2012-05-15 13:13:33 -0400
commit75928b1e80648ae51606c89ae441c85648d261c0 (patch)
tree9affd12c96b7cd632b36d5ceca74a44b3b5668bc /include
parentf8c5a875c9124cb6439f0c97ada3570faa0d6860 (diff)
linux/ethtool: Added macro ETH_FW_DUMP_DISABLE
o flag field of ethtool_dump structure must be initialized by this macro value that is zero, if the firmware dump is disabled. by this we can get the firmware dump capability [enable/disable] via ethtool Signed-off-by: Manish chopra <manish.chopra@qlogic.com> Reviewed-by: Ben Hutchings <bhutchings@solarflare.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include')
-rw-r--r--include/linux/ethtool.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/include/linux/ethtool.h b/include/linux/ethtool.h
index 47872540c080..e17fa7140588 100644
--- a/include/linux/ethtool.h
+++ b/include/linux/ethtool.h
@@ -678,12 +678,17 @@ struct ethtool_flash {
678 * %ETHTOOL_SET_DUMP 678 * %ETHTOOL_SET_DUMP
679 * @version: FW version of the dump, filled in by driver 679 * @version: FW version of the dump, filled in by driver
680 * @flag: driver dependent flag for dump setting, filled in by driver during 680 * @flag: driver dependent flag for dump setting, filled in by driver during
681 * get and filled in by ethtool for set operation 681 * get and filled in by ethtool for set operation.
682 * flag must be initialized by macro ETH_FW_DUMP_DISABLE value when
683 * firmware dump is disabled.
682 * @len: length of dump data, used as the length of the user buffer on entry to 684 * @len: length of dump data, used as the length of the user buffer on entry to
683 * %ETHTOOL_GET_DUMP_DATA and this is returned as dump length by driver 685 * %ETHTOOL_GET_DUMP_DATA and this is returned as dump length by driver
684 * for %ETHTOOL_GET_DUMP_FLAG command 686 * for %ETHTOOL_GET_DUMP_FLAG command
685 * @data: data collected for get dump data operation 687 * @data: data collected for get dump data operation
686 */ 688 */
689
690#define ETH_FW_DUMP_DISABLE 0
691
687struct ethtool_dump { 692struct ethtool_dump {
688 __u32 cmd; 693 __u32 cmd;
689 __u32 version; 694 __u32 version;