diff options
author | Stuart Hodgson <smhodgson@solarflare.com> | 2012-05-18 15:58:45 +0100 |
---|---|---|
committer | Ben Hutchings <bhutchings@solarflare.com> | 2012-05-23 00:59:51 +0100 |
commit | 2edf56749abe006f6a68c9c21a2a249d29345a01 (patch) | |
tree | 2cfa7c4ff2a4c3658251bc031ad72703f41cd81a /test-cmdline.c | |
parent | 0d53f25de6f4f4499da2736805b652c0f2b51f99 (diff) | |
download | ethtool-2edf56749abe006f6a68c9c21a2a249d29345a01.tar.gz |
ethtool: Addition of -m option to dump module eeprom
The -m option now allows for retrieval of EEPROM
information form a plug in module such as SFP+. This
shows specific information about the type and
capabilities of the module in use The format can be
easily extended to support other modules types such as
QSFP in future. Raw data dump is also supported.
Signed-off-by: Stuart Hodgson <smhodgson@solarflare.com>
Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
Diffstat (limited to 'test-cmdline.c')
-rw-r--r-- | test-cmdline.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test-cmdline.c b/test-cmdline.c index 1e0292b..c30b0e6 100644 --- a/test-cmdline.c +++ b/test-cmdline.c @@ -213,6 +213,16 @@ static struct test_case { { 0, "--show-priv-flags devname" }, { 1, "--show-priv-flags devname foo" }, { 1, "--show-priv-flags" }, + { 1, "-m" }, + { 0, "-m devname" }, + { 1, "--dump-module-eeprom" }, + { 0, "--dump-module-eeprom devname" }, + { 0, "-m devname raw on" }, + { 0, "-m devname raw off" }, + { 0, "-m devname hex on" }, + { 0, "-m devname hex off" }, + { 1, "-m devname hex on raw on" }, + { 0, "-m devname offset 4 length 6" }, /* can't test --set-priv-flags yet */ { 0, "-h" }, { 0, "--help" }, |