From patchwork Tue Oct 9 18:45:29 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kamal Heib X-Patchwork-Id: 10633143 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id C324715E8 for ; Tue, 9 Oct 2018 18:46:50 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B4B51294FA for ; Tue, 9 Oct 2018 18:46:50 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A5B8A294FD; Tue, 9 Oct 2018 18:46:50 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 80C95294F9 for ; Tue, 9 Oct 2018 18:46:49 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726492AbeJJCFI (ORCPT ); Tue, 9 Oct 2018 22:05:08 -0400 Received: from mail-wr1-f67.google.com ([209.85.221.67]:37591 "EHLO mail-wr1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726434AbeJJCFI (ORCPT ); Tue, 9 Oct 2018 22:05:08 -0400 Received: by mail-wr1-f67.google.com with SMTP id y11-v6so2955808wrd.4 for ; Tue, 09 Oct 2018 11:46:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=clz9bGcjtvJjYCkrdeVQS7ILo4c8Hn9yml6uUo1semc=; b=B9WvpfM3yJMoWRydSPu4sadOsGBAWrfaE/ULAyRkaDKx3frbh/kFCXqiRvsUFrGy6m ZYAGg/4Y8bTxKq+X3pEIg2jGeUzGcNWEk1TlIwuaMrlM6gb3EO8qbheepWAJ+JBUJoUw SZ8MocrYgTQVIWrV7pf2r7SxqeTpueMLgYgucqCH5/ucmCsLiIQsxP0m+ewwXB+iefm6 ioi8+RYaSChoON6pC2G3222JgCBcEi6BPXQOnfp7iI/+fLjDVQ8MePscIYuCB4H8a6F5 fwAQI1NkEXKJlajaONOeQvaMwFRsK548nTBqKNIXnC/RB3SMecE55WP1FC+imGM7pCYL kxNg== 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; bh=clz9bGcjtvJjYCkrdeVQS7ILo4c8Hn9yml6uUo1semc=; b=kaRRPin5DoTcShRkgviW7GN0ZeUjD4/Qmk/F27Dlo0TbA+FQQGfwD+VnkeBePb1Obj cia/xtk8fej7eUCTSt4umIsl9EAXVJyUcCmQLUsD5+/iD+c6WXVww4GsgJwI3bnvsVEI Jn17/qJynwsj88GioJNrjFvFLw1HiIMimuWUcDqJ+rJr13MuLDbs9O7I3rKmeVyeWwpl cDVOdm5u1pXrttVAwoGtyW7alnMr8FzxvlCHEOuFiBHaun4mOdclbK6p+GYsr+4RvWPH qeC12osvra6A6GdBTRtCyH4mKpAkNiB/mFl/N4lL8bhZy82QU9ZEwhvHh8hoocxIQuH+ A8+A== X-Gm-Message-State: ABuFfoil0RXmfJP5pTI1EWHGGTszMN163BaSf2tAhPcTiCDyBNouB48a SdSqJ5Z2XC8dJjS6UMumRsM= X-Google-Smtp-Source: ACcGV62Jx7blxRjWC7YYl4yLXnyIhDqZwwSDHBWwlehUw7JxvS44mAkDZRZHx4TB5RM/XxV3TUL5ng== X-Received: by 2002:adf:c650:: with SMTP id u16-v6mr22659840wrg.177.1539110805883; Tue, 09 Oct 2018 11:46:45 -0700 (PDT) Received: from localhost.localdomain (bzq-79-179-121-186.red.bezeqint.net. [79.179.121.186]) by smtp.gmail.com with ESMTPSA id r16-v6sm27093327wrv.21.2018.10.09.11.46.44 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 09 Oct 2018 11:46:45 -0700 (PDT) From: Kamal Heib To: Doug Ledford , Jason Gunthorpe Cc: linux-rdma@vger.kernel.org, kamalheib1@gmail.com Subject: [PATCH rdma-next 00/18] RDMA: Add support for ib_device_ops Date: Tue, 9 Oct 2018 21:45:29 +0300 Message-Id: <20181009184547.5907-1-kamalheib1@gmail.com> X-Mailer: git-send-email 2.14.4 Sender: linux-rdma-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP This patchset introduce a new structure that will contain all the infiniband device operations, the structure will be used by the providers to initialize their supported operations. This patchset also includes the required changes in the core and ulps to start using it. Thanks, Kamal Kamal Heib (18): RDMA/core: Introduce ib_device_ops RDMA/bnxt_re: Initialize ib_device_ops struct RDMA/cxgb3: Initialize ib_device_ops struct RDMA/cxgb4: Initialize ib_device_ops struct RDMA/hfi1: Initialize ib_device_ops struct RDMA/hns: Initialize ib_device_ops struct RDMA/i40iw: Initialize ib_device_ops struct RDMA/mlx4: Initialize ib_device_ops struct RDMA/mlx5: Initialize ib_device_ops struct RDMA/mthca: Initialize ib_device_ops struct RDMA/nes: Initialize ib_device_ops struct RDMA/ocrdma: Initialize ib_device_ops struct RDMA/qedr: Initialize ib_device_ops struct RDMA/qib: Initialize ib_device_ops struct RDMA/usnic: Initialize ib_device_ops struct RDMA/vmw_pvrdma: Initialize ib_device_ops struct RDMA/rxe: Initialize ib_device_ops struct RDMA: Start use ib_device_ops drivers/infiniband/core/cache.c | 12 +- drivers/infiniband/core/core_priv.h | 12 +- drivers/infiniband/core/cq.c | 6 +- drivers/infiniband/core/device.c | 136 +++++++++++-- drivers/infiniband/core/fmr_pool.c | 4 +- drivers/infiniband/core/mad.c | 24 +-- drivers/infiniband/core/nldev.c | 4 +- drivers/infiniband/core/opa_smi.h | 4 +- drivers/infiniband/core/rdma_core.c | 6 +- drivers/infiniband/core/security.c | 8 +- drivers/infiniband/core/smi.h | 4 +- drivers/infiniband/core/sysfs.c | 26 +-- drivers/infiniband/core/uverbs_cmd.c | 64 +++--- drivers/infiniband/core/uverbs_main.c | 14 +- drivers/infiniband/core/uverbs_std_types.c | 2 +- .../infiniband/core/uverbs_std_types_counters.c | 10 +- drivers/infiniband/core/uverbs_std_types_cq.c | 4 +- drivers/infiniband/core/uverbs_std_types_dm.c | 6 +- .../infiniband/core/uverbs_std_types_flow_action.c | 14 +- drivers/infiniband/core/uverbs_std_types_mr.c | 4 +- drivers/infiniband/core/verbs.c | 149 +++++++------- drivers/infiniband/hw/bnxt_re/main.c | 97 +++++---- drivers/infiniband/hw/cxgb3/iwch_provider.c | 64 +++--- drivers/infiniband/hw/cxgb4/provider.c | 74 +++---- drivers/infiniband/hw/hfi1/verbs.c | 19 +- drivers/infiniband/hw/hns/hns_roce_device.h | 1 + drivers/infiniband/hw/hns/hns_roce_hw_v1.c | 11 ++ drivers/infiniband/hw/hns/hns_roce_hw_v2.c | 11 ++ drivers/infiniband/hw/hns/hns_roce_main.c | 91 ++++----- drivers/infiniband/hw/i40iw/i40iw_cm.c | 2 +- drivers/infiniband/hw/i40iw/i40iw_verbs.c | 66 ++++--- drivers/infiniband/hw/mlx4/alias_GUID.c | 2 +- drivers/infiniband/hw/mlx4/main.c | 166 +++++++++------- drivers/infiniband/hw/mlx5/main.c | 220 ++++++++++++--------- drivers/infiniband/hw/mthca/mthca_provider.c | 139 ++++++++----- drivers/infiniband/hw/nes/nes_cm.c | 2 +- drivers/infiniband/hw/nes/nes_verbs.c | 66 ++++--- drivers/infiniband/hw/ocrdma/ocrdma_main.c | 92 ++++----- drivers/infiniband/hw/qedr/main.c | 103 +++++----- drivers/infiniband/hw/qib/qib_verbs.c | 8 +- drivers/infiniband/hw/usnic/usnic_ib_main.c | 61 +++--- drivers/infiniband/hw/vmw_pvrdma/pvrdma_main.c | 82 ++++---- drivers/infiniband/sw/rdmavt/vt.c | 90 ++++----- drivers/infiniband/sw/rxe/rxe_verbs.c | 90 +++++---- drivers/infiniband/ulp/ipoib/ipoib_main.c | 12 +- drivers/infiniband/ulp/iser/iser_memory.c | 4 +- drivers/infiniband/ulp/opa_vnic/opa_vnic_netdev.c | 8 +- drivers/infiniband/ulp/srp/ib_srp.c | 6 +- include/rdma/ib_verbs.h | 212 ++++++++------------ net/sunrpc/xprtrdma/fmr_ops.c | 2 +- 50 files changed, 1257 insertions(+), 1057 deletions(-)