提交 d9856486 编写于 作者: X Xi Wang 提交者: Xie XiuQi

RDMA/hns: Fix srq initialization failure problem

driver inclusion
category: bugfix
bugzilla: NA
CVE: NA

Currently, when the qp use the srq, the rq mtt count checking
will fail.

This patch fixes this issue by ignoring the rq mtt count checking.

Fixes: 5c42b537063d ("RDMA/hns:Fix bug when wqe num is larger than 16384")
Signed-off-by: Nwangxi <wangxi11@huawei.com>
Signed-off-by: NXi Wang <wangxi11@huawei.com>
Reviewed-by: Noulijun <oulijun@huawei.com>
Reviewed-by: Nliuyixian <liuyixian@huawei.com>
Reviewed-by: NXie XiuQi <xiexiuqi@huawei.com>
Signed-off-by: NYang Yingliang <yangyingliang@huawei.com>
上级 40f53603
......@@ -3989,6 +3989,7 @@ static int modify_qp_init_to_rtr(struct ib_qp *ibqp,
count = hns_roce_mtr_find(hr_dev, &hr_qp->mtr,
hr_qp->rq.offset / page_size, mtts,
MTT_MIN_COUNT, &wqe_sge_ba);
if (!ibqp->srq)
if (!check_wqe_rq_mtt_count(hr_dev, hr_qp, count, page_size))
return -EINVAL;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册