From patchwork Fri Feb 21 05:31:42 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Devesh Sharma X-Patchwork-Id: 3693811 Return-Path: X-Original-To: patchwork-linux-rdma@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 2F418BF40C for ; Fri, 21 Feb 2014 06:00:45 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 5916020179 for ; Fri, 21 Feb 2014 06:00:44 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 7E5F320149 for ; Fri, 21 Feb 2014 06:00:43 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752324AbaBUGAm (ORCPT ); Fri, 21 Feb 2014 01:00:42 -0500 Received: from cmexedge1.ext.emulex.com ([138.239.224.99]:11146 "EHLO CMEXEDGE1.ext.emulex.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752152AbaBUGAm (ORCPT ); Fri, 21 Feb 2014 01:00:42 -0500 Received: from CMEXHTCAS2.ad.emulex.com (138.239.115.218) by CMEXEDGE1.ext.emulex.com (138.239.224.99) with Microsoft SMTP Server (TLS) id 14.3.174.1; Thu, 20 Feb 2014 22:01:39 -0800 Received: from neo01.lab.bg.emulex.com (10.192.204.8) by smtp.emulex.com (138.239.115.208) with Microsoft SMTP Server id 14.3.174.1; Thu, 20 Feb 2014 22:00:41 -0800 From: To: Subject: [PATCH 2/4] RDMA/libocrdma: Allow RDMA-READ posted on DPP Date: Fri, 21 Feb 2014 11:01:42 +0530 Message-ID: <1392960704-10871-2-git-send-email-devesh.sharma@emulex.com> X-Mailer: git-send-email 1.7.1 In-Reply-To: <1392960704-10871-1-git-send-email-devesh.sharma@emulex.com> References: <1392960704-10871-1-git-send-email-devesh.sharma@emulex.com> MIME-Version: 1.0 Sender: linux-rdma-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org X-Spam-Status: No, score=-7.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Devesh Sharma RDMA-READs can be posted on DPP QP to achive better latancies. Signed-off-by: Devesh Sharma Signed-off-by: Selvin Xavier --- src/ocrdma_verbs.c | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) 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) *