Skip to content

Commit 1b11549

Browse files
Eli BritsteinSaeed Mahameed
authored andcommitted
net/mlx5: Introduce extended destination fields
Extended destinations provide the ability to configure different encapsulation properties per destination on a single FTE. This is needed for use-cases such as remote mirroring over tunneled networks. Signed-off-by: Eli Britstein <elibr@mellanox.com> Reviewed-by: Or Gerlitz <ogerlitz@mellanox.com> Reviewed-by: Oz Shlomo <ozsh@mellanox.com> Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
1 parent 5886a96 commit 1b11549

File tree

1 file changed

+16
-3
lines changed

1 file changed

+16
-3
lines changed

include/linux/mlx5/mlx5_ifc.h

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -621,7 +621,9 @@ struct mlx5_ifc_e_switch_cap_bits {
621621

622622
u8 vxlan_encap_decap[0x1];
623623
u8 nvgre_encap_decap[0x1];
624-
u8 reserved_at_22[0x9];
624+
u8 reserved_at_22[0x1];
625+
u8 log_max_fdb_encap_uplink[0x5];
626+
u8 reserved_at_21[0x3];
625627
u8 log_max_packet_reformat_context[0x5];
626628
u8 reserved_2b[0x6];
627629
u8 max_encap_header_size[0xa];
@@ -1237,8 +1239,10 @@ enum mlx5_flow_destination_type {
12371239
struct mlx5_ifc_dest_format_struct_bits {
12381240
u8 destination_type[0x8];
12391241
u8 destination_id[0x18];
1242+
12401243
u8 destination_eswitch_owner_vhca_id_valid[0x1];
1241-
u8 reserved_at_21[0xf];
1244+
u8 packet_reformat[0x1];
1245+
u8 reserved_at_22[0xe];
12421246
u8 destination_eswitch_owner_vhca_id[0x10];
12431247
};
12441248

@@ -1248,6 +1252,14 @@ struct mlx5_ifc_flow_counter_list_bits {
12481252
u8 reserved_at_20[0x20];
12491253
};
12501254

1255+
struct mlx5_ifc_extended_dest_format_bits {
1256+
struct mlx5_ifc_dest_format_struct_bits destination_entry;
1257+
1258+
u8 packet_reformat_id[0x20];
1259+
1260+
u8 reserved_at_60[0x20];
1261+
};
1262+
12511263
union mlx5_ifc_dest_format_struct_flow_counter_list_auto_bits {
12521264
struct mlx5_ifc_dest_format_struct_bits dest_format_struct;
12531265
struct mlx5_ifc_flow_counter_list_bits flow_counter_list;
@@ -2469,7 +2481,8 @@ struct mlx5_ifc_flow_context_bits {
24692481
u8 reserved_at_60[0x10];
24702482
u8 action[0x10];
24712483

2472-
u8 reserved_at_80[0x8];
2484+
u8 extended_destination[0x1];
2485+
u8 reserved_at_80[0x7];
24732486
u8 destination_list_size[0x18];
24742487

24752488
u8 reserved_at_a0[0x8];

0 commit comments

Comments
 (0)