diff options
author | Gleb Natapov <glebn@voltaire.com> | 2007-07-24 15:14:40 +0300 |
---|---|---|
committer | Roland Dreier <rolandd@cisco.com> | 2007-07-27 21:34:46 -0700 |
commit | cfe59bb9c1fc1cdd88911ab304470a22fd18c78c (patch) | |
tree | eb701f085cb446a7bb28e3ae77d26262fe785e99 | |
parent | aebd40033702fd80b1fe7f659c2bcbc7a5c76ab0 (diff) | |
download | libmlx4-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.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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) { |