Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp7455240rwl; Tue, 10 Jan 2023 00:41:18 -0800 (PST) X-Google-Smtp-Source: AMrXdXtZFAzubR7djgfqOfgk1YoVW22gDyp+6E0zHJDME9gGGubj1nrM1stcM5hwfXFmdrSWwjh9 X-Received: by 2002:a17:90b:3d0e:b0:226:59d6:e824 with SMTP id pt14-20020a17090b3d0e00b0022659d6e824mr35802908pjb.48.1673340078205; Tue, 10 Jan 2023 00:41:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673340078; cv=none; d=google.com; s=arc-20160816; b=yD7CdPUhwVXe9S9oUdU610D6fBgGbfBCZVVH/B/yJBK/5cRQDP/iu/6g5twOOpktLi gLolGoXfQ3BQaxYuLnm9T3ZztlBnlD4fV5k1boXUkfgR5kC5SevQ7KDjHmhSpaRfov+Y ybIiJClDN6hdnXbg9ARnjzYuZxbhLrw9A/+pp8YqGGD5PjWXmlmC1LI2ul4hUD26CLDk cuAPyCtZZthPr/cRfDP/I+DbxvRTe5INmjuwsi4EQwvGpdw3JQSqYHNBaWOFnqU6B9OB Slqr/Tx83pCkLOMilsml41jDPjNTQK3ZrsqfkrluLmSDR1fF1VmpiW53OedhcKVYaou7 S/RA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=6mXA+Fm9gFOhhq9J+4x5MzG0RFbx7khLB7qwWKlB0p4=; b=Qhx7fcdodCGulwh4gNW3NlFW3xzAfhr8FO111BSMIyW6zroREryhOQmPOi1CG9rtDy VPe5/UyXDzwNqdHQPzg8oxjjqy4Gm2UH7w0pyEuSmywbk3z4o9qQD/30SHXm8dBI28tt wsaoWLfeKDrqhRGuIQ4E/FWwyFviLqaS1zZ7CXEpdRVLh5RVM4liqvW5FgMOYwXV/J0U d3noM9BB8IRsxpCw9URLCVFD12gNoY9bArkcD8C2ZnTG59qFDdmawZOQzeV35s5Vlrpc LZLmQ/wINJp2wqpe81qacc1S8Acgj8rZWmxRavtVC9/TbZ3+9wD9dzBF/i4O2ikjUj6L 42Qw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=LjI2HPvj; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q23-20020a17090aa01700b00226632a14bbsi14524519pjp.71.2023.01.10.00.41.11; Tue, 10 Jan 2023 00:41:18 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=LjI2HPvj; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237260AbjAJIjU (ORCPT + 53 others); Tue, 10 Jan 2023 03:39:20 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60404 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237924AbjAJIjE (ORCPT ); Tue, 10 Jan 2023 03:39:04 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 72B79120AE; Tue, 10 Jan 2023 00:38:53 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 0C1D061536; Tue, 10 Jan 2023 08:38:53 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 68635C433F1; Tue, 10 Jan 2023 08:38:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1673339932; bh=VGGN88dzsKmyouw7pGm8JHmTwQ08CwrwJb0SehOTI8c=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=LjI2HPvjVlu/TTakbIZuXpVInAyCsMs31c57d0ZXqYBg+mrsB0+/DMqhd8v/aZXmK Al56mPGEL4URacmnNu5IasugEoeikMhrW6gX+jcR4xd+91fXC/ry433jqLAHlirCdj 4JwZpQMRdwXWOpGlV3t3OIdvDfBJesTX8wVmsIh7u58bMYsDo982xizrM6UaRgFCZU VMN8WWp1ovx9R4oY5s5a27zLtwqq+pkXNWEdKrBaX/k4IMhpV1D2gYpvmYdECVDy9I uzvIAQChAkoWnaMvToGjTM/GyktrwsGCHcPVWfql4aQKhhq+8WF9cPNRzIPJhtiuSp jhsvPcRq/g7DA== Date: Tue, 10 Jan 2023 10:38:47 +0200 From: Leon Romanovsky To: Ajit Khaparde Cc: andrew.gospodarek@broadcom.com, davem@davemloft.net, edumazet@google.com, jgg@ziepe.ca, kuba@kernel.org, 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 Subject: Re: [PATCH 0/8] Add Auxiliary driver support Message-ID: References: <20230108030208.26390-1-ajit.khaparde@broadcom.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230108030208.26390-1-ajit.khaparde@broadcom.com> X-Spam-Status: No, score=-4.6 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SORTED_RECIPS,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Jan 07, 2023 at 07:02:00PM -0800, Ajit Khaparde wrote: > > Ajit Khaparde > Dec 7, 2022, 9:53 AM > to me, andrew.gospodarek, davem, edumazet, jgg, kuba, leon, linux-kernel, linux-rdma, michael.chan, netdev, pabeni, selvin.xavier > > 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. > > v1->v2: > - Incorporated review comments including usage of ulp_id & > complex function indirections. > - Used function calls provided by the auxiliary bus interface > instead of proprietary calls. > - Refactor code to remove ROCE driver's access to bnxt structure. > > v2->v3: > - Addressed review comments including cleanup of some unnecessary wrappers > - Fixed warnings seen during cross compilation > > v3->v4: > - Cleaned up bnxt_ulp.c and bnxt_ulp.h further > - Removed some more dead code > - Sending the patchset as a standalone series > > v4->v5: > - Removed the SRIOV config callback which bnxt_en driver was calling into > bnxt_re driver. > - Removed excessive checks for rdev and other pointers. > > v5->v6: > - Removed excessive checks for dev and other pointers > - Remove runtime interrupt vector allocation. bnxt_en preallocates > interrupt vectors for bnxt_re to use. > > Please apply. Thanks. > > Ajit Khaparde (7): > bnxt_en: Add auxiliary driver support > RDMA/bnxt_re: Use auxiliary driver interface > bnxt_en: Remove usage of ulp_id > bnxt_en: Use direct API instead of indirection > bnxt_en: Use auxiliary bus calls over proprietary calls > RDMA/bnxt_re: Remove the sriov config callback > bnxt_en: Remove runtime interrupt vector allocation > > Hongguang Gao (1): > bnxt_en: Remove struct bnxt access from RoCE driver > Thanks a lot for pursuing it, Reviewed-by: Leon Romanovsky