Skip to contentSkip to conversation

providers/rxe: Set wqe->dma.resid to length for inline data

PATH rdma-core Xiao Yang 2 participants 2 messages Aug 6, 2021 – Aug 8, 2021 InfiniBand

lore
Share & tools
lore

Xiao Yang

author
#0 lore raw
---
 providers/rxe/rxe.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
providers/rxe/rxe.c +1 -3
index 3c3ea8bb..c3b267c3 100644
@@ -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,
Signature · 1 line
2.25.1
#1 lore raw
Quoted 4 lines · Xiao Yang
---
 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