Skip to contentSkip to conversation

Use BlueFlame for RDMA_WRITE_WITH_IMM without data requests too

PATCH/libmlx4 Dotan Barak 1 participant 1 message Jul 11, 2011 InfiniBand

lore
Share & tools
lore
#0 lore raw

Use BlueFlame for RDMA Write with immediate without any data (no s/g) too. This improves latency.

---
 src/qp.c |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)
src/qp.c +4 -1
index e046da1..10ccbff 100644
@@ -283,8 +283,11 @@ int mlx4_post_send(struct ibv_qp *ibqp, struct ibv_send_wr *wr,
 			case IBV_WR_RDMA_READ:
 				inl = 1;
 				/* fall through */
-			case IBV_WR_RDMA_WRITE:
 			case IBV_WR_RDMA_WRITE_WITH_IMM:
+				if (!wr->num_sge)
+					inl = 1;
+				/* fall through */
+			case IBV_WR_RDMA_WRITE:
 				set_raddr_seg(wqe, wr->wr.rdma.remote_addr,
 					      wr->wr.rdma.rkey);
 				wqe  += sizeof (struct mlx4_wqe_raddr_seg);
Signature · 6 lines
1.5.3

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