mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-06 10:58:48 +09:00
IB/rxe: Fix resid update
commit628f07d33cupstream. Update the response's resid field when larger than MTU, instead of only updating the local resid variable. Fixes:8700e3e7c4("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> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
c8cbc219d8
commit
5476efeec1
@@ -472,7 +472,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;
|
||||
|
||||
Reference in New Issue
Block a user