vmxnet3: Fix inconsistent LRO state after initialization
[firefly-linux-kernel-4.4.55.git] / drivers / net / vmxnet3 / vmxnet3_ethtool.c
index c2c15e4cafc761c2c76e8e1b7e7c07e76543287b..379d72b29f6b08b0931eeedaca03d051fa18cb8a 100644 (file)
@@ -288,6 +288,9 @@ vmxnet3_set_flags(struct net_device *netdev, u32 data) {
                /* toggle the LRO feature*/
                netdev->features ^= NETIF_F_LRO;
 
+               /* Update private LRO flag */
+               adapter->lro = lro_requested;
+
                /* update harware LRO capability accordingly */
                if (lro_requested)
                        adapter->shared->devRead.misc.uptFeatures &= UPT1_F_LRO;