Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp8598511rwl; Tue, 10 Jan 2023 16:15:06 -0800 (PST) X-Google-Smtp-Source: AMrXdXsZ79lfIZdfC+FAM7nwgZCRFEFtnwvIa9MuwkI2+r4xC5ksN6qhAUtvLtMGiWHbDgphalnH X-Received: by 2002:a17:906:279a:b0:7c1:10b4:4742 with SMTP id j26-20020a170906279a00b007c110b44742mr56774294ejc.55.1673396105794; Tue, 10 Jan 2023 16:15:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673396105; cv=none; d=google.com; s=arc-20160816; b=w1OBKbygcugchov1PlTI5mzelup7qsdS6BbQnGuJLeAGS3AUCW7rlWk8lsgiMXL8q/ 6dDGbp6sG4cvhe671FQ/rNZrheK6vuXBo6eJGLt/BDsmg78B0COtTE0wWv5YesPfjmg5 Q0nIjxBKurCRQA0JFAqdUtD+UaOGAipayCT6sH+MZUD4h3c6I0xziEbyeyuskqZc683N 1NjdS3XUzMv3E1sdeQ31Vv/PMA56xeK8U4Iyzm/mFDx4bytaw+VzdxG8D6mQ/hAl/ubD KFepSMmo9cC2+NAPuojVl1noaloF97/WkZPpQWvBh+h686w+RFuxXIPNcj4eNeYVXVJe IbDg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=NHQQrDGv8GhKJPeAKMwORBwo4O5A9gBws4m+LxbxqIU=; b=ZH4UGtZ6uZyMKbsGuYFKW8302r13o38Dd/9rgonEYxgmZbjP1I5/F8zWzsHafqzbH2 tA4ojfEEA3nVfZkb21tUQ/TSqz8wJIuzqj6QmXHedRNHA0qFb9EetznqFzrmz3JuDLdB muxrD+MREE+v3iV5Ivh23zMakmz6uL29Zad0MnfzCEalLae77o5SsTQ0QijpA0nKElCt hH46lmtxMMxHCbLh6lhF1nS990Sxx8XiExGWXttR0MqDb8Z5bUICFe+p8Vr71hzaHwA8 9Fm6LzOi4VUTZ48EVxfUp3XX6OEpunuWIjCkfe29OYSAMiOUgTNwwdZGRKDcApRhwVT6 I7kQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@broadcom.com header.s=google header.b="AtcLx/dN"; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=broadcom.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id nb11-20020a1709071c8b00b00858a806e49esi2499159ejc.521.2023.01.10.16.14.52; Tue, 10 Jan 2023 16:15:05 -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=@broadcom.com header.s=google header.b="AtcLx/dN"; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=broadcom.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235140AbjAJXtb (ORCPT + 53 others); Tue, 10 Jan 2023 18:49:31 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54880 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234903AbjAJXt3 (ORCPT ); Tue, 10 Jan 2023 18:49:29 -0500 Received: from mail-pf1-x42a.google.com (mail-pf1-x42a.google.com [IPv6:2607:f8b0:4864:20::42a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A2D1A1CFE3 for ; Tue, 10 Jan 2023 15:49:28 -0800 (PST) Received: by mail-pf1-x42a.google.com with SMTP id 200so3964648pfx.7 for ; Tue, 10 Jan 2023 15:49:28 -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=NHQQrDGv8GhKJPeAKMwORBwo4O5A9gBws4m+LxbxqIU=; b=AtcLx/dN7jCaos9oQO8Ihe7MWDK7cAgTx6+o6mWf5xmCtbqnYHIozicT6D6IWITvgI zzrAREY5iyEzWJVNmwjKZrJupTJWntgI9mQFPh+8qbPaJKh5NOQWJNPxif1OFzlK3bDv 59d/B9MQXEz4f50MEnPczJY4aN/Cz5/lKCNgQ= 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=NHQQrDGv8GhKJPeAKMwORBwo4O5A9gBws4m+LxbxqIU=; b=ooqOeFnA27E0Jrc2vhQ+IrlzCR8yeGbum8OWixzhsjSbkr1hEMhlKFBnz5jTTo04Lv 4xNxSf+g9a2euV6XGraP7wFJsObpMKL0PX01Kgb0HEVk04ZxdzZi+71WAXEpJiByHT1h 4F4h5QCEt1qBFkOCjnRXEd11xSqoCyiYynpRpzsGC7liYVAWVVXRUSsPHjYpjyPlivdS IZ0DJJaxJl3cSlkT8iyC7tdrcf0tBb7j6401Rqb+19pdQUX3ZBgJhkA32Y3lQir3vSbN rVkqQ1+tN1/IWpNfFPbkgxoF2+kH1pvWoujt9CaHJzqC7VImPkeGNbVnb1LLGYEDXo8I VALw== X-Gm-Message-State: AFqh2kqzdTohhVDYXQyXgGRWxXZFEp8KP+m70SUeUFjKLDSTlVZNE9FI sr9Wo5Vgv0gRWdA79d60EnyMO5PYJJLbrY0ObUNgbQ== X-Received: by 2002:a62:1556:0:b0:58b:87f:9a70 with SMTP id 83-20020a621556000000b0058b087f9a70mr270542pfv.1.1673394568068; Tue, 10 Jan 2023 15:49:28 -0800 (PST) MIME-Version: 1.0 References: <20230108030208.26390-1-ajit.khaparde@broadcom.com> <20230108030208.26390-2-ajit.khaparde@broadcom.com> <20230110145152.3029bd2a@kernel.org> In-Reply-To: <20230110145152.3029bd2a@kernel.org> From: Ajit Khaparde Date: Tue, 10 Jan 2023 15:49:11 -0800 Message-ID: Subject: Re: [PATCH 1/8] bnxt_en: Add auxiliary driver support To: Jakub Kicinski Cc: andrew.gospodarek@broadcom.com, davem@davemloft.net, edumazet@google.com, jgg@ziepe.ca, leon@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 Content-Type: multipart/signed; protocol="application/pkcs7-signature"; micalg=sha-256; boundary="000000000000d1bab505f1f188bd" X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_NONE 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 --000000000000d1bab505f1f188bd Content-Type: text/plain; charset="UTF-8" On Tue, Jan 10, 2023 at 2:51 PM Jakub Kicinski wrote: > > On Sat, 7 Jan 2023 19:02:01 -0800 Ajit Khaparde wrote: > > diff --git a/drivers/net/ethernet/broadcom/bnxt/bnxt_ulp.c b/drivers/net/ethernet/broadcom/bnxt/bnxt_ulp.c :::: snip :::: > > This forward declaration is not needed, at least in this patch. > > > struct bnxt; > > > > struct bnxt_msix_entry { > > @@ -102,10 +103,14 @@ int bnxt_get_ulp_stat_ctxs(struct bnxt *bp); > > void bnxt_ulp_stop(struct bnxt *bp); > > void bnxt_ulp_start(struct bnxt *bp, int err); > > void bnxt_ulp_sriov_cfg(struct bnxt *bp, int num_vfs); > > -void bnxt_ulp_shutdown(struct bnxt *bp); > > void bnxt_ulp_irq_stop(struct bnxt *bp); > > void bnxt_ulp_irq_restart(struct bnxt *bp, int err); > > void bnxt_ulp_async_events(struct bnxt *bp, struct hwrm_async_event_cmpl *cmpl); > > +void bnxt_aux_dev_release(struct device *dev); > > +int bnxt_rdma_aux_device_add(struct bnxt *bp); > > This is only used in bnxt_ulp.c, please remove the declaration and make > it static. Please check other functions for the same problem. > > > +void bnxt_rdma_aux_device_uninit(struct bnxt *bp); > > +void bnxt_rdma_aux_device_init(struct bnxt *bp); > > +void bnxt_aux_dev_free(struct bnxt *bp); > Thanks Kuba. I will go over the comments and send the next version. --000000000000d1bab505f1f188bd 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+lv77edQixNJMdADANBgkqhkiG9w0BAQsFADBMMSAwHgYD VQQLExdHbG9iYWxTaWduIFJvb3QgQ0EgLSBSMzETMBEGA1UEChMKR2xvYmFsU2lnbjETMBEGA1UE AxMKR2xvYmFsU2lnbjAeFw0yMDA5MTYwMDAwMDBaFw0yODA5MTYwMDAwMDBaMFsxCzAJBgNVBAYT AkJFMRkwFwYDVQQKExBHbG9iYWxTaWduIG52LXNhMTEwLwYDVQQDEyhHbG9iYWxTaWduIEdDQyBS MyBQZXJzb25hbFNpZ24gMiBDQSAyMDIwMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA vbCmXCcsbZ/a0fRIQMBxp4gJnnyeneFYpEtNydrZZ+GeKSMdHiDgXD1UnRSIudKo+moQ6YlCOu4t rVWO/EiXfYnK7zeop26ry1RpKtogB7/O115zultAz64ydQYLe+a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