Skip to content

Commit

Permalink
ixgbe: Properly display 1 gig downshift warning for backplane
Browse files Browse the repository at this point in the history
Description: When using Intel smartspeed, the patch displays a
warning when the link down shifts to 1 Gig.

Signed-off-by: Anjali Singhai <anjali.singhai@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Anjali Singhai authored and David S. Miller committed Apr 27, 2010
1 parent 1c4f0ef commit c4ee6a5
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions drivers/net/ixgbe/ixgbe_82599.c
Original file line number Diff line number Diff line change
Expand Up @@ -642,6 +642,7 @@ static s32 ixgbe_setup_mac_link_smartspeed(struct ixgbe_hw *hw,
s32 i, j;
bool link_up = false;
u32 autoc_reg = IXGBE_READ_REG(hw, IXGBE_AUTOC);
struct ixgbe_adapter *adapter = hw->back;

hw_dbg(hw, "ixgbe_setup_mac_link_smartspeed.\n");

Expand Down Expand Up @@ -726,6 +727,10 @@ static s32 ixgbe_setup_mac_link_smartspeed(struct ixgbe_hw *hw,
autoneg_wait_to_complete);

out:
if (link_up && (link_speed == IXGBE_LINK_SPEED_1GB_FULL))
netif_info(adapter, hw, adapter->netdev, "Smartspeed has"
" downgraded the link speed from the maximum"
" advertised\n");
return status;
}

Expand Down

0 comments on commit c4ee6a5

Please sign in to comment.