diff mbox

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

Message ID 1422243805-10906-5-git-send-email-jijiang.liu@intel.com (mailing list archive)
State Superseded, archived
Headers show

Commit Message

Jijiang Liu Jan. 26, 2015, 3:43 a.m. UTC
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(-)
diff mbox

Patch

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