[dpdk-dev] [RFC 6/7] mbuf: Added next_esp_proto field
Boris Pismenny
borisp at mellanox.com
Mon Jul 10 09:35:16 CEST 2017
From: Aviad Yehezkel <aviadye at mellanox.com>
Signed-off-by: Aviad Yehezkel <aviadye at mellanox.com>
Signed-off-by: Boris Pismenny <borisp at mellanox.com>
---
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
More information about the dev
mailing list