]> 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)
commit29584bca5fde2a0f8b7cb4cec121bf85eaf9f057
tree198180a6ef5b1c3ee0e85820fb24677275fa81b6
parent4ea1b9c36587838f5c0e0d21c407ef9b1cfe4329
vmxnet3: fix cksum offload issues for tunnels with non-default udp ports

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