Skip to content

Commit

Permalink
IB/rxe: Fix resid update
Browse files Browse the repository at this point in the history
Update the response's resid field when larger than MTU, instead of only
updating the local resid variable.

Fixes: 8700e3e ("Soft RoCE driver")
Signed-off-by: Eyal Itkin <eyal.itkin@gmail.com>
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
  • Loading branch information
Eyal Itkin authored and Doug Ledford committed Feb 8, 2017
1 parent b4cfe39 commit 628f07d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/infiniband/sw/rxe/rxe_resp.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 628f07d

Please sign in to comment.