RDMA/hns: Optimize qp destroy flow
authorXi Wang <wangxi11@huawei.com>
Mon, 24 Feb 2020 06:37:32 +0000 (14:37 +0800)
committerJason Gunthorpe <jgg@mellanox.com>
Fri, 28 Feb 2020 15:35:10 +0000 (11:35 -0400)
commite365b26c6b66fe2bc800399912f7cbc875edf693
tree8f28773b5e440b25395c43af220dc6db06068522
parent75c994e6943c2aa887871eb6e6cea6c073b1cfd3
RDMA/hns: Optimize qp destroy flow

Wrap the duplicate code in hip08 and hip06 qp destruction process as
hns_roce_qp_destroy() to simply the qp destroy flow.

Link: https://lore.kernel.org/r/1582526258-13825-2-git-send-email-liweihang@huawei.com
Signed-off-by: Xi Wang <wangxi11@huawei.com>
Signed-off-by: Weihang Li <liweihang@huawei.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/hw/hns/hns_roce_device.h
drivers/infiniband/hw/hns/hns_roce_hw_v1.c
drivers/infiniband/hw/hns/hns_roce_hw_v2.c
drivers/infiniband/hw/hns/hns_roce_qp.c