ixgbe: Properly display 1 gig downshift warning for backplane
Subsystems (2)
PATCH 1/1 ixgbe: Properly display 1 gig downshift warning for backplane
From: Anjali Singhai <[email protected]>
Description: When using Intel smartspeed, the patch displays a warning when the link down shifts to 1 Gig.
Signed-off-by Anjali Singhai <[email protected]>
Signed-off-by Jeff Kirsher <[email protected]>
---
drivers/net/ixgbe/ixgbe_82599.c | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-)
drivers/net/ixgbe/ixgbe_82599.c +5 -0
@@ -608,6 +608,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" );
@@ -692,6 +693,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; }
David Miller
maintainerNot fixing a regression, not fixing a catastropic error, just adding a warning message.
Therefore not appropriate for net-2.6