ixgbe: add support for QSFP PHY types in ixgbe_get_settings()
authorEmil Tantilov <emil.s.tantilov@intel.com>
Mon, 9 Nov 2015 23:07:12 +0000 (15:07 -0800)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Wed, 30 Dec 2015 03:16:06 +0000 (19:16 -0800)
Add missing QSFP PHY types to allow for more accurate reporting of
port 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

index 1ed4c9add00db94f5586396f8e7aa29d9861db11..e10d197b6a04135b4e22fbc52ea94c3ebc747323 100644 (file)
@@ -225,6 +225,10 @@ static int ixgbe_get_settings(struct net_device *netdev,
        case ixgbe_phy_sfp_avago:
        case ixgbe_phy_sfp_intel:
        case ixgbe_phy_sfp_unknown:
+       case ixgbe_phy_qsfp_passive_unknown:
+       case ixgbe_phy_qsfp_active_unknown:
+       case ixgbe_phy_qsfp_intel:
+       case ixgbe_phy_qsfp_unknown:
                /* SFP+ devices, further checking needed */
                switch (adapter->hw.phy.sfp_type) {
                case ixgbe_sfp_type_da_cu: