RDMA/hns: Don't skip IB creation flow for regular RC QP
authorLeon Romanovsky <leonro@nvidia.com>
Fri, 23 Jul 2021 11:39:43 +0000 (14:39 +0300)
committerJason Gunthorpe <jgg@nvidia.com>
Tue, 3 Aug 2021 16:44:26 +0000 (13:44 -0300)
commit4ffd3b800e9722ea44fc3755e72d026dd530dc4e
treef273aa6e0af0ddbf2b9022b183589b69f9f83586
parent0050a57638ca4d681ff92bee55246bf64a6afe54
RDMA/hns: Don't skip IB creation flow for regular RC QP

The call to internal QP creation function skips QP creation checks and
misses the addition of such device QPs to the restrack DB.

As a preparation to general allocation scheme, convert hns to use proper
API.

Link: https://lore.kernel.org/r/7b236c15f7d5abb368958297ac6962d8459cb824.1627040189.git.leonro@nvidia.com
Signed-off-by: Leon Romanovsky <leonro@nvidia.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
drivers/infiniband/hw/hns/hns_roce_hw_v1.c