RDMA/mlx5: Change GSI QP to have same creation flow like other QPs
authorLeon Romanovsky <leonro@nvidia.com>
Sat, 26 Sep 2020 10:24:43 +0000 (13:24 +0300)
committerJason Gunthorpe <jgg@nvidia.com>
Tue, 29 Sep 2020 16:09:48 +0000 (13:09 -0300)
commit2dc4d6725bc24e992de7fc689d8437ae3250b86f
treece99a9baed6109df732e076e0ca47baaf8896453
parentf8225e3488dceffedbecdb658c1429c79645da4a
RDMA/mlx5: Change GSI QP to have same creation flow like other QPs

There is no reason to have separate create flow for the GSI QP, while
general create_qp routine has all needed checks and ability to allocate
and free the proper struct mlx5_ib_qp.

Link: https://lore.kernel.org/r/20200926102450.2966017-4-leon@kernel.org
Reviewed-by: Maor Gottlieb <maorg@mellanox.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/mlx5_ib.h
drivers/infiniband/hw/mlx5/qp.c