linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net] ixgbe: recognize 1000BaseLX SFP modules as 1Gbps
@ 2018-11-24 20:57 Josh Elsasser
  2018-11-25 11:07 ` Bjørn Mork
  2018-11-26 23:35 ` Bowers, AndrewX
  0 siblings, 2 replies; 9+ messages in thread
From: Josh Elsasser @ 2018-11-24 20:57 UTC (permalink / raw)
  To: intel-wired-lan
  Cc: Josh Elsasser, Jeff Kirsher, David S. Miller, netdev, linux-kernel

Add the two 1000BaseLX enum values to the X550's check for 1Gbps modules,
allowing the core driver code to establish a link over this SFP type.

This is done by the out-of-tree driver but the fix wasn't in mainline.

Fixes: 6a14ee0cfb19 ("ixgbe: Add X550 support function pointers")
Signed-off-by: Josh Elsasser <jelsasser@appneta.com>
---
 drivers/net/ethernet/intel/ixgbe/ixgbe_x550.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/drivers/net/ethernet/intel/ixgbe/ixgbe_x550.c b/drivers/net/ethernet/intel/ixgbe/ixgbe_x550.c
index 10dbaf4f6e80..9c42f741ed5e 100644
--- a/drivers/net/ethernet/intel/ixgbe/ixgbe_x550.c
+++ b/drivers/net/ethernet/intel/ixgbe/ixgbe_x550.c
@@ -2262,7 +2262,9 @@ static s32 ixgbe_get_link_capabilities_X550em(struct ixgbe_hw *hw,
 		*autoneg = false;
 
 		if (hw->phy.sfp_type == ixgbe_sfp_type_1g_sx_core0 ||
-		    hw->phy.sfp_type == ixgbe_sfp_type_1g_sx_core1) {
+		    hw->phy.sfp_type == ixgbe_sfp_type_1g_sx_core1 ||
+		    hw->phy.sfp_type == ixgbe_sfp_type_1g_lx_core0 ||
+		    hw->phy.sfp_type == ixgbe_sfp_type_1g_lx_core1) {
 			*speed = IXGBE_LINK_SPEED_1GB_FULL;
 			return 0;
 		}
-- 
2.19.1


^ permalink raw reply related	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2018-11-27 18:07 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-11-24 20:57 [PATCH net] ixgbe: recognize 1000BaseLX SFP modules as 1Gbps Josh Elsasser
2018-11-25 11:07 ` Bjørn Mork
2018-11-26 17:54   ` Josh Elsasser
2018-11-26 23:52     ` Jeff Kirsher
2018-11-27  0:54       ` [Intel-wired-lan] " Josh Elsasser
2018-11-27  4:52         ` David Miller
2018-11-27 16:27           ` Jeff Kirsher
2018-11-27 18:07           ` Florian Fainelli
2018-11-26 23:35 ` Bowers, AndrewX

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).