vmxnet3: turn off lro when rxcsum is disabled
authorRonak Doshi <doshir@vmware.com>
Tue, 4 Jun 2019 06:58:38 +0000 (23:58 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 5 Jun 2019 03:05:56 +0000 (20:05 -0700)
commit3dd7400b419409b1551f7f01764b1f3160feda90
treeec151390109f176fa7d23af3746e20ffb0ee6d4f
parent9ec49a7e58fb028f23ce6bb6a6a91384811c1dcc
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>
drivers/net/vmxnet3/vmxnet3_drv.c
drivers/net/vmxnet3/vmxnet3_ethtool.c
drivers/net/vmxnet3/vmxnet3_int.h