[ofa-general] [PATCH] libmlx4: fix post inline when posting a list

Jack Morgenstein jackm at dev.mellanox.co.il
Wed May 2 07:12:24 PDT 2007


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 <jackm at dev.mellanox.co.il>

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;



More information about the general mailing list