[dpdk-dev,4/6] mbuf:add a GRE TX tunnel ol_flag
Commit Message
This flag is used to tell the NIC the TX packet is a GRE tunneled packet.
Signed-off-by: Jijiang Liu <jijiang.liu@intel.com>
---
lib/librte_mbuf/rte_mbuf.h | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
@@ -105,6 +105,12 @@ extern "C" {
/* add new TX flags here */
/**
+ * TX packet is a GRE tunneled packet. It must be specified when using
+ * outer checksum offload (PKT_TX_OUTER_IP_CKSUM)
+ */
+#define PKT_TX_GRE_TUNNEL_PKT (1ULL << 48)
+
+/**
* TCP segmentation offload. To enable this offload feature for a
* packet to be transmitted on hardware supporting TSO:
* - set the PKT_TX_TCP_SEG flag in mbuf->ol_flags (this flag implies