mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-26 02:20:53 +07:00
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 */
|
||||
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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user