IB/rxe: Fix resid update
commit5476efeec1351d6df008a38c528099be65bfed0f
authorEyal Itkin <eyal.itkin@gmail.com>
Tue, 7 Feb 2017 13:43:05 +0000 (7 16:43 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 14 Feb 2017 23:25:42 +0000 (14 15:25 -0800)
tree5c0bfb747c5c3b899d64a198fd5a29914145bb0d
parentc8cbc219d87cdbe33430b92350cb687b3f2201e6
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>
drivers/infiniband/sw/rxe/rxe_resp.c