Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 37CABC636D7 for ; Wed, 1 Feb 2023 16:56:26 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230503AbjBAQ4Y (ORCPT ); Wed, 1 Feb 2023 11:56:24 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55300 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229955AbjBAQ4W (ORCPT ); Wed, 1 Feb 2023 11:56:22 -0500 Received: from mail-pj1-x1031.google.com (mail-pj1-x1031.google.com [IPv6:2607:f8b0:4864:20::1031]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 66C85470B9 for ; Wed, 1 Feb 2023 08:56:21 -0800 (PST) Received: by mail-pj1-x1031.google.com with SMTP id cq16-20020a17090af99000b0022c9791ac39so2819100pjb.4 for ; Wed, 01 Feb 2023 08:56:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=V3C3rh+HKiSa0NBLUdZ+tUTzwQ7QE3+M5c7adj+glHY=; b=X+EGTj0prFaVCfYMHttSCGCK7jxYE6PeyPOO1JWhgyrMpCNT7xny4l4ojBp4x+MCWh njaDW9jMuxSvpH3rER0sQYonyW9z+Jq8GICQ8NldbkYX1k3TlbeAO8QLGSHXwqboDU+B XZLRSxuttHiGHvjQqKDiPGQH+W9qpSSf25YK0= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=V3C3rh+HKiSa0NBLUdZ+tUTzwQ7QE3+M5c7adj+glHY=; b=LI0GQR/7y8CNdwq3ShaImW+VTOpahUp4NEbwretYPykuqSM1qCUcVPd8/tV8sVzPWY MlWr4s55dL0HXP9zDyHUMUnAbXvePE/iWHiRUzlSkJvfJKHKhhVD4t1Mznj0lSzzUTBC D4SEt+MqimdjAgTogjP18ojMuOChpbli+ZhFz+6YXFRjbtEzooj4Tr55OPvXghdWuKwb Zm+Nfanzq4LQTww1rQRFzYfnijJMKCoSDXFx//RYv+QjQGDV9y5z18CMTBHhAh0Yc7UO K4RP9gMnFvw6NH5Rmy/5rTDZjoYeZnFtIahrKQNGq5RMtc1mcUCzMH0tnffTrne6vQHJ NXEw== X-Gm-Message-State: AO0yUKUdho9lL/5dj3qUGDDLZRtx6YvSP8reg8za+1xt7o7eCn0MaVBy Z4pIW2WPF9NQq1vNGl2Q1S2RjkhyAmo+19Y1+nKHEA== X-Google-Smtp-Source: AK7set+XWcuUDsRFS9RYhIL4hHgpIQWrV2gT8777n9trHjUl4ZmW7rU+RlU2zVxQlZVCrbrVX6p24viGlPxC2KrdT8k= X-Received: by 2002:a17:90a:6a0d:b0:22b:f70e:b5cb with SMTP id t13-20020a17090a6a0d00b0022bf70eb5cbmr586268pjj.129.1675270580717; Wed, 01 Feb 2023 08:56:20 -0800 (PST) MIME-Version: 1.0 References: <20230131052557.99119-1-ajit.khaparde@broadcom.com> <20230131211228.78dae343@kernel.org> In-Reply-To: From: Ajit Khaparde Date: Wed, 1 Feb 2023 08:56:03 -0800 Message-ID: Subject: Re: [PATCH net-next v9 0/8] Add Auxiliary driver support To: Leon Romanovsky Cc: Jakub Kicinski , andrew.gospodarek@broadcom.com, davem@davemloft.net, edumazet@google.com, jgg@ziepe.ca, linux-kernel@vger.kernel.org, linux-rdma@vger.kernel.org, michael.chan@broadcom.com, netdev@vger.kernel.org, pabeni@redhat.com, selvin.xavier@broadcom.com, gregkh@linuxfoundation.org Content-Type: multipart/signed; protocol="application/pkcs7-signature"; micalg=sha-256; boundary="000000000000e4bb9605f3a65393" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --000000000000e4bb9605f3a65393 Content-Type: text/plain; charset="UTF-8" On Wed, Feb 1, 2023 at 12:38 AM Leon Romanovsky wrote: > > On Tue, Jan 31, 2023 at 09:12:28PM -0800, Jakub Kicinski wrote: > > On Mon, 30 Jan 2023 21:25:49 -0800 Ajit Khaparde wrote: > > > Add auxiliary device driver for Broadcom devices. > > > The bnxt_en driver will register and initialize an aux device > > > if RDMA is enabled in the underlying device. > > > The bnxt_re driver will then probe and initialize the > > > RoCE interfaces with the infiniband stack. > > > > > > We got rid of the bnxt_en_ops which the bnxt_re driver used to > > > communicate with bnxt_en. > > > Similarly We have tried to clean up most of the bnxt_ulp_ops. > > > In most of the cases we used the functions and entry points provided > > > by the auxiliary bus driver framework. > > > And now these are the minimal functions needed to support the functionality. > > > > > > We will try to work on getting rid of the remaining if we find any > > > other viable option in future. > > > > Better :) > > > > Leon, looks good to you as well? > > Good enough, we beat this horse to death already. > > BTW, it still has useless NULL assignments and variable initializations. I can spin another patchset to remove these. Or I can include it in the next patchset which is in the pipeline. Please let me know. Thanks > > + aux_priv->edev->en_ops = NULL; > + kfree(aux_priv->edev); > > Thanks > > > > > Note to DaveM/self - this needs to be pulled rather than applied: > > > > > The following are changes since commit 90e8ca0abb05ada6c1e2710eaa21688dafca26f2 > > > Merge branch 'devlink-next' > > > and are available in the git repository at: > > > https://github.com/ajitkhaparde1/net-next/tree/aux-bus-v9 --000000000000e4bb9605f3a65393 Content-Type: application/pkcs7-signature; name="smime.p7s" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="smime.p7s" Content-Description: S/MIME Cryptographic Signature MIIQdgYJKoZIhvcNAQcCoIIQZzCCEGMCAQExDzANBglghkgBZQMEAgEFADALBgkqhkiG9w0BBwGg gg3NMIIFDTCCA/WgAwIBAgIQeEqpED+lv77edQixNJMdADANBgkqhkiG9w0BAQsFADBM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