[dpdk-dev,RFC,6/7] mbuf: Added next_esp_proto field
Checks
Commit Message
From: Aviad Yehezkel <aviadye@mellanox.com>
Signed-off-by: Aviad Yehezkel <aviadye@mellanox.com>
Signed-off-by: Boris Pismenny <borisp@mellanox.com>
---
lib/librte_mbuf/rte_mbuf.h | 9 +++++++--
1 file changed, 7 insertions(+), 2 deletions(-)
@@ -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. */
};
};