]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
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)
committerChuck Anderson <chuck.anderson@oracle.com>
Wed, 6 Jul 2016 23:40:38 +0000 (16:40 -0700)
Orabug: 23177316

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>
(cherry picked from commit af56b4d865bf40e031df9118b0663ebf406ff121)
Signed-off-by: Brian Maly <brian.maly@oracle.com>
drivers/net/ethernet/intel/ixgbe/ixgbe_ethtool.c

index 05590181cc350c6a591f761fb20597a7710d08c9..5dd8e6369576c1ecc4e9e0fd18ff15ecc64f468f 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: