diff mbox

[2/4] RDMA/libocrdma: Allow RDMA-READ posted on DPP

Message ID 1392960704-10871-2-git-send-email-devesh.sharma@emulex.com (mailing list archive)
State Accepted, archived
Headers show

Commit Message

Devesh Sharma Feb. 21, 2014, 5:31 a.m. UTC
From: Devesh Sharma <devesh.sharma@emulex.com>

RDMA-READs can be posted on DPP QP to achive better latancies.

Signed-off-by: Devesh Sharma <devesh.sharma@emulex.com>
Signed-off-by: Selvin Xavier <selvin.xavier@emulex.com>
---
 src/ocrdma_verbs.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
diff mbox

Patch

diff --git a/src/ocrdma_verbs.c b/src/ocrdma_verbs.c
index aedb578..acf460f 100644
--- a/src/ocrdma_verbs.c
+++ b/src/ocrdma_verbs.c
@@ -1441,8 +1441,10 @@  int ocrdma_post_send(struct ibv_qp *ib_qp, struct ibv_send_wr *wr,
 		else
 			qp->wqe_wr_id_tbl[qp->sq.head].signaled = 0;
 
-		if (qp->dpp_enabled && (wr->send_flags & IBV_SEND_INLINE))
+		if (qp->dpp_enabled && (wr->send_flags & IBV_SEND_INLINE
+			|| wr->opcode == IBV_WR_RDMA_READ)) {
 			ocrdma_post_dpp_wqe(qp, hdr);
+		}
 
 		ocrdma_swap_cpu_to_le(hdr, ((hdr->cw >> OCRDMA_WQE_SIZE_SHIFT) &
 				      OCRDMA_WQE_SIZE_MASK) *