提交 c0c84d56 编写于 作者: J Joachim Fenkes 提交者: Roland Dreier

IB/ehca: Supply QP token for SRQ base QPs

Because hardware reports the SRQ token in RWQEs of SRQ base QPs, supply the
base QP token as SRQ token, so we can properly find the SRQ base QP.
Signed-off-by: NJoachim Fenkes <fenkes@de.ibm.com>
Signed-off-by: NRoland Dreier <rolandd@cisco.com>
上级 69fc507a
...@@ -451,7 +451,6 @@ static struct ehca_qp *internal_create_qp( ...@@ -451,7 +451,6 @@ static struct ehca_qp *internal_create_qp(
has_srq = 1; has_srq = 1;
parms.ext_type = EQPT_SRQBASE; parms.ext_type = EQPT_SRQBASE;
parms.srq_qpn = my_srq->real_qp_num; parms.srq_qpn = my_srq->real_qp_num;
parms.srq_token = my_srq->token;
} }
if (is_llqp && has_srq) { if (is_llqp && has_srq) {
...@@ -583,6 +582,9 @@ static struct ehca_qp *internal_create_qp( ...@@ -583,6 +582,9 @@ static struct ehca_qp *internal_create_qp(
goto create_qp_exit1; goto create_qp_exit1;
} }
if (has_srq)
parms.srq_token = my_qp->token;
parms.servicetype = ibqptype2servicetype(qp_type); parms.servicetype = ibqptype2servicetype(qp_type);
if (parms.servicetype < 0) { if (parms.servicetype < 0) {
ret = -EINVAL; ret = -EINVAL;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册