Message ID | 201107111402.10897.dotanb@sw.voltaire.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
diff --git a/src/qp.c b/src/qp.c index e046da1..10ccbff 100644 --- a/src/qp.c +++ b/src/qp.c @@ -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);