From: Eyal Itkin Date: Tue, 7 Feb 2017 13:43:05 +0000 (+0300) Subject: IB/rxe: Fix resid update X-Git-Tag: MMI-PSA29.97-13-9~6244^2~2 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=628f07d33c1f2e7bf31e0a4a988bb07914bd5e73;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git IB/rxe: Fix resid update 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 Signed-off-by: Dan Carpenter Reviewed-by: Leon Romanovsky Signed-off-by: Doug Ledford --- diff --git a/drivers/infiniband/sw/rxe/rxe_resp.c b/drivers/infiniband/sw/rxe/rxe_resp.c index 3435efff8799..5bcf07328972 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 err2; } - resid = mtu; + qp->resp.resid = mtu; } else { if (pktlen != resid) { state = RESPST_ERR_LENGTH;