]> www.infradead.org Git - users/dwmw2/linux.git/commit
igc: Add Energy Efficient Ethernet ability
authorSasha Neftin <sasha.neftin@intel.com>
Sat, 13 Jul 2024 19:02:09 +0000 (22:02 +0300)
committerTony Nguyen <anthony.l.nguyen@intel.com>
Fri, 30 Aug 2024 14:43:29 +0000 (07:43 -0700)
commitad7dffae4e40b5ed3b145b08625a4b1a9725211f
tree637fd679a952cf4b1d9dc396465117115799c985
parent8dcf2c212078d8ac0714ae872a5496a36eda21e6
igc: Add Energy Efficient Ethernet ability

According to the IEEE standard report the EEE ability (registers 7.60 and
7.62) and the EEE Link Partner ability (registers 7.61 and 7.63). Use the
kernel's 'ethtool_keee' structure and report EEE link modes.

Example:
ethtool --show-eee <device>

Before:
Advertised EEE link modes:  Not reported
Link partner advertised EEE link modes:  Not reported

After:
Advertised EEE link modes:  100baseT/Full
                            1000baseT/Full
                            2500baseT/Full
Link partner advertised EEE link modes:  100baseT/Full
                                         1000baseT/Full
                                         2500baseT/Full

Signed-off-by: Sasha Neftin <sasha.neftin@intel.com>
Tested-by: Avigail Dahan <avigailx.dahan@intel.com>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
drivers/net/ethernet/intel/igc/igc_defines.h
drivers/net/ethernet/intel/igc/igc_ethtool.c
drivers/net/ethernet/intel/igc/igc_regs.h