[dpdk-dev] [PATCH 4/6] mbuf:add a GRE TX tunnel ol_flag

Jijiang Liu jijiang.liu at intel.com
Mon Jan 26 04:43:23 CET 2015


This flag is used to tell the NIC the TX packet is a GRE tunneled packet.

Signed-off-by: Jijiang Liu <jijiang.liu at intel.com>
---
 lib/librte_mbuf/rte_mbuf.h |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/lib/librte_mbuf/rte_mbuf.h b/lib/librte_mbuf/rte_mbuf.h
index 16059c6..a672bd8 100644
--- a/lib/librte_mbuf/rte_mbuf.h
+++ b/lib/librte_mbuf/rte_mbuf.h
@@ -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
-- 
1.7.7.6



More information about the dev mailing list