Message ID | 20210806072017.15459-1-yangx.jy@fujitsu.com (mailing list archive) |
---|---|
State | Changes Requested |
Headers | show |
Series | [PATH,rdma-core] providers/rxe: Set wqe->dma.resid to length for inline data | expand |
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
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,
Signed-off-by: Xiao Yang <yangx.jy@fujitsu.com> --- providers/rxe/rxe.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-)