From 2edf56749abe006f6a68c9c21a2a249d29345a01 Mon Sep 17 00:00:00 2001 From: Stuart Hodgson Date: Fri, 18 May 2012 15:58:45 +0100 Subject: 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 Signed-off-by: Ben Hutchings --- test-cmdline.c | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'test-cmdline.c') 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" }, -- cgit v1.2.1