net-next: fix LRO feature update in vmxnet3
Fix LRO feature update. Signed-off-by: Shreyas Bhatewara <sbhatewara@vmware.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
f86586fa48
commit
ca802447c0
|
@ -291,10 +291,11 @@ vmxnet3_set_flags(struct net_device *netdev, u32 data)
|
||||||
|
|
||||||
/* update harware LRO capability accordingly */
|
/* update harware LRO capability accordingly */
|
||||||
if (lro_requested)
|
if (lro_requested)
|
||||||
adapter->shared->devRead.misc.uptFeatures &= UPT1_F_LRO;
|
adapter->shared->devRead.misc.uptFeatures |=
|
||||||
|
cpu_to_le64(UPT1_F_LRO);
|
||||||
else
|
else
|
||||||
adapter->shared->devRead.misc.uptFeatures &=
|
adapter->shared->devRead.misc.uptFeatures &=
|
||||||
~UPT1_F_LRO;
|
cpu_to_le64(~UPT1_F_LRO);
|
||||||
VMXNET3_WRITE_BAR1_REG(adapter, VMXNET3_REG_CMD,
|
VMXNET3_WRITE_BAR1_REG(adapter, VMXNET3_REG_CMD,
|
||||||
VMXNET3_CMD_UPDATE_FEATURE);
|
VMXNET3_CMD_UPDATE_FEATURE);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue