From patchwork Mon Apr 5 05:49:52 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Leon Romanovsky X-Patchwork-Id: 415557 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-14.0 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, INCLUDES_PATCH, MAILING_LIST_MULTI, SPF_HELO_NONE, SPF_PASS, URIBL_BLOCKED, USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 238D7C43461 for ; Mon, 5 Apr 2021 05:50:08 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id ECF4F6138A for ; Mon, 5 Apr 2021 05:50:07 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232013AbhDEFuL (ORCPT ); Mon, 5 Apr 2021 01:50:11 -0400 Received: from mail.kernel.org ([198.145.29.99]:34076 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229727AbhDEFuL (ORCPT ); Mon, 5 Apr 2021 01:50:11 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id DF4BA6138A; Mon, 5 Apr 2021 05:50:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1617601805; bh=HL3XcxJnh+PpngLSQ1cW4W65/ax//mggo+MJmIHNZKE=; h=From:To:Cc:Subject:Date:From; b=JoWpvmHr8cbXC2wGqorO6A7gFrAKBNhaX6C0Z1rLW+CLElmWI4t7U6yocQMei8PzC sPyPYTw70ck102ou4VETIuVUfmzuXvHoBcF4zlXCLrJJUV5sfsRdmuKnObGq7tu5qW sNLVme//M7TPI8I85ht1jY1ADGuICcgA3JWoYQwnsBePYtiwkpnVtDp+XEdJ7TwmNx Nd2S0IaIhLaOwlzWT8HjN/UJO13YPDOfdIYEKH0JI2nIHJf0ark0zVO9BG8FXQQrpt /8OV+30NarBYePQino+ZNTl8eaAz3ASFhMo845QpNAN84+qtjUmrlev5KqEoOxOR8+ L/0IkSvtF4paQ== From: Leon Romanovsky To: Doug Ledford , Jason Gunthorpe Cc: Leon Romanovsky , "David S. Miller" , Dennis Dalessandro , Jakub Kicinski , Karsten Graul , linux-kernel@vger.kernel.org, linux-rdma@vger.kernel.org, linux-s390@vger.kernel.org, Mike Marciniszyn , netdev@vger.kernel.org, Parav Pandit , rds-devel@oss.oracle.com, Santosh Shilimkar Subject: [PATCH rdma-next 0/8] Generalize if ULP supported check Date: Mon, 5 Apr 2021 08:49:52 +0300 Message-Id: <20210405055000.215792-1-leon@kernel.org> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org From: Leon Romanovsky Hi, This series adds new callback to check if ib client is supported/not_supported. Such general callback allows us to save memory footprint by not starting on devices that not going to work on them anyway. Thanks Parav Pandit (8): RDMA/core: Check if client supports IB device or not RDMA/cma: Skip device which doesn't support CM IB/cm: Skip device which doesn't support IB CM IB/core: Skip device which doesn't have necessary capabilities IB/IPoIB: Skip device which doesn't have InfiniBand port IB/opa_vnic: Move to client_supported callback net/smc: Move to client_supported callback net/rds: Move to client_supported callback drivers/infiniband/core/cm.c | 15 +++++++++++++- drivers/infiniband/core/cma.c | 15 +++++++++++++- drivers/infiniband/core/device.c | 3 +++ drivers/infiniband/core/multicast.c | 15 +++++++++++++- drivers/infiniband/core/sa_query.c | 15 +++++++++++++- drivers/infiniband/ulp/ipoib/ipoib_main.c | 13 ++++++++++++ .../infiniband/ulp/opa_vnic/opa_vnic_vema.c | 4 +--- include/rdma/ib_verbs.h | 9 +++++++++ net/rds/ib.c | 20 ++++++++++++------- net/smc/smc_ib.c | 9 ++++++--- 10 files changed, 101 insertions(+), 17 deletions(-)