]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitcd553512af1614cb67d5e08a80fbffb588b9d9b9
tree198180a6ef5b1c3ee0e85820fb24677275fa81b6
parent4bbffdb09a30cf4943e7d93917f437c18783ecd3
vmxnet3: fix cksum offload issues for tunnels with non-default udp ports

Commit bcef8f5256d6 ("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: bcef8f5256d6 ("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