Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
mlx5: Use valid qp type to determine wqe buffer allocation type
The library has env based setup (e.g HUGE_RC=y, etc) for the user to provide directives/hints re how to allocate the WQE buffer per qp type. Currently, the ibv qp instance is used for that, however, it's qp type field is not initialized at the time mlx5_alloc_qp_buf is called. As a result, the user hint/directive is ignored. To fix that, pick the qp type from the provided attributes. Note: this commit refers to the compatibility mode per QP type. The default mode (i.e. MLX_QP_ALLOC_TYPE) which refers to all QP types, works fine. Signed-off-by: Or Gerlitz <ogerlitz@nvidia.com> Signed-off-by: Yishai Hadas <yishaih@nvidia.com>
- Loading branch information