[ofa-general] Bug in inline sends with sge_num > 0 in libmlx4
Gleb Natapov
glebn at voltaire.com
Tue Jul 24 05:14:40 PDT 2007
Hi,
There is a bug in mlx4_post_send(). A data that is sent inline and
consists from multiple small sges isn't copied properly into wqe.
The following patch fixes it for me.
Signed-off-by: Gleb Natapov <glebn at voltaire.com>
diff --git a/src/qp.c b/src/qp.c
index 66ee309..83a4fd4 100644
--- a/src/qp.c
+++ b/src/qp.c
@@ -288,6 +288,7 @@ int mlx4_post_send(struct ibv_qp *ibqp, struct ibv_send_wr *wr,
memcpy(wqe, addr, len);
wqe += len;
seg_len += len;
+ off += len;
}
if (seg_len) {
--
Gleb.
More information about the general
mailing list