vmxnet3: fix cksum offload issues for tunnels with non-default udp ports
authorRonak Doshi <doshir@vmware.com>
Fri, 2 Jul 2021 06:44:27 +0000 (23:44 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 2 Jul 2021 20:41:15 +0000 (13:41 -0700)
commitb22580233d473dbf7bbfa4f6549c09e2c80e9e64
tree198180a6ef5b1c3ee0e85820fb24677275fa81b6
parent99f47ea437c113df0fb640ea87e0efd3838510aa
vmxnet3: fix cksum offload issues for tunnels with non-default udp ports

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

This patch fixes the issue for tunnels with non-default ports using
features check capability and filtering appropriate features for such
tunnels.

Fixes: dacce2be3312 ("vmxnet3: add geneve and vxlan tunnel offload support")
Signed-off-by: Ronak Doshi <doshir@vmware.com>
Acked-by: Guolin Yang <gyang@vmware.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/vmxnet3/vmxnet3_ethtool.c