Skip to content

Commit f9a5b34

Browse files
Cosmin Ratiurleon
authored andcommitted
net/mlx5: ifc: Reorganize mlx5_ifc_flow_table_context_bits
The nested union at the end is not in the same style as the rest of the code, so un-nest it to make the style uniformly applied again. Signed-off-by: Cosmin Ratiu <[email protected]> Reviewed-by: Saeed Mahameed <[email protected]> Signed-off-by: Tariq Toukan <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Leon Romanovsky <[email protected]>
1 parent 40384c8 commit f9a5b34

File tree

1 file changed

+17
-13
lines changed

1 file changed

+17
-13
lines changed

include/linux/mlx5/mlx5_ifc.h

Lines changed: 17 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -6324,6 +6324,20 @@ struct mlx5_ifc_modify_other_hca_cap_in_bits {
63246324
struct mlx5_ifc_other_hca_cap_bits other_capability;
63256325
};
63266326

6327+
struct mlx5_ifc_sw_owner_icm_root_params_bits {
6328+
u8 sw_owner_icm_root_1[0x40];
6329+
6330+
u8 sw_owner_icm_root_0[0x40];
6331+
};
6332+
6333+
struct mlx5_ifc_rtc_params_bits {
6334+
u8 rtc_id_0[0x20];
6335+
6336+
u8 rtc_id_1[0x20];
6337+
6338+
u8 reserved_at_40[0x40];
6339+
};
6340+
63276341
struct mlx5_ifc_flow_table_context_bits {
63286342
u8 reformat_en[0x1];
63296343
u8 decap_en[0x1];
@@ -6342,20 +6356,10 @@ struct mlx5_ifc_flow_table_context_bits {
63426356
u8 lag_master_next_table_id[0x18];
63436357

63446358
u8 reserved_at_60[0x60];
6345-
union {
6346-
struct {
6347-
u8 sw_owner_icm_root_1[0x40];
6348-
6349-
u8 sw_owner_icm_root_0[0x40];
6350-
} sws;
6351-
struct {
6352-
u8 rtc_id_0[0x20];
63536359

6354-
u8 rtc_id_1[0x20];
6355-
6356-
u8 reserved_at_100[0x40];
6357-
6358-
} hws;
6360+
union {
6361+
struct mlx5_ifc_sw_owner_icm_root_params_bits sws;
6362+
struct mlx5_ifc_rtc_params_bits hws;
63596363
};
63606364
};
63616365

0 commit comments

Comments
 (0)