path: root/
diff options
authorYuval Mintz <>2012-06-10 11:48:08 +0300
committerBen Hutchings <>2012-07-16 23:43:13 +0100
commita9fc82761fe39a6b0593351d912d6796515fc065 (patch)
treefd6aa1956b6a00566cc3b7b9ffbc3ea306f7533a /
parent7a9bac28a46495c88c9008d8d4c5dda7d8b4a84f (diff)
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 <> Signed-off-by: Eilon Greenstein <> Signed-off-by: Ben Hutchings <>
Diffstat (limited to '')
1 files changed, 32 insertions, 0 deletions
diff --git a/ b/
index cf2a09c..ff3255b 100644
--- a/
+++ b/
@@ -325,6 +325,16 @@ ethtool \- query or control network driver and hardware settings
.I devname flag
.A1 on off
.RB ...
+.B ethtool \-\-show\-eee
+.I devname
+.B ethtool \-\-set\-eee
+.I devname
+.B2 eee on off
+.B2 tx-lpi on off
+.BN tx-timer
+.BN advertise
.\" Adjust lines (i.e. full justification) and hyphenate.
@@ -810,6 +820,28 @@ Sets the device's private flags as specified.
.I flag
.A1 on off
Sets the state of the named private flag.
+.B \-\-show\-eee
+Queries the specified network device for its support of Efficient Energy
+Ethernet (according to the IEEE 802.3az specifications)
+.B \-\-set\-eee
+Sets the device EEE behaviour.
+.A2 eee on off
+Enables/disables the device support of EEE.
+.A2 tx-lpi on off
+Determines whether the device should assert its Tx LPI.
+.BI advertise \ N
+Sets the speeds for which the device should advertise EEE capabiliities.
+Values are as for
+.B \-\-change advertise
+.BI tx-timer \ N
+Sets the amount of time the device should stay in idle mode prior to asserting
+its Tx LPI (in microseconds). This has meaning only when Tx LPI is enabled.
Not supported (in part or whole) on all network drivers.