aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGleb Natapov <glebn@voltaire.com>2007-07-24 15:14:40 +0300
committerRoland Dreier <rolandd@cisco.com>2007-07-27 21:34:46 -0700
commitcfe59bb9c1fc1cdd88911ab304470a22fd18c78c (patch)
treeeb701f085cb446a7bb28e3ae77d26262fe785e99
parentaebd40033702fd80b1fe7f659c2bcbc7a5c76ab0 (diff)
downloadlibmlx4-cfe59bb9c1fc1cdd88911ab304470a22fd18c78c.tar.gz
Fix inline sends with num_sge > 1
A work request with IBV_SEND_INLINE set and more than one gather entry does not have its data copied into the WQE correctly, because the offset is not updated properly. Add the missing update of off when a gather entry does not fill an inline segment exactly. Signed-off-by: Gleb Natapov <glebn@voltaire.com> Signed-off-by: Roland Dreier <rolandd@cisco.com>
-rw-r--r--src/qp.c1
1 files changed, 1 insertions, 0 deletions
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) {