]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit45b3b0d4082dffa8bc1e31532169f8f19e4e2a9e
tree5fe6f6878fe86dd10b2829ce673eace618faddcd
parent33c653a7d68f73ba97786ce4f4aecfb7f8f00a0a
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: a3246a0c5350 ("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