[PATCH v4 088/103] net/ice/base: update boost struct for traffic types
Anatoly Burakov
anatoly.burakov at intel.com
Wed Jun 26 13:42:16 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 c83479d6fa..52320d86dc 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