From: Akeem G Abodunrin Date: Fri, 24 May 2013 07:20:57 +0000 (+0000) Subject: igb: Reset the link when EEE setting changed X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=8a650aa258237f41ea6177a758a529a6e8d6f9e5;p=openwrt%2Fstaging%2Fblogic.git 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 Tested-by: Aaron Brown Signed-off-by: Jeff Kirsher --- diff --git a/drivers/net/ethernet/intel/igb/igb_ethtool.c b/drivers/net/ethernet/intel/igb/igb_ethtool.c index 85fe7b52f435..6d861a5c729a 100644 --- a/drivers/net/ethernet/intel/igb/igb_ethtool.c +++ b/drivers/net/ethernet/intel/igb/igb_ethtool.c @@ -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); }