Re: [PATCH rdma-next] RDMA/mlx5: Take qp type from mlx5_ib_qp
From: Jason Gunthorpe
Date: Fri May 28 2021 - 19:10:03 EST
On Wed, May 19, 2021 at 11:47:27AM +0300, Leon Romanovsky wrote:
> From: Maor Gottlieb <maorg@xxxxxxxxxx>
>
> Change all the places in the mlx5_ib driver to take the
> qp type from the mlx5_ib_qp struct, except the QP initialization
> flow. It will ensure that we check the right QP type also for vendor
> specific QPs.
>
> Signed-off-by: Maor Gottlieb <maorg@xxxxxxxxxx>
> Signed-off-by: Leon Romanovsky <leonro@xxxxxxxxxx>
> ---
> Followup to
> https://lore.kernel.org/lkml/6eee15d63f09bb70787488e0cf96216e2957f5aa.1621413654.git.leonro@xxxxxxxxxx
> ---
> drivers/infiniband/hw/mlx5/cq.c | 2 +-
> drivers/infiniband/hw/mlx5/mlx5_ib.h | 1 -
> drivers/infiniband/hw/mlx5/odp.c | 2 +-
> drivers/infiniband/hw/mlx5/qp.c | 53 +++++++++++++---------------
> drivers/infiniband/hw/mlx5/wr.c | 9 +++--
> 5 files changed, 31 insertions(+), 36 deletions(-)
Applied to for-next
Jason