projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b4cfe39
)
IB/rxe: Fix resid update
author
Eyal Itkin
<eyal.itkin@gmail.com>
Tue, 7 Feb 2017 13:43:05 +0000
(16:43 +0300)
committer
Doug Ledford
<dledford@redhat.com>
Wed, 8 Feb 2017 17:28:30 +0000
(12:28 -0500)
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>
drivers/infiniband/sw/rxe/rxe_resp.c
patch
|
blob
|
history
diff --git
a/drivers/infiniband/sw/rxe/rxe_resp.c
b/drivers/infiniband/sw/rxe/rxe_resp.c
index 3435efff879960cece0c7e122b5960a057f2d4a1..5bcf073289729bd881960e8f797af1aa82e3b5bc 100644
(file)
--- 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;