|
@@ -160,6 +160,13 @@ static int ixgbe_get_settings(struct net_device *netdev,
|
|
|
bool autoneg = false;
|
|
|
bool link_up;
|
|
|
|
|
|
+ /* SFP type is needed for get_link_capabilities */
|
|
|
+ if (hw->phy.media_type & (ixgbe_media_type_fiber |
|
|
|
+ ixgbe_media_type_fiber_qsfp)) {
|
|
|
+ if (hw->phy.sfp_type == ixgbe_sfp_type_not_present)
|
|
|
+ hw->phy.ops.identify_sfp(hw);
|
|
|
+ }
|
|
|
+
|
|
|
hw->mac.ops.get_link_capabilities(hw, &supported_link, &autoneg);
|
|
|
|
|
|
/* set the supported link speeds */
|