commit de34b1674cb0b876bc49344ec82a070984b02fb0 Author: Andrey V. Elsukov Date: Wed Aug 30 21:22:21 2017 +0300 Add a hack to support 10G-SR SFP+ modules on Intel 82598 DA cards. diff --git a/sys/dev/ixgbe/ixgbe_phy.c b/sys/dev/ixgbe/ixgbe_phy.c index 88206c7f9cb..5caadba8ae5 100644 --- a/sys/dev/ixgbe/ixgbe_phy.c +++ b/sys/dev/ixgbe/ixgbe_phy.c @@ -1892,6 +1892,11 @@ s32 ixgbe_get_sfp_init_sequence_offsets(struct ixgbe_hw *hw, (hw->phy.sfp_type == ixgbe_sfp_type_da_cu)) return IXGBE_ERR_SFP_NOT_SUPPORTED; + /* XXX: hack for 10G-SR support on 0x10F1 cards */ + if ((hw->device_id == IXGBE_DEV_ID_82598_DA_DUAL_PORT) && + (hw->phy.sfp_type == ixgbe_sfp_type_sr)) + sfp_type = ixgbe_sfp_type_da_cu; + /* * Limiting active cables and 1G Phys must be initialized as * SR modules