vmxnet3: fix cksum offload issues for non-udp tunnels
authorRonak Doshi <doshir@vmware.com>
Fri, 25 Sep 2020 06:11:29 +0000 (23:11 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 25 Sep 2020 23:41:40 +0000 (16:41 -0700)
commit1dac3b1bc66dc68dbb0c9f43adac71a7d0a0331a
treed5234421bba8940803b6905c54fff17df92b5e50
parentabe2f12d9453b544cb76ebb70904de9d32e03284
vmxnet3: fix cksum offload issues for non-udp tunnels

Commit dacce2be3312 ("vmxnet3: add geneve and vxlan tunnel offload
support") added support for encapsulation offload. However, the inner
offload capability is to be restrictued to UDP tunnels.

This patch fixes the issue for non-udp tunnels by adding features
check capability and filtering appropriate features for non-udp tunnels.

Fixes: dacce2be3312 ("vmxnet3: add geneve and vxlan tunnel offload support")
Signed-off-by: Ronak Doshi <doshir@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