Commit 6948417b authored by Patrisious Haddad's avatar Patrisious Haddad Committed by Leon Romanovsky
Browse files

net/mlx5: Add OTHER_ESWITCH HW capabilities



Add OTHER_ESWITCH capabilities which includes other_eswitch and
eswitch_owner_vhca_id to all steering objects.

Signed-off-by: default avatarPatrisious Haddad <phaddad@nvidia.com>
Signed-off-by: default avatarEdward Srouji <edwards@nvidia.com>
Link: https://patch.msgid.link/20251029-support-other-eswitch-v1-1-98bb707b5d57@nvidia.com


Signed-off-by: default avatarLeon Romanovsky <leon@kernel.org>
parent 2d838c11
Loading
Loading
Loading
Loading
+31 −16
Original line number Diff line number Diff line
@@ -5251,13 +5251,15 @@ struct mlx5_ifc_set_fte_in_bits {
	u8         op_mod[0x10];

	u8         other_vport[0x1];
	u8         reserved_at_41[0xf];
	u8         other_eswitch[0x1];
	u8         reserved_at_42[0xe];
	u8         vport_number[0x10];

	u8         reserved_at_60[0x20];

	u8         table_type[0x8];
	u8         reserved_at_88[0x18];
	u8         reserved_at_88[0x8];
	u8         eswitch_owner_vhca_id[0x10];

	u8         reserved_at_a0[0x8];
	u8         table_id[0x18];
@@ -8809,13 +8811,15 @@ struct mlx5_ifc_destroy_flow_table_in_bits {
	u8         op_mod[0x10];

	u8         other_vport[0x1];
	u8         reserved_at_41[0xf];
	u8         other_eswitch[0x1];
	u8         reserved_at_42[0xe];
	u8         vport_number[0x10];

	u8         reserved_at_60[0x20];

	u8         table_type[0x8];
	u8         reserved_at_88[0x18];
	u8         reserved_at_88[0x8];
	u8         eswitch_owner_vhca_id[0x10];

	u8         reserved_at_a0[0x8];
	u8         table_id[0x18];
@@ -8840,13 +8844,15 @@ struct mlx5_ifc_destroy_flow_group_in_bits {
	u8         op_mod[0x10];

	u8         other_vport[0x1];
	u8         reserved_at_41[0xf];
	u8         other_eswitch[0x1];
	u8         reserved_at_42[0xe];
	u8         vport_number[0x10];

	u8         reserved_at_60[0x20];

	u8         table_type[0x8];
	u8         reserved_at_88[0x18];
	u8         reserved_at_88[0x8];
	u8         eswitch_owner_vhca_id[0x10];

	u8         reserved_at_a0[0x8];
	u8         table_id[0x18];
@@ -8985,13 +8991,15 @@ struct mlx5_ifc_delete_fte_in_bits {
	u8         op_mod[0x10];

	u8         other_vport[0x1];
	u8         reserved_at_41[0xf];
	u8         other_eswitch[0x1];
	u8         reserved_at_42[0xe];
	u8         vport_number[0x10];

	u8         reserved_at_60[0x20];

	u8         table_type[0x8];
	u8         reserved_at_88[0x18];
	u8         reserved_at_88[0x8];
	u8         eswitch_owner_vhca_id[0x10];

	u8         reserved_at_a0[0x8];
	u8         table_id[0x18];
@@ -9535,13 +9543,15 @@ struct mlx5_ifc_create_flow_table_in_bits {
	u8         op_mod[0x10];

	u8         other_vport[0x1];
	u8         reserved_at_41[0xf];
	u8         other_eswitch[0x1];
	u8         reserved_at_42[0xe];
	u8         vport_number[0x10];

	u8         reserved_at_60[0x20];

	u8         table_type[0x8];
	u8         reserved_at_88[0x18];
	u8         reserved_at_88[0x8];
	u8         eswitch_owner_vhca_id[0x10];

	u8         reserved_at_a0[0x20];

@@ -9580,7 +9590,8 @@ struct mlx5_ifc_create_flow_group_in_bits {
	u8         op_mod[0x10];

	u8         other_vport[0x1];
	u8         reserved_at_41[0xf];
	u8         other_eswitch[0x1];
	u8         reserved_at_42[0xe];
	u8         vport_number[0x10];

	u8         reserved_at_60[0x20];
@@ -9588,7 +9599,7 @@ struct mlx5_ifc_create_flow_group_in_bits {
	u8         table_type[0x8];
	u8         reserved_at_88[0x4];
	u8         group_type[0x4];
	u8         reserved_at_90[0x10];
	u8         eswitch_owner_vhca_id[0x10];

	u8         reserved_at_a0[0x8];
	u8         table_id[0x18];
@@ -11876,10 +11887,12 @@ struct mlx5_ifc_set_flow_table_root_in_bits {
	u8         op_mod[0x10];

	u8         other_vport[0x1];
	u8         reserved_at_41[0xf];
	u8         other_eswitch[0x1];
	u8         reserved_at_42[0xe];
	u8         vport_number[0x10];

	u8         reserved_at_60[0x20];
	u8         reserved_at_60[0x10];
	u8         eswitch_owner_vhca_id[0x10];

	u8         table_type[0x8];
	u8         reserved_at_88[0x7];
@@ -11919,14 +11932,16 @@ struct mlx5_ifc_modify_flow_table_in_bits {
	u8         op_mod[0x10];

	u8         other_vport[0x1];
	u8         reserved_at_41[0xf];
	u8         other_eswitch[0x1];
	u8         reserved_at_42[0xe];
	u8         vport_number[0x10];

	u8         reserved_at_60[0x10];
	u8         modify_field_select[0x10];

	u8         table_type[0x8];
	u8         reserved_at_88[0x18];
	u8         reserved_at_88[0x8];
	u8         eswitch_owner_vhca_id[0x10];

	u8         reserved_at_a0[0x8];
	u8         table_id[0x18];