From: Alexander Duyck Date: Wed, 17 Nov 2010 03:26:46 +0000 (-0800) Subject: ixgbe: remove unnecessary re-init of adapter on Rx-csum change X-Git-Tag: v2.6.38-rc1~476^2~547^2~43 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4c0ec6544a0cd5e3eed08df2c14cf98185098abe;p=platform%2Fkernel%2Flinux-3.10.git ixgbe: remove unnecessary re-init of adapter on Rx-csum change There is no need to reset the adapter when changing the Rx checksum settings. Since the only change is a software flag we can disable it without needing to reset the entire adapter. Signed-off-by: Alexander Duyck Tested-by: Ross Brattain Signed-off-by: Jeff Kirsher --- diff --git a/drivers/net/ixgbe/ixgbe_ethtool.c b/drivers/net/ixgbe/ixgbe_ethtool.c index 3dc731c..81fa1ac 100644 --- a/drivers/net/ixgbe/ixgbe_ethtool.c +++ b/drivers/net/ixgbe/ixgbe_ethtool.c @@ -412,11 +412,6 @@ static int ixgbe_set_rx_csum(struct net_device *netdev, u32 data) else adapter->flags &= ~IXGBE_FLAG_RX_CSUM_ENABLED; - if (netif_running(netdev)) - ixgbe_reinit_locked(adapter); - else - ixgbe_reset(adapter); - return 0; }