Commit 40817cdb authored by Or Gerlitz's avatar Or Gerlitz Committed by Saeed Mahameed

net/mlx5: Add hairpin definitions to the FW API

Add hairpin definitions to the IFC file.

This includes the HCA ID, few HCA hairpin capabilities, new
fields in RQ/SQ used later for the pairing and the WQ hairpin
data size attribute.
Signed-off-by: default avatarOr Gerlitz <ogerlitz@mellanox.com>
Signed-off-by: default avatarSaeed Mahameed <saeedm@mellanox.com>
parent f4803f1b
...@@ -794,7 +794,10 @@ enum { ...@@ -794,7 +794,10 @@ enum {
}; };
struct mlx5_ifc_cmd_hca_cap_bits { struct mlx5_ifc_cmd_hca_cap_bits {
u8 reserved_at_0[0x80]; u8 reserved_at_0[0x30];
u8 vhca_id[0x10];
u8 reserved_at_40[0x40];
u8 log_max_srq_sz[0x8]; u8 log_max_srq_sz[0x8];
u8 log_max_qp_sz[0x8]; u8 log_max_qp_sz[0x8];
...@@ -1023,12 +1026,19 @@ struct mlx5_ifc_cmd_hca_cap_bits { ...@@ -1023,12 +1026,19 @@ struct mlx5_ifc_cmd_hca_cap_bits {
u8 reserved_at_3b8[0x3]; u8 reserved_at_3b8[0x3];
u8 log_min_stride_sz_sq[0x5]; u8 log_min_stride_sz_sq[0x5];
u8 reserved_at_3c0[0x1b]; u8 hairpin[0x1];
u8 reserved_at_3c1[0x2];
u8 log_max_hairpin_queues[0x5];
u8 reserved_at_3c8[0x3];
u8 log_max_hairpin_wq_data_sz[0x5];
u8 reserved_at_3d0[0xb];
u8 log_max_wq_sz[0x5]; u8 log_max_wq_sz[0x5];
u8 nic_vport_change_event[0x1]; u8 nic_vport_change_event[0x1];
u8 disable_local_lb[0x1]; u8 disable_local_lb[0x1];
u8 reserved_at_3e2[0x9]; u8 reserved_at_3e2[0x1];
u8 log_min_hairpin_wq_data_sz[0x5];
u8 reserved_at_3e8[0x3];
u8 log_max_vlan_list[0x5]; u8 log_max_vlan_list[0x5];
u8 reserved_at_3f0[0x3]; u8 reserved_at_3f0[0x3];
u8 log_max_current_mc_list[0x5]; u8 log_max_current_mc_list[0x5];
...@@ -1162,7 +1172,10 @@ struct mlx5_ifc_wq_bits { ...@@ -1162,7 +1172,10 @@ struct mlx5_ifc_wq_bits {
u8 reserved_at_118[0x3]; u8 reserved_at_118[0x3];
u8 log_wq_sz[0x5]; u8 log_wq_sz[0x5];
u8 reserved_at_120[0x15]; u8 reserved_at_120[0xb];
u8 log_hairpin_data_sz[0x5];
u8 reserved_at_130[0x5];
u8 log_wqe_num_of_strides[0x3]; u8 log_wqe_num_of_strides[0x3];
u8 two_byte_shift_en[0x1]; u8 two_byte_shift_en[0x1];
u8 reserved_at_139[0x4]; u8 reserved_at_139[0x4];
...@@ -2482,7 +2495,8 @@ struct mlx5_ifc_sqc_bits { ...@@ -2482,7 +2495,8 @@ struct mlx5_ifc_sqc_bits {
u8 state[0x4]; u8 state[0x4];
u8 reg_umr[0x1]; u8 reg_umr[0x1];
u8 allow_swp[0x1]; u8 allow_swp[0x1];
u8 reserved_at_e[0x12]; u8 hairpin[0x1];
u8 reserved_at_f[0x11];
u8 reserved_at_20[0x8]; u8 reserved_at_20[0x8];
u8 user_index[0x18]; u8 user_index[0x18];
...@@ -2490,7 +2504,13 @@ struct mlx5_ifc_sqc_bits { ...@@ -2490,7 +2504,13 @@ struct mlx5_ifc_sqc_bits {
u8 reserved_at_40[0x8]; u8 reserved_at_40[0x8];
u8 cqn[0x18]; u8 cqn[0x18];
u8 reserved_at_60[0x90]; u8 reserved_at_60[0x8];
u8 hairpin_peer_rq[0x18];
u8 reserved_at_80[0x10];
u8 hairpin_peer_vhca[0x10];
u8 reserved_at_a0[0x50];
u8 packet_pacing_rate_limit_index[0x10]; u8 packet_pacing_rate_limit_index[0x10];
u8 tis_lst_sz[0x10]; u8 tis_lst_sz[0x10];
...@@ -2562,7 +2582,8 @@ struct mlx5_ifc_rqc_bits { ...@@ -2562,7 +2582,8 @@ struct mlx5_ifc_rqc_bits {
u8 state[0x4]; u8 state[0x4];
u8 reserved_at_c[0x1]; u8 reserved_at_c[0x1];
u8 flush_in_error_en[0x1]; u8 flush_in_error_en[0x1];
u8 reserved_at_e[0x12]; u8 hairpin[0x1];
u8 reserved_at_f[0x11];
u8 reserved_at_20[0x8]; u8 reserved_at_20[0x8];
u8 user_index[0x18]; u8 user_index[0x18];
...@@ -2576,7 +2597,13 @@ struct mlx5_ifc_rqc_bits { ...@@ -2576,7 +2597,13 @@ struct mlx5_ifc_rqc_bits {
u8 reserved_at_80[0x8]; u8 reserved_at_80[0x8];
u8 rmpn[0x18]; u8 rmpn[0x18];
u8 reserved_at_a0[0xe0]; u8 reserved_at_a0[0x8];
u8 hairpin_peer_sq[0x18];
u8 reserved_at_c0[0x10];
u8 hairpin_peer_vhca[0x10];
u8 reserved_at_e0[0xa0];
struct mlx5_ifc_wq_bits wq; struct mlx5_ifc_wq_bits wq;
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment