Need to set inl parameter to zero for each inline post (when posting
a wr-list of inlines -- so that the value of inl reflects that specific
work request, and is not cumulative.

Signed-off-by: Jack Morgenstein <[EMAIL PROTECTED]>

diff --git a/src/userspace/libmlx4/src/qp.c b/src/userspace/libmlx4/src/qp.c
index 76abf75..a70e5f2 100644
--- a/src/userspace/libmlx4/src/qp.c
+++ b/src/userspace/libmlx4/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;
_______________________________________________
general mailing list
[email protected]
http://lists.openfabrics.org/cgi-bin/mailman/listinfo/general

To unsubscribe, please visit http://openib.org/mailman/listinfo/openib-general

Reply via email to