aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/infiniband/hw/hns
diff options
context:
space:
mode:
authoroulijun <oulijun@huawei.com>2018-01-03 10:44:08 +0800
committerJason Gunthorpe <jgg@mellanox.com>2018-01-03 13:58:59 -0700
commit107013ce7b28c3d7395bc0299c0fe3ce12f15b6f (patch)
treec5e47ee70e8f7631f06fdae334ba07857845063b /drivers/infiniband/hw/hns
parentRDMA/hns: Fix QP state judgement before sending work requests (diff)
downloadlinux-dev-107013ce7b28c3d7395bc0299c0fe3ce12f15b6f.tar.xz
linux-dev-107013ce7b28c3d7395bc0299c0fe3ce12f15b6f.zip
RDMA/hns: Assign dest_qp when deregistering mr
It needs to create eight reserve QPs for resolving a bug of hip06. When deregistering mr, it will issue a rdma write for every reserve QPs. When modify qp from init to rtr, it needs to set the value of dest_qp_num. Otherwise, it will lead an error of freeing mr. Signed-off-by: Lijun Ou <oulijun@huawei.com> Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
Diffstat (limited to 'drivers/infiniband/hw/hns')
-rw-r--r--drivers/infiniband/hw/hns/hns_roce_hw_v1.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/infiniband/hw/hns/hns_roce_hw_v1.c b/drivers/infiniband/hw/hns/hns_roce_hw_v1.c
index 73f187e784c7..939355ede14a 100644
--- a/drivers/infiniband/hw/hns/hns_roce_hw_v1.c
+++ b/drivers/infiniband/hw/hns/hns_roce_hw_v1.c
@@ -775,7 +775,7 @@ static int hns_roce_v1_rsv_lp_qp(struct hns_roce_dev *hr_dev)
goto create_lp_qp_failed;
}
- ret = hr_dev->hw->modify_qp(&hr_qp->ibqp, &attr, attr_mask,
+ ret = hr_dev->hw->modify_qp(&hr_qp->ibqp, &attr, IB_QP_DEST_QPN,
IB_QPS_INIT, IB_QPS_RTR);
if (ret) {
dev_err(dev, "modify qp failed(%d)!\n", ret);