diff options
Diffstat (limited to 'drivers/net/vmxnet3/vmxnet3_ethtool.c')
-rw-r--r-- | drivers/net/vmxnet3/vmxnet3_ethtool.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/drivers/net/vmxnet3/vmxnet3_ethtool.c b/drivers/net/vmxnet3/vmxnet3_ethtool.c index c2c15e4cafc7..3935c4493fb7 100644 --- a/drivers/net/vmxnet3/vmxnet3_ethtool.c +++ b/drivers/net/vmxnet3/vmxnet3_ethtool.c | |||
@@ -50,11 +50,13 @@ vmxnet3_set_rx_csum(struct net_device *netdev, u32 val) | |||
50 | adapter->rxcsum = val; | 50 | adapter->rxcsum = val; |
51 | if (netif_running(netdev)) { | 51 | if (netif_running(netdev)) { |
52 | if (val) | 52 | if (val) |
53 | adapter->shared->devRead.misc.uptFeatures |= | 53 | set_flag_le64( |
54 | UPT1_F_RXCSUM; | 54 | &adapter->shared->devRead.misc.uptFeatures, |
55 | UPT1_F_RXCSUM); | ||
55 | else | 56 | else |
56 | adapter->shared->devRead.misc.uptFeatures &= | 57 | reset_flag_le64( |
57 | ~UPT1_F_RXCSUM; | 58 | &adapter->shared->devRead.misc.uptFeatures, |
59 | UPT1_F_RXCSUM); | ||
58 | 60 | ||
59 | VMXNET3_WRITE_BAR1_REG(adapter, VMXNET3_REG_CMD, | 61 | VMXNET3_WRITE_BAR1_REG(adapter, VMXNET3_REG_CMD, |
60 | VMXNET3_CMD_UPDATE_FEATURE); | 62 | VMXNET3_CMD_UPDATE_FEATURE); |