From: Jack Morgenstein Date: Wed, 2 May 2007 14:12:24 +0000 (+0300) Subject: Fix inline send posting when posting more than one request X-Git-Url: https://openfabrics.org/gitweb/?a=commitdiff_plain;h=28b139ac1e8ca13f848c69a6d1ba1f9305612033;p=~shefty%2Flibmlx4.git 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 --- 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;