netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [RFC] ethtool: Display reg dump length via get driver info.
@ 2011-03-18 21:06 Ajit Khaparde
  2011-03-18 21:32 ` Ben Hutchings
  0 siblings, 1 reply; 8+ messages in thread
From: Ajit Khaparde @ 2011-03-18 21:06 UTC (permalink / raw)
  To: netdev; +Cc: bhutchings, ajit.khaparde

Devices like BE store Reg Dump Data in the hardware.
This change will allow to just peek into the hardware
to see if any data is available for a dump and analysis,
without actually dumping the register data.

Patch:
----

Signed-off-by: Ajit Khaparde <ajit.khaparde@emulex.com>
---
 ethtool.c |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/ethtool.c b/ethtool.c
index e9cb2c9..a0c7c99 100644
--- a/ethtool.c
+++ b/ethtool.c
@@ -1423,11 +1423,13 @@ static int dump_drvinfo(struct ethtool_drvinfo *info)
 		"driver: %s\n"
 		"version: %s\n"
 		"firmware-version: %s\n"
-		"bus-info: %s\n",
+		"bus-info: %s\n"
+		"regdump-len: %d\n",
 		info->driver,
 		info->version,
 		info->fw_version,
-		info->bus_info);
+		info->bus_info,
+		info->regdump_len);
 
 	return 0;
 }
-- 
1.7.1


^ permalink raw reply related	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2011-03-23 17:18 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-03-18 21:06 [RFC] ethtool: Display reg dump length via get driver info Ajit Khaparde
2011-03-18 21:32 ` Ben Hutchings
2011-03-18 21:52   ` Ajit.Khaparde
2011-03-18 22:00     ` Ben Hutchings
2011-03-18 22:07       ` Ajit.Khaparde
2011-03-18 22:44         ` [PATCH ethtool] ethtool: Report driver features described in struct ethtool_drvinfo Ben Hutchings
2011-03-19  8:04           ` Ajit.Khaparde
2011-03-23 17:18           ` Ben Hutchings

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).