diff options
Diffstat (limited to 'drivers/net/ixgbe/ixgbe_main.c')
-rw-r--r-- | drivers/net/ixgbe/ixgbe_main.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/ixgbe/ixgbe_main.c b/drivers/net/ixgbe/ixgbe_main.c index 30d8c0e41a9d..fce2ef49b3a7 100644 --- a/drivers/net/ixgbe/ixgbe_main.c +++ b/drivers/net/ixgbe/ixgbe_main.c | |||
@@ -4506,7 +4506,8 @@ static void ixgbe_multispeed_fiber_task(struct work_struct *work) | |||
4506 | u32 autoneg; | 4506 | u32 autoneg; |
4507 | 4507 | ||
4508 | adapter->flags |= IXGBE_FLAG_IN_SFP_LINK_TASK; | 4508 | adapter->flags |= IXGBE_FLAG_IN_SFP_LINK_TASK; |
4509 | if (hw->mac.ops.get_link_capabilities) | 4509 | autoneg = hw->phy.autoneg_advertised; |
4510 | if ((!autoneg) && (hw->mac.ops.get_link_capabilities)) | ||
4510 | hw->mac.ops.get_link_capabilities(hw, &autoneg, | 4511 | hw->mac.ops.get_link_capabilities(hw, &autoneg, |
4511 | &hw->mac.autoneg); | 4512 | &hw->mac.autoneg); |
4512 | if (hw->mac.ops.setup_link_speed) | 4513 | if (hw->mac.ops.setup_link_speed) |