From: Dotan Barak <dot...@dev.mellanox.co.il>

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 <dot...@dev.mellanox.co.il>
Reviewed-by: Jack Morgenstein <ja...@dev.mellanox.co.il>
Signed-off-by: Or Gerlitz <ogerl...@mellanox.com>
---
 src/qp.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/src/qp.c b/src/qp.c
index 812e6ec..e770ec8 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);
-- 
1.7.1

--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to