net-next: fix LRO feature update in vmxnet3
authorShreyas Bhatewara <sbhatewara@vmware.com>
Fri, 16 Jul 2010 05:17:29 +0000 (22:17 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 16 Jul 2010 05:17:29 +0000 (22:17 -0700)
Fix LRO feature update.

Signed-off-by: Shreyas Bhatewara <sbhatewara@vmware.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/vmxnet3/vmxnet3_ethtool.c

index de1ba14..7e4b5a8 100644 (file)
@@ -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);
        }