RDMA/hns: Bugfix for cleaning mtr
authorLijun Ou <oulijun@huawei.com>
Mon, 24 Jun 2019 11:47:45 +0000 (19:47 +0800)
committerJason Gunthorpe <jgg@mellanox.com>
Fri, 5 Jul 2019 15:02:00 +0000 (12:02 -0300)
commit6fafe560ee4ddb79b1c9d6c168d4f2e7eef2a037
tree5fe6f6878fe86dd10b2829ce673eace618faddcd
parent6e7be47a53459ba3d288c3240ccd948fc699c377
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>
drivers/infiniband/hw/hns/hns_roce_hw_v2.c