ixgbe: fix ethtool reporting of supported links for SFP modules
authorEmil Tantilov <emil.s.tantilov@intel.com>
Sat, 31 Aug 2013 03:08:20 +0000 (03:08 +0000)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Fri, 13 Sep 2013 16:58:12 +0000 (09:58 -0700)
commit0f8fdab1334cbd7e65b705cb5db6c3c1d757ffa0
treeb94438fcaf62587d25f74efcafda39b4adb79d77
parented33ff66d8064e7b84459ad8ba49aad4cc67c269
ixgbe: fix ethtool reporting of supported links for SFP modules

This patch resolves an issue where the driver will display incorrect info
for Q/SFP+ modules that were inserted after the driver has been loaded.

This patch adds a call to identify_phy() in ixgbe_get_settings() prior to
calling get_link_capabilities() which needs the PHY data in order to
determine the correct settings.

Signed-off-by: Emil Tantilov <emil.s.tantilov@intel.com>
Tested-by: Phil Schmitt <phillip.j.schmitt@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/ixgbe/ixgbe_ethtool.c