From: Shreyas Bhatewara Date: Fri, 16 Jul 2010 05:17:29 +0000 (-0700) Subject: net-next: fix LRO feature update in vmxnet3 X-Git-Tag: MMI-PSA29.97-13-9~23092^2~193 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=ca802447c0b9dc12a8aa6552c9c7b3c7af31f492;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git net-next: fix LRO feature update in vmxnet3 Fix LRO feature update. Signed-off-by: Shreyas Bhatewara Signed-off-by: David S. Miller --- diff --git a/drivers/net/vmxnet3/vmxnet3_ethtool.c b/drivers/net/vmxnet3/vmxnet3_ethtool.c index de1ba148171e..7e4b5a89165a 100644 --- a/drivers/net/vmxnet3/vmxnet3_ethtool.c +++ b/drivers/net/vmxnet3/vmxnet3_ethtool.c @@ -291,10 +291,11 @@ vmxnet3_set_flags(struct net_device *netdev, u32 data) /* update harware LRO capability accordingly */ if (lro_requested) - adapter->shared->devRead.misc.uptFeatures &= UPT1_F_LRO; + adapter->shared->devRead.misc.uptFeatures |= + cpu_to_le64(UPT1_F_LRO); else adapter->shared->devRead.misc.uptFeatures &= - ~UPT1_F_LRO; + cpu_to_le64(~UPT1_F_LRO); VMXNET3_WRITE_BAR1_REG(adapter, VMXNET3_REG_CMD, VMXNET3_CMD_UPDATE_FEATURE); }