mirror of
https://github.com/torvalds/linux.git
synced 2026-05-03 14:02:43 -04:00
ixgbe: autoneg variable refactoring
Removes the autoneg parameter from the setup_link functions. Adds local variable autoneg to setup_link functions to be passed to get_link_capabilities functions if needed. Signed-off-by: Josh Hay <joshua.a.hay@intel.com> Tested-by: Phil Schmitt <phillip.j.schmitt@intel.com>
This commit is contained in:
@@ -4012,7 +4012,7 @@ static int ixgbe_non_sfp_link_config(struct ixgbe_hw *hw)
|
||||
goto link_cfg_out;
|
||||
|
||||
if (hw->mac.ops.setup_link)
|
||||
ret = hw->mac.ops.setup_link(hw, speed, autoneg, link_up);
|
||||
ret = hw->mac.ops.setup_link(hw, speed, link_up);
|
||||
link_cfg_out:
|
||||
return ret;
|
||||
}
|
||||
@@ -5755,7 +5755,7 @@ static void ixgbe_sfp_link_config_subtask(struct ixgbe_adapter *adapter)
|
||||
if ((!speed) && (hw->mac.ops.get_link_capabilities))
|
||||
hw->mac.ops.get_link_capabilities(hw, &speed, &autoneg);
|
||||
if (hw->mac.ops.setup_link)
|
||||
hw->mac.ops.setup_link(hw, speed, autoneg, true);
|
||||
hw->mac.ops.setup_link(hw, speed, true);
|
||||
|
||||
adapter->flags |= IXGBE_FLAG_NEED_LINK_UPDATE;
|
||||
adapter->link_check_timeout = jiffies;
|
||||
|
||||
Reference in New Issue
Block a user