linux-rdma.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATH rdma-core] providers/rxe: Set wqe->dma.resid to length for inline data
@ 2021-08-06  7:20 Xiao Yang
  2021-08-08  8:21 ` Leon Romanovsky
  0 siblings, 1 reply; 2+ messages in thread
From: Xiao Yang @ 2021-08-06  7:20 UTC (permalink / raw)
  To: linux-rdma; +Cc: rpearsonhpe, zyjzyj2000, Xiao Yang

Signed-off-by: Xiao Yang <yangx.jy@fujitsu.com>
---
 providers/rxe/rxe.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/providers/rxe/rxe.c b/providers/rxe/rxe.c
index 3c3ea8bb..c3b267c3 100644
--- a/providers/rxe/rxe.c
+++ b/providers/rxe/rxe.c
@@ -1004,7 +1004,7 @@ static void wr_set_inline_data(struct ibv_qp_ex *ibqp, void *addr,
 
 	memcpy(wqe->dma.inline_data, addr, length);
 	wqe->dma.length = length;
-	wqe->dma.resid = 0;
+	wqe->dma.resid = length;
 }
 
 static void wr_set_inline_data_list(struct ibv_qp_ex *ibqp, size_t num_buf,
@@ -1473,8 +1473,6 @@ static int init_send_wqe(struct rxe_qp *qp, struct rxe_wq *sq,
 	if (ibwr->send_flags & IBV_SEND_INLINE) {
 		uint8_t *inline_data = wqe->dma.inline_data;
 
-		wqe->dma.resid = 0;
-
 		for (i = 0; i < num_sge; i++) {
 			memcpy(inline_data,
 			       (uint8_t *)(long)ibwr->sg_list[i].addr,
-- 
2.25.1




^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATH rdma-core] providers/rxe: Set wqe->dma.resid to length for inline data
  2021-08-06  7:20 [PATH rdma-core] providers/rxe: Set wqe->dma.resid to length for inline data Xiao Yang
@ 2021-08-08  8:21 ` Leon Romanovsky
  0 siblings, 0 replies; 2+ messages in thread
From: Leon Romanovsky @ 2021-08-08  8:21 UTC (permalink / raw)
  To: Xiao Yang; +Cc: linux-rdma, rpearsonhpe, zyjzyj2000

On Fri, Aug 06, 2021 at 03:20:17PM +0800, Xiao Yang wrote:
> Signed-off-by: Xiao Yang <yangx.jy@fujitsu.com>
> ---
>  providers/rxe/rxe.c | 4 +---
>  1 file changed, 1 insertion(+), 3 deletions(-)

Please write in the commit message what the problem you are fixing,
change subject to be informative and add Fixes line.

Thanks

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-08-08  8:22 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-08-06  7:20 [PATH rdma-core] providers/rxe: Set wqe->dma.resid to length for inline data Xiao Yang
2021-08-08  8:21 ` Leon Romanovsky

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).