Skip to content

Commit 107013c

Browse files
oulijunjgunthorpe
authored andcommitted
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 <[email protected]> Signed-off-by: Jason Gunthorpe <[email protected]>
1 parent 10bd2ad commit 107013c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/infiniband/hw/hns/hns_roce_hw_v1.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -775,7 +775,7 @@ static int hns_roce_v1_rsv_lp_qp(struct hns_roce_dev *hr_dev)
775775
goto create_lp_qp_failed;
776776
}
777777

778-
ret = hr_dev->hw->modify_qp(&hr_qp->ibqp, &attr, attr_mask,
778+
ret = hr_dev->hw->modify_qp(&hr_qp->ibqp, &attr, IB_QP_DEST_QPN,
779779
IB_QPS_INIT, IB_QPS_RTR);
780780
if (ret) {
781781
dev_err(dev, "modify qp failed(%d)!\n", ret);

0 commit comments

Comments
 (0)