提交 8a650aa2 编写于 作者: A Akeem G Abodunrin 提交者: Jeff Kirsher

igb: Reset the link when EEE setting changed

This patch resets the link, if link is up - whenever users enable or disable EEE
Signed-off-by: NAkeem G Abodunrin <akeem.g.abodunrin@intel.com>
Tested-by: NAaron Brown <aaron.f.brown@intel.com>
Signed-off-by: NJeff Kirsher <jeffrey.t.kirsher@intel.com>
上级 f8825669
......@@ -2672,7 +2672,9 @@ static int igb_set_eee(struct net_device *netdev,
igb_set_eee_i350(hw);
/* reset link */
if (!netif_running(netdev))
if (netif_running(netdev))
igb_reinit_locked(adapter);
else
igb_reset(adapter);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册