diff options
author | Yuval Mintz <yuvalmin@broadcom.com> | 2012-06-10 11:48:08 +0300 |
---|---|---|
committer | Ben Hutchings <bhutchings@solarflare.com> | 2012-07-16 23:43:13 +0100 |
commit | a9fc82761fe39a6b0593351d912d6796515fc065 (patch) | |
tree | fd6aa1956b6a00566cc3b7b9ffbc3ea306f7533a /test-cmdline.c | |
parent | 7a9bac28a46495c88c9008d8d4c5dda7d8b4a84f (diff) | |
download | ethtool-a9fc82761fe39a6b0593351d912d6796515fc065.tar.gz |
Ethtool: Add EEE support
This patch adds 2 new ethtool commands which can be
used to manipulate network interfaces' support in
EEE.
Output of 'get' has the following form:
EEE Settings for p2p1:
EEE status: enabled - active
Tx LPI: 1000 (us)
Supported EEE link modes: 10000baseT/Full
Advertised EEE link modes: 10000baseT/Full
Link partner advertised EEE link modes: 10000baseT/Full
Thanks goes to Giuseppe Cavallaro for his original patch.
Signed-off-by: Yuval Mintz <yuvalmin@broadcom.com>
Signed-off-by: Eilon Greenstein <eilong@broadcom.com>
Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
Diffstat (limited to 'test-cmdline.c')
-rw-r--r-- | test-cmdline.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/test-cmdline.c b/test-cmdline.c index 978c312..a09fcec 100644 --- a/test-cmdline.c +++ b/test-cmdline.c @@ -217,6 +217,17 @@ static struct test_case { { 0, "-m devname hex off" }, { 1, "-m devname hex on raw on" }, { 0, "-m devname offset 4 length 6" }, + { 1, "--show-eee" }, + { 0, "--show-eee devname" }, + { 1, "--show-eee devname foo" }, + { 1, "--set-eee" }, + { 1, "--set-eee devname" }, + { 0, "--set-eee devname eee on" }, + { 0, "--set-eee devname eee off" }, + { 0, "--set-eee devname tx-lpi on" }, + { 0, "--set-eee devname tx-lpi off" }, + { 1, "--set-eee devname tx-timer foo" }, + { 1, "--set-eee devname advertise foo" }, /* can't test --set-priv-flags yet */ { 0, "-h" }, { 0, "--help" }, |