mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-16 23:45:31 +08:00
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: Akeem G Abodunrin <akeem.g.abodunrin@intel.com> Tested-by: Aaron Brown <aaron.f.brown@intel.com> Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
This commit is contained in:
parent
f8825669b3
commit
8a650aa258
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user