• Paul M Stillwell Jr's avatar
    ice: add 1G SGMII PHY type · c2b35226
    Paul M Stillwell Jr authored
    There isn't a case for 1G SGMII in ice_get_media_type() so add
    the handling for it.
    
    Also handle the special case where some direct attach
    cables may report that they support 1G SGMII, but
    that is erroneous since SGMII is supposed to be a
    backplane media type (between a MAC and a PHY). If
    the driver doesn't handle this special case then a
    user could see the 'Port' in ethtool change from
    'Direct attach Copper' to 'Backplane' when they have
    forced the speed to 1G, but the cable hasn't changed.
    
    Lastly, change ice_aq_get_phy_caps() to save the
    module_type info if the function was called with
    ICE_AQC_REPORT_TOPO_CAP. This call uses the media
    information to populate the module_type. If no
    media is present then the values in module_type
    will be 0.
    Signed-off-by: default avatarPaul M Stillwell Jr <paul.m.stillwell.jr@intel.com>
    Tested-by: default avatarAndrew Bowers <andrewx.bowers@intel.com>
    Signed-off-by: default avatarTony Nguyen <anthony.l.nguyen@intel.com>
    c2b35226
ice_adminq_cmd.h 63.3 KB