• Steve Shih's avatar
    e1000e: fix ethtool autoneg off for non-copper · e11f303e
    Steve Shih authored
    This patch fixes the issues for disabling auto-negotiation and forcing
    speed and duplex settings for the non-copper media.
    
    For non-copper media, e1000_get_settings should return ETH_TP_MDI_INVALID for
    eth_tp_mdix_ctrl instead of ETH_TP_MDI_AUTO so subsequent e1000_set_settings
    call would not fail with -EOPNOTSUPP.
    
    e1000_set_spd_dplx should not automatically turn autoneg back on for forced
    1000 Mbps full duplex settings for non-copper media.
    
    Cc: xe-kernel@external.cisco.com
    Cc: Daniel Walker <dwalker@fifo99.com>
    Signed-off-by: default avatarSteve Shih <sshih@cisco.com>
    Tested-by: default avatarAaron Brown <aaron.f.brown@intel.com>
    Signed-off-by: default avatarJeff Kirsher <jeffrey.t.kirsher@intel.com>
    e11f303e
ethtool.c 62.9 KB