@@ -105,7 +105,7 @@ static int ixgbevf_get_settings(struct net_device *netdev,
ecmd->port = -1;
hw->mac.get_link_status = true;
- hw->mac.ops.check_link(hw, &link_speed, &link_up, false);
+ hw->mac.ops.check_link(hw, &link_speed, &link_up);
if (link_up) {
__u32 speed = SPEED_10000;
@@ -541,7 +541,7 @@ static int ixgbevf_link_test(struct ixgbevf_adapter *adapter, u64 *data)
u32 link_speed = 0;
*data = 0;
- hw->mac.ops.check_link(hw, &link_speed, &link_up, true);
+ hw->mac.ops.check_link(hw, &link_speed, &link_up);
if (!link_up)
*data = 1;
@@ -2839,7 +2839,7 @@ static void ixgbevf_watchdog_update_link(struct ixgbevf_adapter *adapter)
spin_lock_bh(&adapter->mbx_lock);
- err = hw->mac.ops.check_link(hw, &link_speed, &link_up, false);
+ err = hw->mac.ops.check_link(hw, &link_speed, &link_up);
spin_unlock_bh(&adapter->mbx_lock);
@@ -617,14 +617,12 @@ static s32 ixgbevf_hv_set_vfta_vf(struct ixgbe_hw *hw, u32 vlan, u32 vind,
* @hw: pointer to hardware structure
* @speed: Unused in this implementation
* @autoneg: Unused in this implementation
- * @autoneg_wait_to_complete: Unused in this implementation
*
* Do nothing and return success. VF drivers are not allowed to change
* global settings. Maintained for driver compatibility.
**/
static s32 ixgbevf_setup_mac_link_vf(struct ixgbe_hw *hw,
- ixgbe_link_speed speed, bool autoneg,
- bool autoneg_wait_to_complete)
+ ixgbe_link_speed speed, bool autoneg)
{
return 0;
}
@@ -634,14 +632,12 @@ static s32 ixgbevf_setup_mac_link_vf(struct ixgbe_hw *hw,
* @hw: pointer to hardware structure
* @speed: pointer to link speed
* @link_up: true is link is up, false otherwise
- * @autoneg_wait_to_complete: true when waiting for completion is needed
*
* Reads the links register to determine if link is up and the current speed
**/
static s32 ixgbevf_check_mac_link_vf(struct ixgbe_hw *hw,
ixgbe_link_speed *speed,
- bool *link_up,
- bool autoneg_wait_to_complete)
+ bool *link_up)
{
struct ixgbe_mbx_info *mbx = &hw->mbx;
struct ixgbe_mac_info *mac = &hw->mac;
@@ -722,8 +718,7 @@ out:
*/
static s32 ixgbevf_hv_check_mac_link_vf(struct ixgbe_hw *hw,
ixgbe_link_speed *speed,
- bool *link_up,
- bool autoneg_wait_to_complete)
+ bool *link_up)
{
struct ixgbe_mbx_info *mbx = &hw->mbx;
struct ixgbe_mac_info *mac = &hw->mac;
@@ -54,8 +54,8 @@ struct ixgbe_mac_operations {
s32 (*negotiate_api_version)(struct ixgbe_hw *hw, int api);
/* Link */
- s32 (*setup_link)(struct ixgbe_hw *, ixgbe_link_speed, bool, bool);
- s32 (*check_link)(struct ixgbe_hw *, ixgbe_link_speed *, bool *, bool);
+ s32 (*setup_link)(struct ixgbe_hw *, ixgbe_link_speed, bool);
+ s32 (*check_link)(struct ixgbe_hw *, ixgbe_link_speed *, bool *);
s32 (*get_link_capabilities)(struct ixgbe_hw *, ixgbe_link_speed *,
bool *);