Message ID | 20170207134305.GJ11103@mwanda (mailing list archive) |
---|---|
State | Accepted |
Headers | show |
On Tue, Feb 07, 2017 at 04:43:05PM +0300, Dan Carpenter wrote: > From: Eyal Itkin <eyal.itkin@gmail.com> > > 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@gmail.com> > Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> > Thanks, Reviewed-by: Leon Romanovsky <leonro@mellanox.com>
On Tue, 2017-02-07 at 16:43 +0300, Dan Carpenter wrote: > From: Eyal Itkin <eyal.itkin@gmail.com> > > 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@gmail.com> > Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> > > 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.
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;