From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jijiang Liu Subject: [PATCH 4/6] mbuf:add a GRE TX tunnel ol_flag Date: Mon, 26 Jan 2015 11:43:23 +0800 Message-ID: <1422243805-10906-5-git-send-email-jijiang.liu@intel.com> References: <1422243805-10906-1-git-send-email-jijiang.liu@intel.com> To: dev-VfR2kkLFssw@public.gmane.org Return-path: In-Reply-To: <1422243805-10906-1-git-send-email-jijiang.liu-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org> List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces-VfR2kkLFssw@public.gmane.org Sender: "dev" This flag is used to tell the NIC the TX packet is a GRE tunneled packet. Signed-off-by: Jijiang Liu --- 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