summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorEyal Itkin <eyal.itkin@gmail.com>2017-02-07 16:43:05 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-02-14 15:25:42 -0800
commit5476efeec1351d6df008a38c528099be65bfed0f (patch)
tree5c0bfb747c5c3b899d64a198fd5a29914145bb0d /drivers
parentc8cbc219d87cdbe33430b92350cb687b3f2201e6 (diff)
downloadlinux-rpi3-5476efeec1351d6df008a38c528099be65bfed0f.tar.gz
linux-rpi3-5476efeec1351d6df008a38c528099be65bfed0f.tar.bz2
linux-rpi3-5476efeec1351d6df008a38c528099be65bfed0f.zip
IB/rxe: Fix resid update
commit 628f07d33c1f2e7bf31e0a4a988bb07914bd5e73 upstream. 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> Reviewed-by: Leon Romanovsky <leonro@mellanox.com> Signed-off-by: Doug Ledford <dledford@redhat.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/infiniband/sw/rxe/rxe_resp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/infiniband/sw/rxe/rxe_resp.c b/drivers/infiniband/sw/rxe/rxe_resp.c
index dd3d88adc003..ccf624763565 100644
--- a/drivers/infiniband/sw/rxe/rxe_resp.c
+++ b/drivers/infiniband/sw/rxe/rxe_resp.c
@@ -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;