aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDotan Barak <dotanb@dev.mellanox.co.il>2012-09-20 20:31:05 +0000
committerRoland Dreier <roland@purestorage.com>2013-04-03 11:21:48 -0700
commitef656a513d0667d5c0ecd86a555353442ba5751e (patch)
treeae85566c598f71c16e48c852c7d806799b492800
parent7b47c7aaa1721f864bf57cd030fae6cb418da97a (diff)
downloadlibmlx4-ef656a513d0667d5c0ecd86a555353442ba5751e.tar.gz
Use BlueFlame for RDMA Write [with immediate] without data
Use Blue-Flame for RDMA Write and RDMA Write with immediate without any data (no s/g). This improves latency for those messages. Signed-off-by: Dotan Barak <dotanb@dev.mellanox.co.il> Reviewed-by: Jack Morgenstein <jackm@dev.mellanox.co.il> Signed-off-by: Or Gerlitz <ogerlitz@mellanox.com> Signed-off-by: Roland Dreier <roland@purestorage.com>
-rw-r--r--src/qp.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/qp.c b/src/qp.c
index a032517..67da6a4 100644
--- a/src/qp.c
+++ b/src/qp.c
@@ -267,6 +267,8 @@ int mlx4_post_send(struct ibv_qp *ibqp, struct ibv_send_wr *wr,
/* fall through */
case IBV_WR_RDMA_WRITE:
case IBV_WR_RDMA_WRITE_WITH_IMM:
+ if (!wr->num_sge)
+ inl = 1;
set_raddr_seg(wqe, wr->wr.rdma.remote_addr,
wr->wr.rdma.rkey);
wqe += sizeof (struct mlx4_wqe_raddr_seg);