]> git.baikalelectronics.ru Git - kernel.git/commit
vmxnet3: add geneve and vxlan tunnel offload support
authorRonak Doshi <doshir@vmware.com>
Thu, 28 May 2020 21:53:21 +0000 (14:53 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 28 May 2020 23:26:48 +0000 (16:26 -0700)
commit72efc4f3621c7d5e6f75ca31dfa78e3bf1b8581b
tree5e56b2fef4ec703f990cc9ff42cefea97939a7d5
parente2bb39ff3d998343f7a549dab1a9436aa60029d2
vmxnet3: add geneve and vxlan tunnel offload support

Vmxnet3 version 3 device supports checksum/TSO offload. Thus, vNIC to
pNIC traffic can leverage hardware checksum/TSO offloads. However,
vmxnet3 does not support checksum/TSO offload for Geneve/VXLAN
encapsulated packets. Thus, for a vNIC configured with an overlay, the
guest stack must first segment the inner packet, compute the inner
checksum for each segment and encapsulate each segment before
transmitting the packet via the vNIC. This results in significant
performance penalty.

This patch will enhance vmxnet3 to support Geneve/VXLAN TSO as well as
checksum offload.

Signed-off-by: Ronak Doshi <doshir@vmware.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/vmxnet3/upt1_defs.h
drivers/net/vmxnet3/vmxnet3_defs.h
drivers/net/vmxnet3/vmxnet3_drv.c
drivers/net/vmxnet3/vmxnet3_ethtool.c
drivers/net/vmxnet3/vmxnet3_int.h