Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp4339103rwb; Tue, 20 Sep 2022 12:19:58 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6wv0hGU/mJiBx0sLWXKtfU27/Sg4UWfs6Cu6+7xKzrd0cFo0qWCHiT0AH0d5EqcO3lwcxZ X-Received: by 2002:a17:90a:6902:b0:202:a300:44b2 with SMTP id r2-20020a17090a690200b00202a30044b2mr5331031pjj.20.1663701598539; Tue, 20 Sep 2022 12:19:58 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1663701598; cv=pass; d=google.com; s=arc-20160816; b=NRBKLBKF5EJYFy3AFtdEDdbOtYMoR1EGUkWJNsQLSvQq+RYeSmfKzT9S89iZsWjAG0 t7lKTmwLb4gmjTaOyEhrxJ68ZxHc38U4+CgezMSygh8qGBrXYrYVM7cD8m5zXtGliPWF SFE93Pc5Sq8TmCvtAW53g72iZtKf+5ejrEFeSqrpmU2z7lR1nxJOjdjZKtQ/I0QETVyL BL9j/pIq0Fmt6wQGFd/Ri3BpJl2IK5X78NY4ZL1VcN0W71kk6UGx9WDqzKTO0wt9VuAV Pvg9fCLPqNcyJdwJwG55VUHL7VbSP4rOs+NTCV8m0PPYccSF+dtQA7C4aHdUdB+qRrH5 m7mg== 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=LoH+mVNkn+SEmAaU/elv5AI7Ycrob9vATH+TlaPfXA4=; b=zPG1TaQotBs0CzqAG7uNyDu5fq2oGDxF6nM8pgqqln1wwNNhiEi/reVqnu9ZXnlo4+ QMpQb3s84c6C8NmMRCmXQllDZhiUPNDVKWe60wTrT30yjFRkslANibnqPvrGQz/tWYh9 vyJaKFd8lO3o9GfD6h2aA/yfGyDJqfmQw/cvY+eqDGp3ru8aONtn47BYnCzMtrqI5U8W c4+4JOMkkKWqEvLhopO7zTvji1eL2b9golocpXgdVqIpN4E9dWcuGRlc0CrJ6f7RSN7M DRQvXuGHj2IZUkhwwaYHVDakl3kZ1J62lG+y8KhKUEffj4zA8abAT/rGwB+6QQhWpRBb 6+vg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@microsoft.com header.s=selector2 header.b=KhM+hjpj; 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 o18-20020a056a0015d200b00524cfcbae7csi637179pfu.41.2022.09.20.12.19.47; Tue, 20 Sep 2022 12:19:58 -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=KhM+hjpj; 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 S230414AbiITSdH (ORCPT + 99 others); Tue, 20 Sep 2022 14:33:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37912 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230218AbiITSdF (ORCPT ); Tue, 20 Sep 2022 14:33:05 -0400 Received: from na01-obe.outbound.protection.outlook.com (mail-cusazon11020024.outbound.protection.outlook.com [52.101.61.24]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 544737331D; Tue, 20 Sep 2022 11:33:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=P4e92xxEWr4dpxTVn8+7QEZC/BFjLWoPFMNwucQe/kHjLz1KKchwbrigY8L/PbggEArzztny1tCe5EGFZuWqR2Y+rWWDgyJLY6ScxErCYCGOrYaR/zPvCD0qmJhlQJ/oHwbJaYmHwPm8EAvxBLeDggY0BKXoyhq/mcxmn3tN4XAwCGziK68dAS9jbd8RGTaeBCYraUAwnAGZRw+bYin8ezNi+DXCzSwtFvvxlKiHu79J3wmeTrbmuhQzPqB1FTTfT9vrgwy+umYwrjgWXj6JKXpxAETEl5gko7El02b9n7wpeEQAFBvyFhHnXf2Re0e8lh+U8EJ5dTVyzYm/x8Ijsw== 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=LoH+mVNkn+SEmAaU/elv5AI7Ycrob9vATH+TlaPfXA4=; b=UsnXqS6u7zrxUSrm33eu53Kk2ryTInfiXP6rZyKb5QSZWRNN+eHo3yxmXUCZ43Ijg7jLpA9p6ilvTEyItWW2PipmD+i95nMR81dHL1td61/6Lt2P8nD3ykF7JdncnMm2niowwQ1PUfH+1FxgGjQsyp469XJI1lczCIKdeI2VSTm8eXNW58lEMhoBH7Vy7HXPs/Fubr64L5x3Wn2AMxRmq9W9aKedCfleQlYCtcBmsBBc6x1PMBCjgWlUPyTHPKNyAsfRI20LLQx13HQThX9vGnw7KdiR1QzHKDhXpPRRbc+FeyRM1npzsyc4FfcR1fcS7xkTn6SHca73j7mK112Efw== 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=LoH+mVNkn+SEmAaU/elv5AI7Ycrob9vATH+TlaPfXA4=; b=KhM+hjpjNuNZkPrmYVHfr5u/7LksPJ9jlzjVGSKZW9hCdXxaYuI2AZo/26tnxVNMvw1KeW2gOxOJ6f4I7g3iorD/U0TvgfOgADh/kTN2T3D7glkC0/J4/g1/MdsBJpB/auMR+MhYZi8I/HROl9J/2ojWVC99bFp4oU/lSv0aXDk= Received: from PH7PR21MB3263.namprd21.prod.outlook.com (2603:10b6:510:1db::16) by PH0PR21MB3024.namprd21.prod.outlook.com (2603:10b6:510:d2::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5676.6; Tue, 20 Sep 2022 18:22:07 +0000 Received: from PH7PR21MB3263.namprd21.prod.outlook.com ([fe80::ce6d:5482:f64f:2ce6]) by PH7PR21MB3263.namprd21.prod.outlook.com ([fe80::ce6d:5482:f64f:2ce6%7]) with mapi id 15.20.5676.004; Tue, 20 Sep 2022 18:22:07 +0000 From: Long Li To: Dexuan Cui , 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 v5 12/12] RDMA/mana_ib: Add a driver for Microsoft Azure Network Adapter Thread-Topic: [Patch v5 12/12] RDMA/mana_ib: Add a driver for Microsoft Azure Network Adapter Thread-Index: AQHYvNF9Ou2enAy4lUmWbFSQg4aWla3oumCAgAAHOtA= Date: Tue, 20 Sep 2022 18:22:06 +0000 Message-ID: References: <1661906071-29508-1-git-send-email-longli@linuxonhyperv.com> <1661906071-29508-13-git-send-email-longli@linuxonhyperv.com> In-Reply-To: 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=82c64755-33ed-44a9-9f45-3e5b05469094;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-09-20T17:36:15Z;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-traffictypediagnostic: PH7PR21MB3263:EE_|PH0PR21MB3024:EE_ x-ms-office365-filtering-correlation-id: 3c62d4ab-648a-43a8-d5cd-08da9b350676 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: asLyPf1fEieosHQkdLgp1LfeiYsJDhAqTMoeVano3MaAOv7bVuD2nLI5lIoZ7QwpTlrFJEQgU1SXdoZzVnmeP/5Q3aVcH1XxA1KKoemBRrSiJggQItRPAu9m5dAfgz6Up7DvfJgJJCUUL9KBU2iNHGwMupGcrcowwqa+2Xxw3YOprti5j100LBZVelor9laKq7RlWzqE75S08MhdLC0ZxqregwqjFuhTArjl9g/Br3c4vGWL4TPN0RCH1zMn/xK00eA07Wqiglz49AuV61knKSYYdC+eBKzp6WWW0E9UWIxtuz6XQjPwacXJnq48+mtBuma7hbMYFTPJ8iQIf76w0iwucZQcTVJ6y7nCYxBvwOO+OSmG84jreefAIePpsRyDlIhsc80iHj8pqmautpzfBkY37srsxsKUrNMK99iXCb5IwEaniXU6q7Qm6r96n98SihSDAHrDf1qobXIq4nfVg+kgOscC2g1iHgXrzhTixdgP8pfzGCUjFYzx/KxpUNU06OB5nwWNGX0tKz7Y7+bGsJbiGIyODgpJMdgASQCu/cnds2xkcIiYtFQ1xxDWOLXG4+rFeMLprNzu+h81XnDyf74KgSq4U5PiqZKgDZYTWohremXm8wrpU2XCEineBuSYNSLogu5oj3SQS73KBd1bJYmVcBwg/kUJuEXyfgbuh9b+1C/mwvX9byZ3F1Ht0Ytdqym6OiSomWWOiJL0bFW3PzaeLVl3OrpfBZBQxtUtyuD6m/e4rGKoPKYfQqEXS9itROqjRXq7ZBsio7jN1D+ePAayNp0ZsI9bibpuyqizXU7rQiHGqPOHXw508lQfX4iel1pwfLXp4ex8tDSE44RP6w== x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:PH7PR21MB3263.namprd21.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230022)(4636009)(376002)(346002)(39860400002)(136003)(396003)(366004)(47530400004)(451199015)(71200400001)(478600001)(7696005)(6506007)(9686003)(26005)(53546011)(2906002)(52536014)(5660300002)(8936002)(7416002)(55016003)(33656002)(66946007)(10290500003)(110136005)(316002)(6636002)(54906003)(8676002)(64756008)(66446008)(66476007)(4326008)(41300700001)(66556008)(86362001)(122000001)(8990500004)(38070700005)(921005)(38100700002)(76116006)(82960400001)(82950400001)(186003);DIR:OUT;SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?Yk0ijSxNM63+82I7ONNwYg5lrc0cUAekK+8iDcRHIf5RgoDy5kJAYCv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Dx1Z5c2rMbc9jP3ng21ZimQn+X?= =?us-ascii?Q?wK8zzoQyoCrgX6nU2VXsHbwNX/RlNHshUlsf8MRecSG9jw9e3UBBOlC3WcaN?= =?us-ascii?Q?bawVNB9zndgpRCcY5gBxcBWQR7r26/pW72v5vseure3q0w9tAkcHG3shGBgo?= =?us-ascii?Q?S+Xm6ePNkTS0ed2Ayx4CxxIvqnZbVDz750ETKqj/A3yn24OYZ6QsQ2fZaBOe?= =?us-ascii?Q?xnqNxtEkavyp+NL8RM3N/gD/Q4lIm5fMSAZs3bgFITGQuabCRUvvAC7VPETW?= =?us-ascii?Q?NEBBtPw7oGQaOnf02f/Uttu9OIDvHFE4pTzsQiPrDcLTkbLGJJZ8zQxdx1+X?= =?us-ascii?Q?vLYyAGlQN5watl1jo+xk5jQdcgZJTpSZQdMvZnJCrgou174JqLw+O6iSBYVh?= =?us-ascii?Q?zbx8N5AApBKhnXMNtCtOYEF63SbaIH5UAtPBcz/Cjelh8hiQCDnxP3M+SwtD?= =?us-ascii?Q?M/WtIP17hcq1EnZY6VQsq+ptkYFVueoI/OCfEYyjBHnumEmARdjg6+FWqpF2?= =?us-ascii?Q?ZpyghzGp3LLjtx4dft421XmjfChHScnhsnU96ZrEV2YHjFcECd7dhHkiqdl5?= =?us-ascii?Q?+XuPrnrqZQlH9oLVwm9qFUqLES4VMYtXX/LhjBZUlKF8UL3xnaWwXMRK4mQv?= =?us-ascii?Q?p5caXjfuE2mI+kHVTfCd5ByeS7dxw2oDhs04BpS4?= 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: PH7PR21MB3263.namprd21.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 3c62d4ab-648a-43a8-d5cd-08da9b350676 X-MS-Exchange-CrossTenant-originalarrivaltime: 20 Sep 2022 18:22:07.0213 (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: qjL1zmZoMSkMprMpMt502C5CNLUgGciYcf5jwfJvizqEYFgkwuobr7dn+CaWUAFWb39rgdYeCfmOpZmHFhTgzQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH0PR21MB3024 X-Spam-Status: No, score=-1.1 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 autolearn=no 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 > Subject: RE: [Patch v5 12/12] RDMA/mana_ib: Add a driver for Microsoft > Azure Network Adapter >=20 > > From: longli@linuxonhyperv.com > > Sent: Tuesday, August 30, 2022 5:35 PM > > To: KY Srinivasan ; Haiyang Zhang ... > > From: Long Li > > > > Add a RDMA VF driver for Microsoft Azure Network Adapter (MANA). > > > > Signed-off-by: Long Li ... >=20 > Reviewed-by: Dexuan Cui >=20 > The patch looks good to me. Just a few small nitpicks (see the below). >=20 > > +static int mana_ib_probe(struct auxiliary_device *adev, > > + const struct auxiliary_device_id *id) { > > + struct mana_adev *madev =3D container_of(adev, struct mana_adev, > adev); > > + struct gdma_dev *mdev =3D madev->mdev; > > + struct mana_context *mc; > > + struct mana_ib_dev *dev; > > + int ret =3D 0; >=20 > Small nitpick: the 'ret' doesn't have to be initialized to 0. Will fix this.=20 >=20 > > +int mana_ib_gd_create_dma_region(struct mana_ib_dev *dev, struct > > ib_umem *umem, > > + mana_handle_t *gdma_region, u64 page_sz) > { > > ... > > + > > +if (!err) > > + return 0; >=20 > Please add a Tab character to the above 2 lines. Will fix this. Thank you, Long