From patchwork Thu May 28 19:45:48 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jason Gunthorpe X-Patchwork-Id: 11576809 X-Patchwork-Delegate: jgg@ziepe.ca Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 0F67F90 for ; Thu, 28 May 2020 19:46:54 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id EA667207D3 for ; Thu, 28 May 2020 19:46:53 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=ziepe.ca header.i=@ziepe.ca header.b="ezC+9NyO" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728719AbgE1Tqw (ORCPT ); Thu, 28 May 2020 15:46:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35084 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728684AbgE1TqK (ORCPT ); Thu, 28 May 2020 15:46:10 -0400 Received: from mail-qk1-x741.google.com (mail-qk1-x741.google.com [IPv6:2607:f8b0:4864:20::741]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 566E1C08C5C8 for ; Thu, 28 May 2020 12:46:05 -0700 (PDT) Received: by mail-qk1-x741.google.com with SMTP id 205so100811qkg.3 for ; Thu, 28 May 2020 12:46:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ziepe.ca; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=nEoxBguK4qNWi3uR8EUH/hHTH5lHRdvmMpiHkRl66JU=; b=ezC+9NyOm57x6hRLyuz81sHZ8Hi59+1YbGn62g/+KOjos3x9/wM4U6KoRjnT8MRxPe jzYOFieR7z/3rsMnB6lRm2xcWo8MLMCOQnXO44Cg0tGMZm3KLzz2dRZXP0hyTgPVtgYN DsdcHcx7t0eL6EUSfQgp4/aMkCviuLKl+N7cLfGkaPL6R4MfRb95PrOY1QikcgASzwu2 PxYWTIBkwg0hXFHNrNJiydz1vmfRW2dg53uvg5QBuwmUCRJjZYzowfV1mKpvRhd1ftf5 ul0Vt5T779W34IfoY85fs9285C1ak80Ipq8+HYeogeBoO1Lb3dTx0sP5mAdPuZdF/tDw OaaA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=nEoxBguK4qNWi3uR8EUH/hHTH5lHRdvmMpiHkRl66JU=; b=kMNs14IHlnEWglcbzVE2y7QPQut1EIPNRicGIqd9+DVJ2uRj19EecKsKhXC95lJAEN duz4lEkc53QCFKHlWgaNgXWcv2cOCj6fQf9Q1gP/Um2W6HKxsD9AO+K3hR6vkzVnLSgH I8b9XqbjHiu28ErANYJg1ATqFpRzwqAyBc9Fw7ilvkRHYYmsDySkMDIuegjH+BLaXcI9 6/uCiml17QN3sXhk/t/2S2aVDaZ40Cf5Bq/ONY25iPfD7Mq9ZQMBMOBWTtRrmRLPQUEx dMF+EJ57hkQ4nLJeOdjALfdUQdkxib8T6GWTtHUf2OrLOd5wAJiYkPKWnNW2B1Xk+uM3 HcyA== X-Gm-Message-State: AOAM531guvPd6V8PQmNeb9fkA2oOp5xalGFXBmpmKoNSKA32yP7rSMXQ HpZ8tbd5EZ1eHyPSoqWd2/5A51RgegI= X-Google-Smtp-Source: ABdhPJxIcrPBFZci5pqH5pwoLSR3ryLDmVGLZYq9WZXmkY6uYTuQZLxQ2l3BpuWMlZyc43CjrawIQw== X-Received: by 2002:a37:a18d:: with SMTP id k135mr4446009qke.155.1590695164173; Thu, 28 May 2020 12:46:04 -0700 (PDT) Received: from ziepe.ca (hlfxns017vw-156-34-48-30.dhcp-dynamic.fibreop.ns.bellaliant.net. [156.34.48.30]) by smtp.gmail.com with ESMTPSA id x205sm6071875qka.12.2020.05.28.12.45.56 (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Thu, 28 May 2020 12:45:57 -0700 (PDT) Received: from jgg by mlx.ziepe.ca with local (Exim 4.90_1) (envelope-from ) id 1jeOTU-0006hJ-87; Thu, 28 May 2020 16:45:56 -0300 From: Jason Gunthorpe To: linux-rdma@vger.kernel.org, netdev@vger.kernel.org Cc: Devesh Sharma , Max Gurtovoy , oren@mellanox.com, Selvin Xavier , shlomin@mellanox.com, Somnath Kotur , Sriharsha Basavapatna , vladimirk@mellanox.com Subject: [PATCH v3 06/13] RDMA/bnxt_re: Remove FMR leftovers Date: Thu, 28 May 2020 16:45:48 -0300 Message-Id: <6-v3-f58e6669d5d3+2cf-fmr_removal_jgg@mellanox.com> In-Reply-To: <0-v3-f58e6669d5d3+2cf-fmr_removal_jgg@mellanox.com> References: MIME-Version: 1.0 Sender: linux-rdma-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org From: Jason Gunthorpe The bnxt_re_fmr struct is never referenced and the max_fmr items in bnxt_qplib_dev_attr are never read. Reviewed-by: Max Gurtovoy Signed-off-by: Jason Gunthorpe Cc: Selvin Xavier Cc: Devesh Sharma Cc: Somnath Kotur Cc: Sriharsha Basavapatna --- drivers/infiniband/hw/bnxt_re/ib_verbs.c | 3 --- drivers/infiniband/hw/bnxt_re/ib_verbs.h | 6 ------ drivers/infiniband/hw/bnxt_re/qplib_sp.c | 3 --- drivers/infiniband/hw/bnxt_re/qplib_sp.h | 2 -- 4 files changed, 14 deletions(-) diff --git a/drivers/infiniband/hw/bnxt_re/ib_verbs.c b/drivers/infiniband/hw/bnxt_re/ib_verbs.c index 5a7c090204c537..8b6ad5cddfce99 100644 --- a/drivers/infiniband/hw/bnxt_re/ib_verbs.c +++ b/drivers/infiniband/hw/bnxt_re/ib_verbs.c @@ -177,9 +177,6 @@ int bnxt_re_query_device(struct ib_device *ibdev, ib_attr->max_total_mcast_qp_attach = 0; ib_attr->max_ah = dev_attr->max_ah; - ib_attr->max_fmr = 0; - ib_attr->max_map_per_fmr = 0; - ib_attr->max_srq = dev_attr->max_srq; ib_attr->max_srq_wr = dev_attr->max_srq_wqes; ib_attr->max_srq_sge = dev_attr->max_srq_sges; diff --git a/drivers/infiniband/hw/bnxt_re/ib_verbs.h b/drivers/infiniband/hw/bnxt_re/ib_verbs.h index 204c0849ba2847..e5fbbeba6d28d3 100644 --- a/drivers/infiniband/hw/bnxt_re/ib_verbs.h +++ b/drivers/infiniband/hw/bnxt_re/ib_verbs.h @@ -122,12 +122,6 @@ struct bnxt_re_frpl { u64 *page_list; }; -struct bnxt_re_fmr { - struct bnxt_re_dev *rdev; - struct ib_fmr ib_fmr; - struct bnxt_qplib_mrw qplib_fmr; -}; - struct bnxt_re_mw { struct bnxt_re_dev *rdev; struct ib_mw ib_mw; diff --git a/drivers/infiniband/hw/bnxt_re/qplib_sp.c b/drivers/infiniband/hw/bnxt_re/qplib_sp.c index 66954ff6a2f275..4cd475ea97a24e 100644 --- a/drivers/infiniband/hw/bnxt_re/qplib_sp.c +++ b/drivers/infiniband/hw/bnxt_re/qplib_sp.c @@ -132,9 +132,6 @@ int bnxt_qplib_get_dev_attr(struct bnxt_qplib_rcfw *rcfw, attr->max_raw_ethy_qp = le32_to_cpu(sb->max_raw_eth_qp); attr->max_ah = le32_to_cpu(sb->max_ah); - attr->max_fmr = le32_to_cpu(sb->max_fmr); - attr->max_map_per_fmr = sb->max_map_per_fmr; - attr->max_srq = le16_to_cpu(sb->max_srq); attr->max_srq_wqes = le32_to_cpu(sb->max_srq_wr) - 1; attr->max_srq_sges = sb->max_srq_sge; diff --git a/drivers/infiniband/hw/bnxt_re/qplib_sp.h b/drivers/infiniband/hw/bnxt_re/qplib_sp.h index 13d9432d5ce222..6404f0da10517a 100644 --- a/drivers/infiniband/hw/bnxt_re/qplib_sp.h +++ b/drivers/infiniband/hw/bnxt_re/qplib_sp.h @@ -64,8 +64,6 @@ struct bnxt_qplib_dev_attr { u32 max_mw; u32 max_raw_ethy_qp; u32 max_ah; - u32 max_fmr; - u32 max_map_per_fmr; u32 max_srq; u32 max_srq_wqes; u32 max_srq_sges;