diff options
author | Mallikarjuna R Chilakala <mallikarjuna.chilakala@intel.com> | 2009-06-04 07:11:34 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-06-07 08:20:19 -0400 |
commit | 74766013a131f1e1c2fe8fd138e12841eb708060 (patch) | |
tree | d5f43b46ca73fb4ddf27cb9e4def521e93286039 /drivers/net/ixgbe/ixgbe_82599.c | |
parent | 620fa036b2459ca9acf7484c8074147f0dda68da (diff) |
ixgbe: ethtool support to change advertised link modes of 82599 adapters
Add ethtool support to change advertised link modes/autoneg settings of
82599 multispeed fiber adapters.
Signed-off-by: Mallikarjuna R Chilakala <mallikarjuna.chilakala@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_82599.c')
-rw-r--r-- | drivers/net/ixgbe/ixgbe_82599.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/drivers/net/ixgbe/ixgbe_82599.c b/drivers/net/ixgbe/ixgbe_82599.c index 4d83e5916593..3f36d834ccfd 100644 --- a/drivers/net/ixgbe/ixgbe_82599.c +++ b/drivers/net/ixgbe/ixgbe_82599.c | |||
@@ -464,6 +464,15 @@ s32 ixgbe_setup_mac_link_speed_multispeed_fiber(struct ixgbe_hw *hw, | |||
464 | hw->mac.ops.get_link_capabilities(hw, &phy_link_speed, &negotiation); | 464 | hw->mac.ops.get_link_capabilities(hw, &phy_link_speed, &negotiation); |
465 | speed &= phy_link_speed; | 465 | speed &= phy_link_speed; |
466 | 466 | ||
467 | /* Set autoneg_advertised value based on input link speed */ | ||
468 | hw->phy.autoneg_advertised = 0; | ||
469 | |||
470 | if (speed & IXGBE_LINK_SPEED_10GB_FULL) | ||
471 | hw->phy.autoneg_advertised |= IXGBE_LINK_SPEED_10GB_FULL; | ||
472 | |||
473 | if (speed & IXGBE_LINK_SPEED_1GB_FULL) | ||
474 | hw->phy.autoneg_advertised |= IXGBE_LINK_SPEED_1GB_FULL; | ||
475 | |||
467 | /* | 476 | /* |
468 | * When the driver changes the link speeds that it can support, | 477 | * When the driver changes the link speeds that it can support, |
469 | * it sets autotry_restart to true to indicate that we need to | 478 | * it sets autotry_restart to true to indicate that we need to |