RDMA/mlx5: Rework custom driver QP type creation
authorLeon Romanovsky <leonro@nvidia.com>
Fri, 23 Jul 2021 11:39:48 +0000 (14:39 +0300)
committerJason Gunthorpe <jgg@nvidia.com>
Tue, 3 Aug 2021 16:44:27 +0000 (13:44 -0300)
commit0dc0da15ed7d1f50ec3ef0cdbb7f2975abefec1f
tree1f94132c5ebe7746a833b3840b4056968912d703
parent8c9e7f0325fe57ef55bacfa82d10857b4433fef3
RDMA/mlx5: Rework custom driver QP type creation

Starting from commit 2b1f747071c5 ("RDMA/core: Allow drivers to disable
restrack DB") the restrack is able to handle non-standard QP types either.

That change allows us to rewrite custom QP calls to their IB/core
counterparts, so we will use general QP creation flow even for the driver
QP types.

Link: https://lore.kernel.org/r/51682ab82298748941f38bd23ee3bf77ef1cab7b.1627040189.git.leonro@nvidia.com
Signed-off-by: Leon Romanovsky <leonro@nvidia.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
drivers/infiniband/hw/mlx5/gsi.c
drivers/infiniband/hw/mlx5/main.c
drivers/infiniband/hw/mlx5/qp.c