Commit 75928b1e authored by Manish chopra's avatar Manish chopra Committed by David S. Miller

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: default avatarManish chopra <manish.chopra@qlogic.com>
Reviewed-by: default avatarBen Hutchings <bhutchings@solarflare.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent f8c5a875
...@@ -678,12 +678,17 @@ struct ethtool_flash { ...@@ -678,12 +678,17 @@ struct ethtool_flash {
* %ETHTOOL_SET_DUMP * %ETHTOOL_SET_DUMP
* @version: FW version of the dump, filled in by driver * @version: FW version of the dump, filled in by driver
* @flag: driver dependent flag for dump setting, filled in by driver during * @flag: driver dependent flag for dump setting, filled in by driver during
* get and filled in by ethtool for set operation * get and filled in by ethtool for set operation.
* flag must be initialized by macro ETH_FW_DUMP_DISABLE value when
* firmware dump is disabled.
* @len: length of dump data, used as the length of the user buffer on entry to * @len: length of dump data, used as the length of the user buffer on entry to
* %ETHTOOL_GET_DUMP_DATA and this is returned as dump length by driver * %ETHTOOL_GET_DUMP_DATA and this is returned as dump length by driver
* for %ETHTOOL_GET_DUMP_FLAG command * for %ETHTOOL_GET_DUMP_FLAG command
* @data: data collected for get dump data operation * @data: data collected for get dump data operation
*/ */
#define ETH_FW_DUMP_DISABLE 0
struct ethtool_dump { struct ethtool_dump {
__u32 cmd; __u32 cmd;
__u32 version; __u32 version;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment