[dpdk-dev] [PATCH v1 1/2] lib/mbuf: add GTP tunnel type flag

Ting Xu ting.xu at intel.com
Fri Sep 20 10:36:23 CEST 2019


Add GTP tunnel type flag in mbuf for future use in GTP
checksum offload.

Signed-off-by: Ting Xu <ting.xu at intel.com>
---
 lib/librte_mbuf/rte_mbuf.h | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/lib/librte_mbuf/rte_mbuf.h b/lib/librte_mbuf/rte_mbuf.h
index 98225ec80..0a5d67d9a 100644
--- a/lib/librte_mbuf/rte_mbuf.h
+++ b/lib/librte_mbuf/rte_mbuf.h
@@ -251,6 +251,8 @@ extern "C" {
 /** TX packet with MPLS-in-UDP RFC 7510 header. */
 #define PKT_TX_TUNNEL_MPLSINUDP (0x5ULL << 45)
 #define PKT_TX_TUNNEL_VXLAN_GPE (0x6ULL << 45)
+#define PKT_TX_TUNNEL_GTP       (0x7ULL << 45)
+
 /**
  * Generic IP encapsulated tunnel type, used for TSO and checksum offload.
  * It can be used for tunnels which are not standards or listed above.
-- 
2.17.1



More information about the dev mailing list