From patchwork Mon Jun 9 05:22:37 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Devesh@vger.kernel.org, Sharma@vger.kernel.org X-Patchwork-Id: 4317761 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 64A36BEEAA for ; Mon, 9 Jun 2014 05:56:36 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 9DA4A2018A for ; Mon, 9 Jun 2014 05:56:35 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id CA9B72016C for ; Mon, 9 Jun 2014 05:56:34 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752205AbaFIF4e (ORCPT ); Mon, 9 Jun 2014 01:56:34 -0400 Received: from cmexedge1.ext.emulex.com ([138.239.224.99]:23638 "EHLO CMEXEDGE1.ext.emulex.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751632AbaFIF4d (ORCPT ); Mon, 9 Jun 2014 01:56:33 -0400 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; Sun, 8 Jun 2014 22:57:31 -0700 Received: from neo01-el64.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; Sun, 8 Jun 2014 22:56:30 -0700 From: Devesh@vger.kernel.org, Sharma@vger.kernel.org To: CC: Devesh Sharma , Selvin Xavier , Mitesh Ahuja Subject: [PATCH for-next 1/2] RDMA/ocrdma: Report actual value of max_fast_reg_page_list_len Date: Mon, 9 Jun 2014 10:52:37 +0530 X-Mailer: git-send-email 1.7.1 In-Reply-To: <1402291358-24901-1-git-send-email-devesh.sharma@emulex.com> References: <1402291358-24901-1-git-send-email-devesh.sharma@emulex.com> MIME-Version: 1.0 Message-ID: <1188adea-1d05-4374-939b-7e8098b2de77@CMEXHTCAS2.ad.emulex.com> 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.5 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 ocrdma_query_device does not report correct value of max_fast_reg_page_list_len. This patch applies changes to fix this bug. Signed-off-by: Devesh Sharma Signed-off-by: Selvin Xavier Signed-off-by: Mitesh Ahuja --- drivers/infiniband/hw/ocrdma/ocrdma_verbs.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/infiniband/hw/ocrdma/ocrdma_verbs.c b/drivers/infiniband/hw/ocrdma/ocrdma_verbs.c index 90152de..55aad54 100644 --- a/drivers/infiniband/hw/ocrdma/ocrdma_verbs.c +++ b/drivers/infiniband/hw/ocrdma/ocrdma_verbs.c @@ -101,7 +101,7 @@ int ocrdma_query_device(struct ib_device *ibdev, struct ib_device_attr *attr) attr->max_srq_sge = dev->attr.max_srq_sge; attr->max_srq_wr = dev->attr.max_rqe; attr->local_ca_ack_delay = dev->attr.local_ca_ack_delay; - attr->max_fast_reg_page_list_len = 0; + attr->max_fast_reg_page_list_len = dev->attr.max_pages_per_frmr; attr->max_pkeys = 1; return 0; }