On Tue, 2017-02-07 at 16:43 +0300, Dan Carpenter wrote: > From: Eyal Itkin <eyal.itkin@xxxxxxxxx> > > Update the response's resid field when larger than MTU, instead of > only > updating the local resid variable. > > Fixes: 8700e3e7c485 ("Soft RoCE driver") > Signed-off-by: Eyal Itkin <eyal.itkin@xxxxxxxxx> > Signed-off-by: Dan Carpenter <dan.carpenter@xxxxxxxxxx> > > diff --git a/drivers/infiniband/sw/rxe/rxe_resp.c > b/drivers/infiniband/sw/rxe/rxe_resp.c > index 7bf20ced2078..d404a8aba7af 100644 > --- a/drivers/infiniband/sw/rxe/rxe_resp.c > +++ b/drivers/infiniband/sw/rxe/rxe_resp.c > @@ -479,7 +479,7 @@ static enum resp_states check_rkey(struct rxe_qp > *qp, > goto err; > } > > - resid = mtu; > + qp->resp.resid = mtu; > } else { > if (pktlen != resid) { > state = RESPST_ERR_LENGTH; Applied, thanks. -- Doug Ledford <dledford@xxxxxxxxxx> GPG KeyID: B826A3330E572FDD Key fingerprint = AE6B 1BDA 122B 23B4 265B 1274 B826 A333 0E57 2FDD
Attachment:
signature.asc
Description: This is a digitally signed message part