diff options
author | Ronak Doshi <doshir@vmware.com> | 2019-06-04 08:58:38 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-06-05 05:05:56 +0200 |
commit | 3dd7400b419409b1551f7f01764b1f3160feda90 (patch) | |
tree | ec151390109f176fa7d23af3746e20ffb0ee6d4f /drivers/net/vmxnet3/vmxnet3_drv.c | |
parent | Merge branch 'net-add-struct-nexthop-to-fib-info' (diff) | |
download | linux-3dd7400b419409b1551f7f01764b1f3160feda90.tar.xz linux-3dd7400b419409b1551f7f01764b1f3160feda90.zip |
vmxnet3: turn off lro when rxcsum is disabled
Currently, when rx csum is disabled, vmxnet3 driver does not turn
off lro, which can cause performance issues if user does not turn off
lro explicitly. This patch adds fix_features support which is used to
turn off LRO whenever RXCSUM is disabled.
Signed-off-by: Ronak Doshi <doshir@vmware.com>
Acked-by: Rishi Mehta <rmehta@vmware.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/vmxnet3/vmxnet3_drv.c')
-rw-r--r-- | drivers/net/vmxnet3/vmxnet3_drv.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/vmxnet3/vmxnet3_drv.c b/drivers/net/vmxnet3/vmxnet3_drv.c index 1b2a18ea855c..3f48f05dd2a6 100644 --- a/drivers/net/vmxnet3/vmxnet3_drv.c +++ b/drivers/net/vmxnet3/vmxnet3_drv.c @@ -3247,6 +3247,7 @@ vmxnet3_probe_device(struct pci_dev *pdev, .ndo_start_xmit = vmxnet3_xmit_frame, .ndo_set_mac_address = vmxnet3_set_mac_addr, .ndo_change_mtu = vmxnet3_change_mtu, + .ndo_fix_features = vmxnet3_fix_features, .ndo_set_features = vmxnet3_set_features, .ndo_get_stats64 = vmxnet3_get_stats64, .ndo_tx_timeout = vmxnet3_tx_timeout, |