diff options
author | Mallikarjuna R Chilakala <mallikarjuna.chilakala@intel.com> | 2009-09-01 09:49:35 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-09-01 20:40:14 -0400 |
commit | 8620a103b5e38d952280f3d97b5e1bcce8d7874c (patch) | |
tree | edb7b63d24fe6208529cef8fadffbdcd12972f6e /drivers/net/ixgbe/ixgbe_ethtool.c | |
parent | fd38d7a0a0618656e491ed67af735bc4e3600367 (diff) |
ixgbe: refactor link setup code
Link code cleanup: a number of redundant functions and MAC variables are cleaned up,
with some functions being consolidated into a single-purpose code path.
Removed following deprecated link functions and mac variables
* ixgbe_setup_copper_link_speed_82598
* ixgbe_setup_mac_link_speed_multispeed_fiber
* ixgbe_setup_mac_link_speed_82599
* mac.autoneg, mac.autoneg_succeeded, phy.autoneg_wait_to_complete
Signed-off-by: Mallikarjuna R Chilakala <mallikarjuna.chilakala@intel.com>
Acked-by: Peter P Waskiewicz Jr <peter.p.waskiewicz.jr@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ixgbe/ixgbe_ethtool.c')
-rw-r--r-- | drivers/net/ixgbe/ixgbe_ethtool.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/ixgbe/ixgbe_ethtool.c b/drivers/net/ixgbe/ixgbe_ethtool.c index 1444ec512536..026e94a99849 100644 --- a/drivers/net/ixgbe/ixgbe_ethtool.c +++ b/drivers/net/ixgbe/ixgbe_ethtool.c | |||
@@ -233,11 +233,11 @@ static int ixgbe_set_settings(struct net_device *netdev, | |||
233 | return err; | 233 | return err; |
234 | /* this sets the link speed and restarts auto-neg */ | 234 | /* this sets the link speed and restarts auto-neg */ |
235 | hw->mac.autotry_restart = true; | 235 | hw->mac.autotry_restart = true; |
236 | err = hw->mac.ops.setup_link_speed(hw, advertised, true, true); | 236 | err = hw->mac.ops.setup_link(hw, advertised, true, true); |
237 | if (err) { | 237 | if (err) { |
238 | DPRINTK(PROBE, INFO, | 238 | DPRINTK(PROBE, INFO, |
239 | "setup link failed with code %d\n", err); | 239 | "setup link failed with code %d\n", err); |
240 | hw->mac.ops.setup_link_speed(hw, old, true, true); | 240 | hw->mac.ops.setup_link(hw, old, true, true); |
241 | } | 241 | } |
242 | } else { | 242 | } else { |
243 | /* in this case we currently only support 10Gb/FULL */ | 243 | /* in this case we currently only support 10Gb/FULL */ |