From: huangqingxin <huangqingxin@xxxxxxxxxxxxx> In the rxe_requester, we may fail to xmit packet for missing GID entry. We should also advance req.wqe_index too.Otherwise, we won't be able to get the new next wqe, and completer would consume the wrong wqe. Signed-off-by: huangqingxin <huangqingxin@xxxxxxxxxxxxx> --- drivers/infiniband/sw/rxe/rxe_req.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/infiniband/sw/rxe/rxe_req.c b/drivers/infiniband/sw/rxe/rxe_req.c index e5031172c..08f4bea06 100644 --- a/drivers/infiniband/sw/rxe/rxe_req.c +++ b/drivers/infiniband/sw/rxe/rxe_req.c @@ -756,6 +756,7 @@ int rxe_requester(void *arg) err: wqe->status = IB_WC_LOC_PROT_ERR; wqe->state = wqe_state_error; + qp->req.wqe_index = next_index(qp->sq.queue, qp->req.wqe_index); __rxe_do_task(&qp->comp.task); exit: -- 2.17.1