providers/rxe: Set wqe->dma.resid to length for inline data
Signed-off-by Xiao Yang <[email protected]>
--- providers/rxe/rxe.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-)
providers/rxe/rxe.c +1 -3
@@ -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
Quoted 4 lines · Xiao Yang
Signed-off-by Xiao Yang <[email protected]>--- 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