]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
ixgbe: Add SFP support for missed 82598 PHY
authorAlexander Duyck <alexander.h.duyck@intel.com>
Thu, 21 Jul 2011 00:40:51 +0000 (00:40 +0000)
committerJoe Jin <joe.jin@oracle.com>
Thu, 17 May 2012 14:04:55 +0000 (22:04 +0800)
One of the 82598 phys was not being correctly identified as being SFP.
This change corrects that.

(cherry picked from commit 8917b447b75818823f4d0b7dc8cdd9248a4d5445)
Signed-off-by: Alexander Duyck <alexander.h.duyck@intel.com>
Tested-by: Phil Schmitt <phillip.j.schmitt@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Signed-off-by: Joe Jin <joe.jin@oracle.com>
drivers/net/ixgbe/ixgbe_main.c

index cc3f761e8f013de13888e2c36b978e05af4f6280..95af2f0e6107a24cae82586ca1e487deb73a89a4 100644 (file)
@@ -3450,6 +3450,9 @@ static inline bool ixgbe_is_sfp(struct ixgbe_hw *hw)
        case ixgbe_phy_sfp_active_unknown:
        case ixgbe_phy_sfp_ftl_active:
                return true;
+       case ixgbe_phy_nl:
+               if (hw->mac.type == ixgbe_mac_82598EB)
+                       return true;
        default:
                return false;
        }