projects
/
linux-2.6-microblaze.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a2b6456
)
RDMA/siw: Use iov.iov_len in kernel_sendmsg
author
Guoqing Jiang
<guoqing.jiang@linux.dev>
Mon, 13 Nov 2023 11:57:12 +0000
(19:57 +0800)
committer
Leon Romanovsky
<leon@kernel.org>
Wed, 15 Nov 2023 13:58:13 +0000
(15:58 +0200)
We can pass iov.iov_len here.
Acked-by: Bernard Metzler <bmt@zurich.ibm.com>
Signed-off-by: Guoqing Jiang <guoqing.jiang@linux.dev>
Link:
https://lore.kernel.org/r/20231113115726.12762-4-guoqing.jiang@linux.dev
Signed-off-by: Leon Romanovsky <leon@kernel.org>
drivers/infiniband/sw/siw/siw_qp_tx.c
patch
|
blob
|
history
diff --git
a/drivers/infiniband/sw/siw/siw_qp_tx.c
b/drivers/infiniband/sw/siw/siw_qp_tx.c
index
86186cd
..
838123c
100644
(file)
--- a/
drivers/infiniband/sw/siw/siw_qp_tx.c
+++ b/
drivers/infiniband/sw/siw/siw_qp_tx.c
@@
-292,8
+292,7
@@
static int siw_tx_ctrl(struct siw_iwarp_tx *c_tx, struct socket *s,
(char *)&c_tx->pkt.ctrl + c_tx->ctrl_sent,
.iov_len = c_tx->ctrl_len - c_tx->ctrl_sent };
- int rv = kernel_sendmsg(s, &msg, &iov, 1,
- c_tx->ctrl_len - c_tx->ctrl_sent);
+ int rv = kernel_sendmsg(s, &msg, &iov, 1, iov.iov_len);
if (rv >= 0) {
c_tx->ctrl_sent += rv;