From mboxrd@z Thu Jan 1 00:00:00 1970 From: Boris Pismenny Subject: [RFC 6/7] mbuf: Added next_esp_proto field Date: Mon, 10 Jul 2017 10:35:16 +0300 Message-ID: <1499672117-56728-7-git-send-email-borisp@mellanox.com> References: <1499672117-56728-1-git-send-email-borisp@mellanox.com> Cc: aviadye@mellanox.com, borisp@mellanox.com To: dev@dpdk.org Return-path: Received: from mellanox.co.il (mail-il-dmz.mellanox.com [193.47.165.129]) by dpdk.org (Postfix) with ESMTP id B0C8E58D1 for ; Mon, 10 Jul 2017 09:35:23 +0200 (CEST) In-Reply-To: <1499672117-56728-1-git-send-email-borisp@mellanox.com> List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" From: Aviad Yehezkel Signed-off-by: Aviad Yehezkel Signed-off-by: Boris Pismenny --- lib/librte_mbuf/rte_mbuf.h | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/lib/librte_mbuf/rte_mbuf.h b/lib/librte_mbuf/rte_mbuf.h index b8ab7ed..234c9de 100644 --- a/lib/librte_mbuf/rte_mbuf.h +++ b/lib/librte_mbuf/rte_mbuf.h @@ -483,8 +483,13 @@ struct rte_mbuf { uint32_t l3_type:4; /**< (Outer) L3 type. */ uint32_t l4_type:4; /**< (Outer) L4 type. */ uint32_t tun_type:4; /**< Tunnel type. */ - uint32_t inner_l2_type:4; /**< Inner L2 type. */ - uint32_t inner_l3_type:4; /**< Inner L3 type. */ + union { + uint8_t inner_esp_next_proto; + struct { + uint8_t inner_l2_type:4; /**< Inner L2 type. */ + uint8_t inner_l3_type:4; /**< Inner L3 type. */ + }; + }; uint32_t inner_l4_type:4; /**< Inner L4 type. */ }; }; -- 1.8.3.1