summaryrefslogtreecommitdiffstats
path: root/drivers/net/vmxnet3/upt1_defs.h
diff options
context:
space:
mode:
authorRonak Doshi <doshir@vmware.com>2020-05-28 23:53:21 +0200
committerDavid S. Miller <davem@davemloft.net>2020-05-29 01:26:48 +0200
commitdacce2be33124df3c71f979ac47e3d6354a41125 (patch)
tree5e56b2fef4ec703f990cc9ff42cefea97939a7d5 /drivers/net/vmxnet3/upt1_defs.h
parentvmxnet3: add support to get/set rx flow hash (diff)
downloadlinux-dacce2be33124df3c71f979ac47e3d6354a41125.tar.xz
linux-dacce2be33124df3c71f979ac47e3d6354a41125.zip
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>
Diffstat (limited to 'drivers/net/vmxnet3/upt1_defs.h')
-rw-r--r--drivers/net/vmxnet3/upt1_defs.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/net/vmxnet3/upt1_defs.h b/drivers/net/vmxnet3/upt1_defs.h
index 65a203c842b2..8c014c98471c 100644
--- a/drivers/net/vmxnet3/upt1_defs.h
+++ b/drivers/net/vmxnet3/upt1_defs.h
@@ -92,5 +92,8 @@ enum {
UPT1_F_RSS = cpu_to_le64(0x0002),
UPT1_F_RXVLAN = cpu_to_le64(0x0004), /* VLAN tag stripping */
UPT1_F_LRO = cpu_to_le64(0x0008),
+ UPT1_F_RXINNEROFLD = cpu_to_le64(0x00010), /* Geneve/Vxlan rx csum
+ * offloading
+ */
};
#endif