The DC QPs are many-to-one QP types that means that first connection will establish ECE options that coming connections should follow. Due to this property, the ECE code was removed between first [1] and second [2] ECE submissions. This patch returns the dropped code, because ECE is a property of a connection and like any other connection users are needed to manage this data. Allow them to set ECE parameter for DC too and avoid need of having compatibility flag for the DC ECE. [1] https://lore.kernel.org/linux-rdma/20200523132243.817936-1-leon@kernel.org/ [2] https://lore.kernel.org/linux-rdma/20200525174401.71152-1-leon@kernel.org/
Showing the changes to include/linux (1 of 2 files). Show all
Unified · Split
| @@ -3690,7 +3690,8 @@ struct mlx5_ifc_dctc_bits { · 3689 unmodified lines | |||
| 3690 | u8 ecn[0x2]; | 3690 | u8 ecn[0x2]; |
| 3691 | u8 dscp[0x6]; | 3691 | u8 dscp[0x6]; |
| 3692 | 3692 | ||
| 3693 | u8 reserved_at_1c0[0x40]; | 3693 | u8 reserved_at_1c0[0x20]; |
| 3694 | u8 ece[0x20]; | ||
| 3694 | }; | 3695 | }; |
| 3695 | 3696 | ||
| 3696 | enum { | 3697 | enum { |
| @@ -7940,7 +7941,7 @@ struct mlx5_ifc_create_dct_out_bits { · 4243 unmodified lines | |||
| 7940 | u8 reserved_at_40[0x8]; | 7941 | u8 reserved_at_40[0x8]; |
| 7941 | u8 dctn[0x18]; | 7942 | u8 dctn[0x18]; |
| 7942 | 7943 | ||
| 7943 | u8 reserved_at_60[0x20]; | 7944 | u8 ece[0x20]; |
| 7944 | }; | 7945 | }; |
| 7945 | 7946 | ||
| 7946 | struct mlx5_ifc_create_dct_in_bits { | 7947 | struct mlx5_ifc_create_dct_in_bits { |