summaryrefslogtreecommitdiffstats
path: root/src/vnet/interface.h
diff options
context:
space:
mode:
authorMohsin Kazmi <sykazmi@cisco.com>2021-11-26 17:04:07 +0100
committerDamjan Marion <dmarion@me.com>2021-11-30 21:24:48 +0000
commit376c2106cec344d65bffd322d261cefaf4f6e67c (patch)
treef16d9b3cfbdeb1c14611b4177a145bddf623fc97 /src/vnet/interface.h
parentbfcd23968246086b5b884f7df1e78adb1a059724 (diff)
interface: add support for outer header checksums
Type: improvement Change-Id: I7c341dc4a99898dd1f865ac2ebd99de9898bb0bd Signed-off-by: Mohsin Kazmi <sykazmi@cisco.com>
Diffstat (limited to 'src/vnet/interface.h')
-rw-r--r--src/vnet/interface.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/vnet/interface.h b/src/vnet/interface.h
index 0a30239e982..fe42e5d33a1 100644
--- a/src/vnet/interface.h
+++ b/src/vnet/interface.h
@@ -561,6 +561,14 @@ typedef enum vnet_hw_interface_capabilities_t_
VNET_HW_INTERFACE_CAP_SUPPORTS_TX_TCP_CKSUM | \
VNET_HW_INTERFACE_CAP_SUPPORTS_TX_UDP_CKSUM)
+#define VNET_HW_INTERFACE_CAP_SUPPORTS_TX_OUTER_CKSUM \
+ (VNET_HW_INTERFACE_CAP_SUPPORTS_TX_IP4_OUTER_CKSUM | \
+ VNET_HW_INTERFACE_CAP_SUPPORTS_TX_UDP_OUTER_CKSUM)
+
+#define VNET_HW_INTERFACE_CAP_SUPPORTS_TX_CKSUM_MASK \
+ (VNET_HW_INTERFACE_CAP_SUPPORTS_TX_CKSUM | \
+ VNET_HW_INTERFACE_CAP_SUPPORTS_TX_OUTER_CKSUM)
+
#define VNET_HW_INTERFACE_CAP_SUPPORTS_L4_RX_CKSUM \
(VNET_HW_INTERFACE_CAP_SUPPORTS_RX_TCP_CKSUM | \
VNET_HW_INTERFACE_CAP_SUPPORTS_RX_UDP_CKSUM)
@@ -570,6 +578,10 @@ typedef enum vnet_hw_interface_capabilities_t_
VNET_HW_INTERFACE_CAP_SUPPORTS_RX_TCP_CKSUM | \
VNET_HW_INTERFACE_CAP_SUPPORTS_RX_UDP_CKSUM)
+#define VNET_HW_INTERFACE_CAP_SUPPORTS_TNL_GSO_MASK \
+ VNET_HW_INTERFACE_CAP_SUPPORTS_VXLAN_TNL_GSO | \
+ VNET_HW_INTERFACE_CAP_SUPPORTS_IPIP_TNL_GSO
+
#define VNET_HW_INTERFACE_FLAG_DUPLEX_SHIFT 1
#define VNET_HW_INTERFACE_FLAG_SPEED_SHIFT 3
#define VNET_HW_INTERFACE_FLAG_DUPLEX_MASK \