[PATCH v3 118/129] net/ice/base: update boost struct for traffic types

Anatoly Burakov anatoly.burakov at intel.com
Tue Jun 25 13:14:03 CEST 2024


From: Przemek Kitszel <przemyslaw.kitszel at intel.com>

Update boost struc to support both udp and vlan based on union.

Signed-off-by: Przemek Kitszel <przemyslaw.kitszel at intel.com>
Signed-off-by: Ian Stokes <ian.stokes at intel.com>
---
 drivers/net/ice/base/ice_flex_type.h | 12 ++++++++++--
 1 file changed, 10 insertions(+), 2 deletions(-)

diff --git a/drivers/net/ice/base/ice_flex_type.h b/drivers/net/ice/base/ice_flex_type.h
index f563ce7bce..45cdce9b0a 100644
--- a/drivers/net/ice/base/ice_flex_type.h
+++ b/drivers/net/ice/base/ice_flex_type.h
@@ -382,8 +382,16 @@ struct ice_sw_fv_list_entry {
 struct ice_boost_key_value {
 #define ICE_BOOST_REMAINING_HV_KEY	15
 	u8 remaining_hv_key[ICE_BOOST_REMAINING_HV_KEY];
-	__le16 hv_dst_port_key;
-	__le16 hv_src_port_key;
+	union {
+		struct {
+			__le16 hv_dst_port_key;
+			__le16 hv_src_port_key;
+		} /* udp_tunnel */;
+		struct {
+			__le16 hv_vlan_id_key;
+			__le16 hv_etype_key;
+		} vlan;
+	};
 	u8 tcam_search_key;
 };
 #pragma pack()
-- 
2.43.0



More information about the dev mailing list