From patchwork Wed Jul 25 20:10:42 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kamal Heib X-Patchwork-Id: 10544629 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 B764214E2 for ; Wed, 25 Jul 2018 20:11:12 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9DEB92AB83 for ; Wed, 25 Jul 2018 20:11:12 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 9C4792ABA2; Wed, 25 Jul 2018 20:11:12 +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=-7.8 required=2.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI,T_DKIM_INVALID 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 765322AB9E for ; Wed, 25 Jul 2018 20:11:11 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730305AbeGYVYY (ORCPT ); Wed, 25 Jul 2018 17:24:24 -0400 Received: from mail-wr1-f67.google.com ([209.85.221.67]:34541 "EHLO mail-wr1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729529AbeGYVYY (ORCPT ); Wed, 25 Jul 2018 17:24:24 -0400 Received: by mail-wr1-f67.google.com with SMTP id c13-v6so8550123wrt.1 for ; Wed, 25 Jul 2018 13:11:09 -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=gmL2qxSrnUrgeuk0fNYvHENF06/dBrLgu+cfwIQ6fSE=; b=tTfk/U930GcLN/lbExwZmGevZpPqSxywP0ebPW28ZkjwVFO3R5HyasJGNVcZvTHGkw Zaeynf7ZsrhQioy6TkkYIbF75sgTr/lfvzXNN4CBb6kCXhRXQ1SGSuPt8XhWDhsiiFKw FH1t5G+G3NQoHvx1i1v7fMAy4vRPJPWpGB21htE/hwlaDMhkbk9eDNeGWahniVXQOUaQ MW9MFCPHHZpJYuskDw1zMu2FB3Z0KpgpxUBlHIxEyHZ4mFS4fd68Ds73vzqrgWAhUVen DMcUcl5lqs6OHt8C/bCr1tw554zzuZOAIUO/dtsxj6MxJaNfiUpEZApgxZVIR8AwZbwp 9EAQ== 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=gmL2qxSrnUrgeuk0fNYvHENF06/dBrLgu+cfwIQ6fSE=; b=nBh/pK6TCoKbWPdvRuzNuPuNyGAtbGZ7c54wWFuXC4QzFsEo91228DV/005KMiGV6x 8A0ip5szDEKUyvhq9J4ye6kXd0hdIgp+e3HFpIozSR3/UB7zaNUHz44D+QSqARoBXdyz pKhywYLlg6qT5D+AnKEKOw0Piv3P3S5K0ZUL1+uF9Fo3r32s/aOrF/LrNkaxomG2V5iJ EHi2I2lNArkAGB1tdLR9jdQkeI2CcIIw2qkiBA7NDT3YlROBiWKjnhQcr8/n2voLIUjy 7uOEnpxqB6Nq3MMbZkOOCNb8V5Hg2NK/NaIudqyRtC1vmQoExgBgCEa2VAcVIohsx/tJ C3AA== X-Gm-Message-State: AOUpUlE3A3Brf1c5Mhgt1T1cseV5YJ9Yj+mNZFFpbYPDADEkR8stDsDQ wBzpqcWaWtVHM6KDyDyG4IQ= X-Google-Smtp-Source: AAOMgpd9Y48HFcPoMIBMI1AkstA0FGlcw4gKQ6v7Og1cXsnVodyrtnbH1HEFFN9hIUc4rSy0/uRNdg== X-Received: by 2002:adf:f585:: with SMTP id f5-v6mr14958517wro.59.1532549468891; Wed, 25 Jul 2018 13:11:08 -0700 (PDT) Received: from localhost.localdomain (bzq-109-64-56-95.red.bezeqint.net. [109.64.56.95]) by smtp.gmail.com with ESMTPSA id d26-v6sm3708629wmb.15.2018.07.25.13.11.07 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 25 Jul 2018 13:11:08 -0700 (PDT) From: Kamal Heib To: Doug Ledford , Jason Gunthorpe , Leon Romanovsky , Shiraz Saleem Cc: linux-rdma@vger.kernel.org, Kamal Heib Subject: [PATCH rdma-next v3 0/3] RDMA: handle pointless functions Date: Wed, 25 Jul 2018 23:10:42 +0300 Message-Id: <20180725201045.26995-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 patch set include three patches, the first one remove the mandatory verbs, the second patch verify that the verbs are implemented by the provideors before using them, the last one remove the pointless function from the providers because no need for them after the first two patches. Changes from v2: - Remove mandatory verbs check Changes from v1: - Add patch #1. - Remove check for destroy_ah and process_mad from patch #2. Thanks, Kamal Heib (3): RDMA/core: Remove mandatory verbs check RDMA/core: Check for verbs callbacks before using them RDMA/providers: Remove pointless functions drivers/infiniband/core/device.c | 45 ------------------- drivers/infiniband/core/uverbs_cmd.c | 3 +- drivers/infiniband/core/verbs.c | 3 ++ drivers/infiniband/hw/cxgb3/iwch_provider.c | 41 ----------------- drivers/infiniband/hw/cxgb4/cq.c | 5 --- drivers/infiniband/hw/cxgb4/iw_cxgb4.h | 1 - drivers/infiniband/hw/cxgb4/provider.c | 41 ----------------- drivers/infiniband/hw/i40iw/i40iw_verbs.c | 40 ----------------- drivers/infiniband/hw/nes/nes_verbs.c | 60 ------------------------- drivers/infiniband/hw/ocrdma/ocrdma_ah.c | 6 --- drivers/infiniband/hw/ocrdma/ocrdma_ah.h | 1 - drivers/infiniband/hw/ocrdma/ocrdma_main.c | 1 - drivers/infiniband/hw/vmw_pvrdma/pvrdma_cq.c | 26 ----------- drivers/infiniband/hw/vmw_pvrdma/pvrdma_main.c | 3 -- drivers/infiniband/hw/vmw_pvrdma/pvrdma_srq.c | 7 --- drivers/infiniband/hw/vmw_pvrdma/pvrdma_verbs.h | 7 --- 16 files changed, 5 insertions(+), 285 deletions(-)