Skip to content

Commit c3e666f

Browse files
mark-blochSaeed Mahameed
authored andcommitted
net/mlx5: Add IFC bits needed for single FDB mode
Currently we operate in a mode where each eswitch manager has a separate FDB. In order to combine these multiple FDBs we expose new caps to allow this: - Set root flow table which isn't native. - Set FDB a different selection mode when in LAG mode. Signed-off-by: Mark Bloch <[email protected]> Reviewed-by: Saeed Mahameed <[email protected]> Signed-off-by: Saeed Mahameed <[email protected]>
1 parent 3a46f4f commit c3e666f

File tree

1 file changed

+15
-6
lines changed

1 file changed

+15
-6
lines changed

include/linux/mlx5/mlx5_ifc.h

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -806,9 +806,11 @@ struct mlx5_ifc_e_switch_cap_bits {
806806
u8 vport_svlan_insert[0x1];
807807
u8 vport_cvlan_insert_if_not_exist[0x1];
808808
u8 vport_cvlan_insert_overwrite[0x1];
809-
u8 reserved_at_5[0x3];
809+
u8 reserved_at_5[0x2];
810+
u8 esw_shared_ingress_acl[0x1];
810811
u8 esw_uplink_ingress_acl[0x1];
811-
u8 reserved_at_9[0x10];
812+
u8 root_ft_on_other_esw[0x1];
813+
u8 reserved_at_a[0xf];
812814
u8 esw_functions_changed[0x1];
813815
u8 reserved_at_1a[0x1];
814816
u8 ecpf_vport_exists[0x1];
@@ -1502,7 +1504,8 @@ struct mlx5_ifc_cmd_hca_cap_bits {
15021504
u8 reserved_at_270[0x6];
15031505
u8 lag_dct[0x2];
15041506
u8 lag_tx_port_affinity[0x1];
1505-
u8 reserved_at_279[0x2];
1507+
u8 lag_native_fdb_selection[0x1];
1508+
u8 reserved_at_27a[0x1];
15061509
u8 lag_master[0x1];
15071510
u8 num_lag_ports[0x4];
15081511

@@ -10036,14 +10039,19 @@ struct mlx5_ifc_set_flow_table_root_in_bits {
1003610039
u8 reserved_at_60[0x20];
1003710040

1003810041
u8 table_type[0x8];
10039-
u8 reserved_at_88[0x18];
10042+
u8 reserved_at_88[0x7];
10043+
u8 table_of_other_vport[0x1];
10044+
u8 table_vport_number[0x10];
1004010045

1004110046
u8 reserved_at_a0[0x8];
1004210047
u8 table_id[0x18];
1004310048

1004410049
u8 reserved_at_c0[0x8];
1004510050
u8 underlay_qpn[0x18];
10046-
u8 reserved_at_e0[0x120];
10051+
u8 table_eswitch_owner_vhca_id_valid[0x1];
10052+
u8 reserved_at_e1[0xf];
10053+
u8 table_eswitch_owner_vhca_id[0x10];
10054+
u8 reserved_at_100[0x100];
1004710055
};
1004810056

1004910057
enum {
@@ -10273,7 +10281,8 @@ struct mlx5_ifc_dcbx_param_bits {
1027310281
};
1027410282

1027510283
struct mlx5_ifc_lagc_bits {
10276-
u8 reserved_at_0[0x1d];
10284+
u8 fdb_selection_mode[0x1];
10285+
u8 reserved_at_1[0x1c];
1027710286
u8 lag_state[0x3];
1027810287

1027910288
u8 reserved_at_20[0x14];

0 commit comments

Comments
 (0)