Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp2878865imw; Sun, 10 Jul 2022 18:10:03 -0700 (PDT) X-Google-Smtp-Source: AGRyM1trq5pZDV68l3JOgsTNhNBwv5oiyHzODx8V3CXJX8rYF0NCYBfGqXnijAAheBcKgRMR8+ZY X-Received: by 2002:a17:90a:d714:b0:1ef:b93d:fc4d with SMTP id y20-20020a17090ad71400b001efb93dfc4dmr14893555pju.49.1657501803557; Sun, 10 Jul 2022 18:10:03 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1657501803; cv=pass; d=google.com; s=arc-20160816; b=wHPxan+MGJnhh1+s2eZamVaC+jdeuSJ8jSSJaqLgZbzoarjkwlrCy1ejciOY6gC7Cb GKk1j8ieISAybjnxjq/+0REASA6f8NqF3xZnEBlaxY5EdMmXvZIajmwPDL7iJ+yAmX9L r/MxRiuUqpYltTPwt49dBaQbPD1o/ZOCQsvYUXHwwCQAPSNLb9aAEhPAiV+WT9uCwJ7/ E+/rkMzumoFyZ53gP/QLGlTU7YpNt86xcnPWERzRkKFduc0n8qBWQT9nj1QlCKY4jBGz pizEeSij5+HFONKG7XBLJGaP2GxRmCD6qfH607AWBktWBQFFFi8lrR9lF8aSxWVuOo4g lNWg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :msip_labels:content-language:accept-language:in-reply-to:references :message-id:date:thread-index:thread-topic:subject:cc:to:from :dkim-signature; bh=U92vJCOOAXmMrJvka3kmTGwZ+YFzSGYUh5UrcBLm9ug=; b=eV42/rI4s/mm8DNKZZ7QpDaTRr8O1CxlLZjKlLfgVdvZt0DVVYCbnarB0Bw+QNN6KT es2xPLPpdNmoUcMHLqRgm829ATc8UJAJKcOBE6CQwNaswgOrSjeN0cXGWgYRiE6Z+UdD +fmyYNGOR7V2B+dFDcQh3DJsJBtKwcbv9B1mBHcN7lLXpJ7dij0SNkfMEbJn4bGknI0c jx2aObxQhNyrvABRBvdXC0L2PJq/wDwbIAzVrUiHFKGF5ScLJHY1N4hqBlfFQwBZ1l5n DtvFLIUkLqgtGzqy2sRYqMzPzsUiQbt2SorgESlcBqwBuYb8z4xos39u1aJWqVHqu4Ux 20yQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@microsoft.com header.s=selector2 header.b=Kc94DTE0; arc=pass (i=1 spf=pass spfdomain=microsoft.com dkim=pass dkdomain=microsoft.com dmarc=pass fromdomain=microsoft.com); 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=REJECT sp=REJECT dis=NONE) header.from=microsoft.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id na4-20020a17090b4c0400b001dc7b989160si9187701pjb.130.2022.07.10.18.09.52; Sun, 10 Jul 2022 18:10:03 -0700 (PDT) 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=@microsoft.com header.s=selector2 header.b=Kc94DTE0; arc=pass (i=1 spf=pass spfdomain=microsoft.com dkim=pass dkdomain=microsoft.com dmarc=pass fromdomain=microsoft.com); 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=REJECT sp=REJECT dis=NONE) header.from=microsoft.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229693AbiGKBIm (ORCPT + 99 others); Sun, 10 Jul 2022 21:08:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53022 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229563AbiGKBIl (ORCPT ); Sun, 10 Jul 2022 21:08:41 -0400 Received: from na01-obe.outbound.protection.outlook.com (mail-eastus2azon11021024.outbound.protection.outlook.com [52.101.57.24]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1D2966465; Sun, 10 Jul 2022 18:08:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=m5jaVSw9HkRteVq5R6tlnologWPCdEnec0FnpQarKgKi1PfX2XIxGR3/J89ZsmiMtk+rJoUYPPX/aFJFOoP5do/hlg4kTiyw7mu4/5fA+E6ei6J3iFRzJxfmGzMBwBpEGgdoXkLRRTFdjVmSSckAFip/QazV577hwBFD14mZHGXIlf5LmXwbOJg32XHQaRZOaJPyEbgMSuJaeqli5dcPeBeKmNVXHOJCsd+WjXh9w1+STH59wr6eKfiWbF4yOWCUzRFJROXqQeTDwGwBB78n6496IPDIGJT/GN0vQY3PPd2oelb5Pllf2nwxDy6xi7+tUaeqU/7hOK6nFAUcdEBMRw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=U92vJCOOAXmMrJvka3kmTGwZ+YFzSGYUh5UrcBLm9ug=; b=avITHvBpwVmGOSWeQASwFkCloea8JzxWf5/k7JDJ2jyH3lcAQPuDcz/4ShtMC2DvVTE1qwJxAEyOgz8N/Mp2Z2YAE38KgF6JdTnelJcUTw2/3fDYZiNWCKFc130H/7d4qAsLlq0Il0mRWE26c15ocpANMPWRd6ILcPyQiCKsajrnCKQm9Q8FJua7CBeZqjhkCFh1j6TAduXOhWQeDIJrfA0rwhn1bKDTRHLyX1sDGeyikh6iPbrNAE1qp1vJQWfF01vEJEHlF5yRdoNjIst5OY30W+MPEfQN6kFTuVg/CMseN5BozmdiZMd8QwswMvxNOWQ49k/QGuoxQLiQvdpLGQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=microsoft.com; dmarc=pass action=none header.from=microsoft.com; dkim=pass header.d=microsoft.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=U92vJCOOAXmMrJvka3kmTGwZ+YFzSGYUh5UrcBLm9ug=; b=Kc94DTE0cUrXlaDsBLfHuKj/8m7nedkTTCOY/cdna3KovDJYjogdVdwF1StmUVrF/bWjVh5UACzdrmWDL5G/3JAI1MfT2b4TlVKwrCwCFHg8cflqPhq3DIiQM4ZiVRmxpqiE3Ol6rJTNK3EcyrN6erdfixDqMuSQw3ASs9ujKuI= Received: from SN6PR2101MB1327.namprd21.prod.outlook.com (2603:10b6:805:107::9) by SJ1PR21MB3673.namprd21.prod.outlook.com (2603:10b6:a03:453::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5417.11; Mon, 11 Jul 2022 01:08:37 +0000 Received: from SN6PR2101MB1327.namprd21.prod.outlook.com ([fe80::59ea:cdde:5229:d4f0]) by SN6PR2101MB1327.namprd21.prod.outlook.com ([fe80::59ea:cdde:5229:d4f0%7]) with mapi id 15.20.5458.003; Mon, 11 Jul 2022 01:08:37 +0000 From: Dexuan Cui To: Long Li , KY Srinivasan , Haiyang Zhang , Stephen Hemminger , Wei Liu , "David S. Miller" , Jakub Kicinski , Paolo Abeni , Jason Gunthorpe , Leon Romanovsky , "edumazet@google.com" , "shiraz.saleem@intel.com" , Ajay Sharma CC: "linux-hyperv@vger.kernel.org" , "netdev@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "linux-rdma@vger.kernel.org" Subject: RE: [Patch v4 01/12] net: mana: Add support for auxiliary device Thread-Topic: [Patch v4 01/12] net: mana: Add support for auxiliary device Thread-Index: AQHYgSXXLrqLZHcR0EGw/cqXRM9vAa12v3XA Date: Mon, 11 Jul 2022 01:08:37 +0000 Message-ID: References: <1655345240-26411-1-git-send-email-longli@linuxonhyperv.com> <1655345240-26411-2-git-send-email-longli@linuxonhyperv.com> In-Reply-To: <1655345240-26411-2-git-send-email-longli@linuxonhyperv.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: msip_labels: MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_ActionId=a2c465af-e807-457b-abd9-6fcc1df7f37e;MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_ContentBits=0;MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_Enabled=true;MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_Method=Standard;MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_Name=Internal;MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_SetDate=2022-07-09T22:11:46Z;MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_SiteId=72f988bf-86f1-41af-91ab-2d7cd011db47; authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=microsoft.com; x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 52f3dff1-9153-4670-0b31-08da62d9e282 x-ms-traffictypediagnostic: SJ1PR21MB3673:EE_ x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: D8ovoh1yBkdQ2+PW9ym11/OPq7ukwgjLc9v1dgXS4t/7KzPaB9K12zDqy9FFFRxTycK6nRuid2dQzhTpskn4+l3L1g2ofWrU70tX6nzbTT7X8SV5TsxiKX2ihkWERJ2/vCUmWBpfHc2Dc9vSchbCLfOAPeUAv9RJKx9pyzKjUWT9Q6iveT1AYfeYVWn5gfQdy4uFvePUViDP5f6pI+xCDJvnRqXaKtENIaLA4hlpWUoWXkpXnOVNwRetJikBmEuFSLJWi8SCfriZmwAH9Uy5dSaSjkccqLb79JBLIJgDdyoL5dZ6Qpzg6N3HA0UvvjUWNocP8Q2/zEBD8mue9hsU9bhylQjUiZQ47ILNgExQEhDGUSOKMv5mnz6F3v1ybREi0Sul2Pn/PbRjlXrO5L+J6yjV6iwiIBbteB0rCggB3Wsu+i0Ajf7j7aeGGlITURhlZ1lhxLx6HfuxAH5K2kL13dP7IWfawmwyveNWYEbaMs4ie0/38NmGxEcv0KtQ9d1oJDLnJY3gQCfGjM2wT+rtgoF7VVcseNzlXe8TT/htQGwm7fbpPaaGKCJqYIlGgT7+RqbPHSGlI1AT2p4vYAP3D9+S9cdqm/r934/RDOl+ywz2iBudIqcF3oi1DWadBFv2djnlpjcKu2sU9jO5AWNQOPhmGCuT8g2SYQM6fbmNwpvbaIY4snNy0XD/69SUfQwMtmviaDZ0aGjrjoZVeiAc1aV05TF6sjaOYXvOwTLusCzQKaNr7mZrK8RcsUOR4gz1LnYgSqgEhrHyDzorHo5oz5xlyBzgb4pi3yP0DIwth1fKak2EqUOBkpt/zsAoVApmASPnDKYHVD9rJSRrW7bMBxAia74dykVLUtLBMLzlXbOcQ116U57jNyMXcthYvutS x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:SN6PR2101MB1327.namprd21.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230016)(4636009)(396003)(366004)(39860400002)(346002)(136003)(376002)(451199009)(83380400001)(4744005)(5660300002)(66476007)(82960400001)(52536014)(76116006)(110136005)(7416002)(316002)(8676002)(64756008)(4326008)(66556008)(10290500003)(6636002)(38100700002)(71200400001)(8936002)(66946007)(478600001)(66446008)(55016003)(54906003)(186003)(2906002)(86362001)(7696005)(122000001)(33656002)(38070700005)(921005)(26005)(82950400001)(6506007)(41300700001)(8990500004)(9686003);DIR:OUT;SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?Exq4QL2OdrzqVolLR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ii?Q?em5b3YRyOKoVFzMwoF/4DA8avEBkFzYdCrw9j8ur5ObiYEbVpJH0ZVp1AD9O?= =?us-ascii?Q?NGKE2psFLzPFrchjqcKz0krbFHAoiGnWwlnzh2EgYCpDFVdmBvsAms9EkFwR?= =?us-ascii?Q?vLk3Z48yNpHqrXJkshWGfJKGfK0BamQLUHHxW3IHTIY8b8F3GQLGR/wPKYA3?= =?us-ascii?Q?HwtXm4DFLT2xWWLGhZQ/da7syx1DVfzmHWkIfQbTb7f4xI9cTGrAvljXzAH6?= =?us-ascii?Q?N3fKlcoiqqN8YjaFUFoVb4lfrciSGu/+vWNxUliGFiUaA30PkbJFS3/Gtlfu?= =?us-ascii?Q?KBjzzmptQt8F5GDf+KON/fpn+XtDezgwCHUBNk7gzYiZJGl+Jt2ddpUqOp7C?= =?us-ascii?Q?WYdJ3VwK0hHt9+x6d8GCrbnG5Uc37qpwCqsTOlY2bpGmrhVyxjs/coRA+23b?= =?us-ascii?Q?OBjEmdJpBq6bkI5tu7LHZgGwFpevZUJ7CIk1PKbngKfqYSM3sz5u3ZUEQ98h?= =?us-ascii?Q?D+k+kzmxybGceurr22ikSPQMqfNr1w8B6HrsN2RnITNNR0zeaoj+ApzHkY6N?= =?us-ascii?Q?VubfJRkW6K7x9cEW90nV9grCrdvZ8W/z3UIDA0lvq5rNfr/KI/cV+ZUDSw7E?= =?us-ascii?Q?aYDYvjs+KpqdcXdYSUaBZ37L7ZUzQDvnkullRP8DM68h4NgjrOa06+qnKZXS?= =?us-ascii?Q?vDPhoGbKhxvb9NfpJ/bQgCj7NCLwBGK4JK8iPVlW?= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: microsoft.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: SN6PR2101MB1327.namprd21.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 52f3dff1-9153-4670-0b31-08da62d9e282 X-MS-Exchange-CrossTenant-originalarrivaltime: 11 Jul 2022 01:08:37.3476 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 72f988bf-86f1-41af-91ab-2d7cd011db47 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: GP1BI6+ql363HDULiSOQaF9iVM4gExQKP55CYmEWq8H8YgZeDWwqaOh6Q2NUILKJMPHs+9PDVZu8klu+0Js/3Q== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SJ1PR21MB3673 X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FORGED_SPF_HELO, RCVD_IN_DNSWL_NONE,SPF_HELO_PASS,SPF_NONE,T_SCC_BODY_TEXT_LINE 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 > From: longli@linuxonhyperv.com > Sent: Wednesday, June 15, 2022 7:07 PM ... > +static int add_adev(struct gdma_dev *gd) > +{ > + int ret =3D 0; No need to initialize it to 0. > + struct mana_adev *madev; > + struct auxiliary_device *adev; davem would require the reverse xmas tree order :-) Reviewed-by: Dexuan Cui