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 <alexander.h.duyck@intel.com> Tested-by: Ross Brattain <ross.b.brattain@intel.com> Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
This commit is contained in:
parent
80ab193dce
commit
4c0ec6544a
1 changed files with 0 additions and 5 deletions
|
@ -412,11 +412,6 @@ static int ixgbe_set_rx_csum(struct net_device *netdev, u32 data)
|
||||||
else
|
else
|
||||||
adapter->flags &= ~IXGBE_FLAG_RX_CSUM_ENABLED;
|
adapter->flags &= ~IXGBE_FLAG_RX_CSUM_ENABLED;
|
||||||
|
|
||||||
if (netif_running(netdev))
|
|
||||||
ixgbe_reinit_locked(adapter);
|
|
||||||
else
|
|
||||||
ixgbe_reset(adapter);
|
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue