From 28b139ac1e8ca13f848c69a6d1ba1f9305612033 Mon Sep 17 00:00:00 2001 From: Jack Morgenstein Date: Wed, 2 May 2007 17:12:24 +0300 Subject: [PATCH] Fix inline send posting when posting more than one request Need to set inl parameter to zero for each request when posting a list of requests, so that the value of inl is correct for each work request, and is not cumulative. Signed-off-by: Jack Morgenstein Signed-off-by: Roland Dreier --- src/qp.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/qp.c b/src/qp.c index 76abf75..a70e5f2 100644 --- a/src/qp.c +++ b/src/qp.c @@ -217,6 +217,7 @@ int mlx4_post_send(struct ibv_qp *ibqp, struct ibv_send_wr *wr, if (wr->num_sge) { struct mlx4_wqe_inline_seg *seg = wqe; + inl = 0; wqe += sizeof *seg; for (i = 0; i < wr->num_sge; ++i) { uint32_t len = wr->sg_list[i].length; -- 2.46.0