aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/infiniband/hw/hns/hns_roce_hw_v2.c
diff options
context:
space:
mode:
authorLijun Ou <oulijun@huawei.com>2019-06-24 19:47:45 +0800
committerJason Gunthorpe <jgg@mellanox.com>2019-07-05 12:02:00 -0300
commit6fafe560ee4ddb79b1c9d6c168d4f2e7eef2a037 (patch)
tree5fe6f6878fe86dd10b2829ce673eace618faddcd /drivers/infiniband/hw/hns/hns_roce_hw_v2.c
parentRDMA/nldev: Allow get default counter statistics through RDMA netlink (diff)
downloadlinux-dev-6fafe560ee4ddb79b1c9d6c168d4f2e7eef2a037.tar.xz
linux-dev-6fafe560ee4ddb79b1c9d6c168d4f2e7eef2a037.zip
RDMA/hns: Bugfix for cleaning mtr
It uses hns_roce_mtr_init in hns_roce_create_qp_common function. As a result, it should use hns_roce_mtr_cleanup function for cleaning mtr when destroying qp. Fixes: 8d18ad83f19b ("RDMA/hns: Fix bug when wqe num is larger than 16K") Signed-off-by: Xi Wang <wangxi11@huawei.com> Signed-off-by: Lijun Ou <oulijun@huawei.com> Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
Diffstat (limited to '')
-rw-r--r--drivers/infiniband/hw/hns/hns_roce_hw_v2.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/infiniband/hw/hns/hns_roce_hw_v2.c b/drivers/infiniband/hw/hns/hns_roce_hw_v2.c
index 20e6b5139ef4..4ae547d96cd4 100644
--- a/drivers/infiniband/hw/hns/hns_roce_hw_v2.c
+++ b/drivers/infiniband/hw/hns/hns_roce_hw_v2.c
@@ -4565,7 +4565,7 @@ static int hns_roce_v2_destroy_qp_common(struct hns_roce_dev *hr_dev,
(hr_qp->ibqp.qp_type == IB_QPT_UD))
hns_roce_release_range_qp(hr_dev, hr_qp->qpn, 1);
- hns_roce_mtt_cleanup(hr_dev, &hr_qp->mtt);
+ hns_roce_mtr_cleanup(hr_dev, &hr_qp->mtr);
if (udata) {
struct hns_roce_ucontext *context =