|
@@ -3901,6 +3901,7 @@ static void igb_watchdog_task(struct work_struct *work)
|
|
|
struct igb_adapter,
|
|
|
watchdog_task);
|
|
|
struct e1000_hw *hw = &adapter->hw;
|
|
|
+ struct e1000_phy_info *phy = &hw->phy;
|
|
|
struct net_device *netdev = adapter->netdev;
|
|
|
u32 link;
|
|
|
int i;
|
|
@@ -3929,6 +3930,11 @@ static void igb_watchdog_task(struct work_struct *work)
|
|
|
(ctrl & E1000_CTRL_RFCE) ? "RX" :
|
|
|
(ctrl & E1000_CTRL_TFCE) ? "TX" : "None");
|
|
|
|
|
|
+ /* check if SmartSpeed worked */
|
|
|
+ igb_check_downshift(hw);
|
|
|
+ if (phy->speed_downgraded)
|
|
|
+ netdev_warn(netdev, "Link Speed was downgraded by SmartSpeed\n");
|
|
|
+
|
|
|
/* check for thermal sensor event */
|
|
|
if (igb_thermal_sensor_event(hw,
|
|
|
E1000_THSTAT_LINK_THROTTLE)) {
|