On 5/22/2024 10:23, Sasha Neftin wrote:
The commit 01cf893bf0f4 ("net: intel: i40e/igc: Remove setting Autoneg in
EEE capabilities") removed SUPPORTED_Autoneg field but left inappropriate
ethtool_keee structure initialization. When "ethtool --show <device>"
(get_eee) invoke, the 'ethtool_keee' structure was accidentally overridden.
Remove the 'ethtool_keee' overriding and add EEE declaration as per IEEE
specification that allows reporting Energy Efficient Ethernet capabilities.

Examples:
Before fix:
ethtool --show-eee enp174s0
EEE settings for enp174s0:
        EEE status: not supported

After fix:
EEE settings for enp174s0:
        EEE status: disabled
        Tx LPI: disabled
        Supported EEE link modes:  100baseT/Full
                                   1000baseT/Full
                                   2500baseT/Full

Fixes: 01cf893bf0f4 ("net: intel: i40e/igc: Remove setting Autoneg in EEE 
capabilities")
Suggested-by: Dima Ruinskiy <[email protected]>
Signed-off-by: Sasha Neftin <[email protected]>
---
  drivers/net/ethernet/intel/igc/igc_ethtool.c | 9 +++++++--
  drivers/net/ethernet/intel/igc/igc_main.c    | 4 ++++
  2 files changed, 11 insertions(+), 2 deletions(-)

Tested-by: Naama Meir <[email protected]>

Reply via email to