RDMA/mlx5: Take qp type from mlx5_ib_qp
authorMaor Gottlieb <maorg@nvidia.com>
Wed, 19 May 2021 08:47:27 +0000 (11:47 +0300)
committerJason Gunthorpe <jgg@nvidia.com>
Wed, 26 May 2021 19:49:42 +0000 (16:49 -0300)
commit9ecf6ac17c321df396df283a771c29663e44871a
treea9dfad323480989eb6bf0e0e28711ecaf1ba0fff
parent331859d320f568a5ef8912063a2ec56956e519d9
RDMA/mlx5: Take qp type from mlx5_ib_qp

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.

Link: https://lore.kernel.org/r/b2e16cd65b59cd24fa81c01c7989248da44e58ea.1621413899.git.leonro@nvidia.com
Signed-off-by: Maor Gottlieb <maorg@nvidia.com>
Signed-off-by: Leon Romanovsky <leonro@nvidia.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
drivers/infiniband/hw/mlx5/cq.c
drivers/infiniband/hw/mlx5/mlx5_ib.h
drivers/infiniband/hw/mlx5/odp.c
drivers/infiniband/hw/mlx5/qp.c
drivers/infiniband/hw/mlx5/wr.c