From patchwork Fri Jul 27 18:23:03 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kamal Heib X-Patchwork-Id: 10547563 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 B1F7E112E for ; Fri, 27 Jul 2018 18:23:16 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9FAFE2C0AD for ; Fri, 27 Jul 2018 18:23:16 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 90CE22C305; Fri, 27 Jul 2018 18:23:16 +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 259F12C0AD for ; Fri, 27 Jul 2018 18:23:16 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388879AbeG0TqT (ORCPT ); Fri, 27 Jul 2018 15:46:19 -0400 Received: from mail-wm0-f67.google.com ([74.125.82.67]:38998 "EHLO mail-wm0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388857AbeG0TqS (ORCPT ); Fri, 27 Jul 2018 15:46:18 -0400 Received: by mail-wm0-f67.google.com with SMTP id h20-v6so6408757wmb.4 for ; Fri, 27 Jul 2018 11:23:14 -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=KVRH2GNjoYqMYQSgShFmaODyNuc45QTvpCf8Bm3wsso=; b=OJa6p6nTA7flBARbnJp2uFXGEgnc1Iq8GUUwSIb/c/egnVra0vg/6pdMEwI6eCHVDC M1M6kidLCQme88cdsgIni19VTvYwQuk75VlK/0fcm6ywdfipWuw2d/2VYwrK49RtcLhF WzkDC9AGp1CJAd64SmpMAfO8JeyQLrhPnQvKYzganY+WU9PGDjrd3YKD15CTAy/2kM5H ZstT+znme9CzqBfU4o89Y45r8hfLlsEOHn2jVRTxLoAU6nVXSotFjm934lcJPeAa0jck vIVPOtBZXvCtR3pmzWDrg6RcK6CAOhihD1ya1IhORMpJu0AmIFUSrfvufps0go0YIYoK DPDA== 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=KVRH2GNjoYqMYQSgShFmaODyNuc45QTvpCf8Bm3wsso=; b=CP60zuiTzw6zf7z12YPYC5fiVBQHBYQDORwETLFCtEJ6ZDmlyeB2H3t+1mNvhlm221 k5bccfrSiij4Kc4vLIOxwsIFSqooChnh0rUanaxaHp0oZ1dt6Xa1JW/UROWDmHMnid48 UokHH3DsQl+KSxCptVf9PJsdza2yD+4txLWxMxFC4qay53s8v/OpUSp15utCc/gXVxuD lFLA8nsSENocXz8xUdajTMpCJuQ4fbd7Yc43jYjr5bVoyy5tfhmys82bCtqMbfQ+clNY yIBoMtLX0vZU2WDW/eEyZ/Lb1MCi7ppw3Ts8SY8GGyI8p7QX7thtZJKpJiWoLf7FjI5Y IWnw== X-Gm-Message-State: AOUpUlHlTmO5P4MPs5JrmbQy/v0FTm9g5jXVK+QVKcXvqi9uBzkif5gP fwxpJ8FUTc0i4rZg5w41fJNpH6xt X-Google-Smtp-Source: AAOMgpf/MTGoctKJznoO7zML2zlIU0dD4GFxQWJ8HEMZ6smKUjGIzCCGAcJFxFI20Vx0y2DR9GC+rA== X-Received: by 2002:a1c:a813:: with SMTP id r19-v6mr5107344wme.100.1532715793301; Fri, 27 Jul 2018 11:23:13 -0700 (PDT) Received: from localhost.localdomain ([2.53.146.104]) by smtp.gmail.com with ESMTPSA id u18-v6sm9192340wrm.80.2018.07.27.11.23.11 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 27 Jul 2018 11:23:12 -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 v4 0/3] RDMA: handle pointless functions Date: Fri, 27 Jul 2018 21:23:03 +0300 Message-Id: <20180727182306.26664-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 remove {create, destroy}_ah from 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 v3: - Remove only {create, destroy}_ah from mandatory verbs check. 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 {create,destroy}_ah from mandatory verbs RDMA/core: Check for verbs callbacks before using them RDMA/providers: Remove pointless functions drivers/infiniband/core/device.c | 2 - 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(+), 242 deletions(-)