Skip to content
  • Emil Tantilov's avatar
    ixgbe: fix detection of SFP+ capable interfaces · d9cd46cd
    Emil Tantilov authored
    
    
    In cases where the driver is loaded while there are no SFP+ modules in
    the cage the interface was not being detected as SFP capable. To account
    for this the driver called identify_sfp in ixgbe_get_settings to make
    sure the data is correct. However when there is no SFP+ module in the cage
    the driver waits for the I2C reads to time out which can take more than a
    second and will cause issues with tools (like net-snmp) that may poll
    for that information.
    
    This patch resolves the issue by identifying interfaces with no PHY
    type set as SFP capable which allows the driver to detect the SFP module
    when the interface is brought up. As result of this we can also remove the
    identify_sfp call from ixgbe_get_settings.
    
    v2: remove the 82599 specific check since we have 82598 devices that are SFP
    capable.
    
    Signed-off-by: default avatarEmil Tantilov <emil.s.tantilov@intel.com>
    Tested-by: default avatarPhil Schmitt <phillip.j.schmitt@intel.com>
    Signed-off-by: default avatarJeff Kirsher <jeffrey.t.kirsher@intel.com>
    d9cd46cd