mirror of https://gitee.com/openkylin/linux.git
IB/hns: Update the rq head when modify qp state
The rq head in qpc was zero will miss the rq wqes which have be sent, so here we should take the real value. Signed-off-by: Lijun Ou <oulijun@huawei.com> Reviewed-by: Wei Hu (Xavier) <xavier.huwei@huawei.com> Signed-off-by: Salil Mehta <salil.mehta@huawei.com> Signed-off-by: Doug Ledford <dledford@redhat.com>
This commit is contained in:
parent
24f0c9c0ff
commit
1fad5fab78
|
@ -2248,7 +2248,8 @@ static int hns_roce_v1_m_qp(struct ib_qp *ibqp, const struct ib_qp_attr *attr,
|
|||
|
||||
roce_set_field(context->qpc_bytes_68,
|
||||
QP_CONTEXT_QPC_BYTES_68_RQ_HEAD_M,
|
||||
QP_CONTEXT_QPC_BYTES_68_RQ_HEAD_S, 0);
|
||||
QP_CONTEXT_QPC_BYTES_68_RQ_HEAD_S,
|
||||
hr_qp->rq.head);
|
||||
roce_set_field(context->qpc_bytes_68,
|
||||
QP_CONTEXT_QPC_BYTES_68_RQ_CUR_INDEX_M,
|
||||
QP_CONTEXT_QPC_BYTES_68_RQ_CUR_INDEX_S, 0);
|
||||
|
|
Loading…
Reference in New Issue