From fd3dc7be2449dc1b7950fcf22dbc2cf5a6504fa2 Mon Sep 17 00:00:00 2001 From: Stephen Hemminger Date: Mon, 23 Oct 2006 10:57:03 -0700 Subject: ethtool: flie option to register dump Add ability to take old raw dumps from a file and decode them. It is kind of limited because you still need to have same device as the raw file, but useful for maintainers to decode raw dumps. Signed-off-by: Stephen Hemminger Signed-off-by: Jeff Garzik --- ethtool.8 | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'ethtool.8') diff --git a/ethtool.8 b/ethtool.8 index 679f6bc..bffde30 100644 --- a/ethtool.8 +++ b/ethtool.8 @@ -126,6 +126,8 @@ ethtool \- Display or change ethernet card settings .B ethtool \-d|\-\-register\-dump .I ethX .B2 raw on off +.RB [ file +.IR name ] .B ethtool \-e|\-\-eeprom\-dump .I ethX @@ -244,7 +246,16 @@ queries the specified ethernet device for associated driver information. .TP .B \-d \-\-register\-dump retrieves and prints a register dump for the specified ethernet device. -When raw is enabled, then it dumps the raw register data to stdout. +The register format for some devices is known and decoded others +are printed in hex. +When +.I raw +is enabled, then it dumps the raw register data to stdout. +If +.I file +is specified, then use contents of previous raw register dump, rather +than reading from the device. + .TP .B \-e \-\-eeprom\-dump retrieves and prints an EEPROM dump for the specified ethernet device. -- cgit v1.2.1