From 227875448575d55a037408234c9d3e304f4d9b07 Mon Sep 17 00:00:00 2001 From: Wei Zhao Date: Mon, 30 Mar 2020 14:33:23 +0800 Subject: [PATCH] net/ixgbe: fix e-tag definition e_tag_ether_type has been wrongly defined as bool type which introduces a bug for etag/etag_strip for x550 NIC. Fixes it by defining it as uint16_t. Fixes: ad43b7bce95b ("net/ixgbe: avoid multiple definitions of bool") Cc: stable@dpdk.org Signed-off-by: Wei Zhao Acked-by: Xiaolong Ye --- drivers/net/ixgbe/ixgbe_ethdev.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ixgbe/ixgbe_ethdev.h b/drivers/net/ixgbe/ixgbe_ethdev.h index b8df756575..3d78b2ee29 100644 --- a/drivers/net/ixgbe/ixgbe_ethdev.h +++ b/drivers/net/ixgbe/ixgbe_ethdev.h @@ -358,7 +358,7 @@ struct ixgbe_l2_tn_info { struct rte_hash *hash_handle; bool e_tag_en; /* e-tag enabled */ bool e_tag_fwd_en; /* e-tag based forwarding enabled */ - bool e_tag_ether_type; /* ether type for e-tag */ + uint16_t e_tag_ether_type; /* ether type for e-tag */ }; struct rte_flow { -- 2.20.1