aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKoki Sanagi <sanagi.koki@jp.fujitsu.com>2013-01-16 06:05:53 -0500
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>2013-04-24 23:24:18 -0400
commitc0ba477807191d04f95057a58e08c88ad27b284c (patch)
tree59512d8d66cf402cd4a4ac3e9f18f372ecb53d0e
parentb09186d29ec1fb75f9235b1ea51699f14d1e7298 (diff)
igb: display a warning message when SmartSpeed works
Current igb driver doesn't tell nothing when Link Speed is downgraded due to SmartSpeed. As a result, users suspect that there is something wrong with NIC. If the cause of it is SmartSpeed, there is no means to replace NIC. This patch make igb notify users that SmartSpeed worked. Signed-off-by: Koki Sanagi <sanagi.koki@jp.fujitsu.com> Tested-by: Aaron Brown <aaron.f.brown@intel.com> Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
-rw-r--r--drivers/net/ethernet/intel/igb/igb_main.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/net/ethernet/intel/igb/igb_main.c b/drivers/net/ethernet/intel/igb/igb_main.c
index b94a3c551d31..93be6eced2e3 100644
--- a/drivers/net/ethernet/intel/igb/igb_main.c
+++ b/drivers/net/ethernet/intel/igb/igb_main.c
@@ -3901,6 +3901,7 @@ static void igb_watchdog_task(struct work_struct *work)
3901 struct igb_adapter, 3901 struct igb_adapter,
3902 watchdog_task); 3902 watchdog_task);
3903 struct e1000_hw *hw = &adapter->hw; 3903 struct e1000_hw *hw = &adapter->hw;
3904 struct e1000_phy_info *phy = &hw->phy;
3904 struct net_device *netdev = adapter->netdev; 3905 struct net_device *netdev = adapter->netdev;
3905 u32 link; 3906 u32 link;
3906 int i; 3907 int i;
@@ -3929,6 +3930,11 @@ static void igb_watchdog_task(struct work_struct *work)
3929 (ctrl & E1000_CTRL_RFCE) ? "RX" : 3930 (ctrl & E1000_CTRL_RFCE) ? "RX" :
3930 (ctrl & E1000_CTRL_TFCE) ? "TX" : "None"); 3931 (ctrl & E1000_CTRL_TFCE) ? "TX" : "None");
3931 3932
3933 /* check if SmartSpeed worked */
3934 igb_check_downshift(hw);
3935 if (phy->speed_downgraded)
3936 netdev_warn(netdev, "Link Speed was downgraded by SmartSpeed\n");
3937
3932 /* check for thermal sensor event */ 3938 /* check for thermal sensor event */
3933 if (igb_thermal_sensor_event(hw, 3939 if (igb_thermal_sensor_event(hw,
3934 E1000_THSTAT_LINK_THROTTLE)) { 3940 E1000_THSTAT_LINK_THROTTLE)) {