Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp4520837rwb; Tue, 20 Sep 2022 15:30:21 -0700 (PDT) X-Google-Smtp-Source: AMsMyM76PB8ot9/x4V1ZXFcBfp9t6BFja5LZ5RXS+j6ls36g5e9R8NMu/aMa/kfrr1h8KGnEfgM1 X-Received: by 2002:a05:6402:2751:b0:443:d90a:43d4 with SMTP id z17-20020a056402275100b00443d90a43d4mr22802680edd.368.1663713020947; Tue, 20 Sep 2022 15:30:20 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1663713020; cv=pass; d=google.com; s=arc-20160816; b=HY6dqJClH5b57c7r2h8B1Mfinx6lbMvDD7xt+J08lXTtmVD3oCAm3TyyNx48Ckky6r q1yWs8BrnarCovkihydtuuT8SrK6vtvhwKRoixQ2+ihMkSBmVljhEDtIfk4UJQHIL8Sd 9v0vIr7al4JlIUmUMiWpQnRhv2OP/8xtSJea/+IRb5VUx0KHXksqeDueZPXAR3Nyz9HE JmJqxT70+QMbZO+hJkTddVI/OixPifTZqw53tegsgR1fWBoVU83iKPLpzPyj3k/I6MSZ fXNwknDc4ZiQbaGWh1ZsquUmPYEigT1Wy9+RREMaD5YL0728U6OxkC3bonqNKDJ7vgmo qMxw== 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=3ziOb/WmDfrp5UUhJIgnt4VhNwHoK1t/YM8ck67Krpc=; b=h/sPbZD9kYFh50r/HUZOZUNo/+jcy7VentbvAdof0VPM/cL6uMG1m6gWR5vmV/0O3/ 7Fnmok8l5+fUAdH2reqyYKbQn23JrkIhXvEmfJgkC9qdGHhv0guIJwzwTVI7HIyKpHRd Ku+Lcs67UmzmCEIrNO1BGaN8x9DWL7kCJCb4L4cDuXqSl+/XB53EjQOs0QghJsF0npbV f/bF2f5O6o6uZmFSNELUQltuwIT+oZrfG1L8iQ8GUMu6bI5A6IGfkBz7ZFbmopiDFfOF eXS80NSb5UeP3lQpobyKEam3HClR5gDxiwtn7kQOflhuFU/4bUS50fNiOxArWQwehUdl HGVg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@microsoft.com header.s=selector2 header.b=JwYDa7CL; 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 e1-20020a50fb81000000b00447b4fdc29fsi928801edq.82.2022.09.20.15.29.55; Tue, 20 Sep 2022 15:30:20 -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=JwYDa7CL; 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 S230461AbiITWIA (ORCPT + 99 others); Tue, 20 Sep 2022 18:08:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36388 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230102AbiITWH1 (ORCPT ); Tue, 20 Sep 2022 18:07:27 -0400 Received: from na01-obe.outbound.protection.outlook.com (mail-cusazon11020014.outbound.protection.outlook.com [52.101.61.14]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4BB477823F; Tue, 20 Sep 2022 15:07:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=CXXFnIShZCpWjyGDOCau85oMax9QzM/l6co3XyFAjksPcukCxaVQgMo32AW9OvRcSb9IOOnk9o8NOleH4CLiCnB4oslS711zRZr/muKWaAmxa6PW6Sta4LAOrPqENbbAbIjlMKLVWbiPzpUhJH+2c+XrmC+jlMwkRIxU72/4WoiYDj83Cs5WBFPDXT2uObCqZZ9FdDr/Ud+LARl/dGhDy6NUEfxciWuQl77UGBZ1weThgaWtoEgGZ1JQbGcQsrfIwUwVX/qLIHrHczRA1FG7YdesbAk3Xe0UwdFa/vt80zK+1MZP0SLvFhzz2YTlA/+OVyTmNp5Bwbt1pgSBxJC66w== 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=3ziOb/WmDfrp5UUhJIgnt4VhNwHoK1t/YM8ck67Krpc=; b=admvvdI92U0ulzyOjG++qnDdaqvC1b2+YgGLhbnsjj6HoIB5MhYBLlZiNkATW2gxHRVoQFdZg4e7mhqs6MUpKRNQ/N08dVYxiARt4o1ESzraU1hzxCaUFjbSjagVTZv+y6DLNp34jqtw1bs3yxSynMS9QOsF2V3OAo/R5jfTIl8Hx834dlHXYavkTEieY35yEmwrj8bRcswBXZHoYYg00qWx8biTaRVhds0FhRZarzVYxhfwCEjlR3PnPs4dDtVhjWVNxtErH3lEHpdrU3VrxQfx5te4QiumedMgcNnOPoXKkptpseMiX7nGNjmSxc+HzQj7v3elXdvTRteWDnfOhA== 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=3ziOb/WmDfrp5UUhJIgnt4VhNwHoK1t/YM8ck67Krpc=; b=JwYDa7CLORgcoNSGfmKihdLX+tT6UGYYz//LB5Rzko2b/rGvd7TSrt2NeXlosryMSBwdq9zs0fRxY4KhS8WZPBzGXH4vbdKFCT8qgQCHD8JBDV9+CpTvZbWgrcl2B2jBI+ARPY2tgLIsidIV+otuLcuj6Zzf/FLuR2Du77ScrQQ= Received: from PH7PR21MB3116.namprd21.prod.outlook.com (2603:10b6:510:1d0::10) by DM4PR21MB3683.namprd21.prod.outlook.com (2603:10b6:8:b0::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 22:07:23 +0000 Received: from PH7PR21MB3116.namprd21.prod.outlook.com ([fe80::6de3:c8b:d526:cf7b]) by PH7PR21MB3116.namprd21.prod.outlook.com ([fe80::6de3:c8b:d526:cf7b%9]) with mapi id 15.20.5676.004; Tue, 20 Sep 2022 22:07:23 +0000 From: Haiyang Zhang To: Long Li , KY Srinivasan , Stephen Hemminger , Wei Liu , Dexuan Cui , "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 09/12] net: mana: Define max values for SGL entries Thread-Topic: [Patch v5 09/12] net: mana: Define max values for SGL entries Thread-Index: AQHYvNF68u0sVoi5XkSjgg0YQp/js63pAQMA Date: Tue, 20 Sep 2022 22:07:23 +0000 Message-ID: References: <1661906071-29508-1-git-send-email-longli@linuxonhyperv.com> <1661906071-29508-10-git-send-email-longli@linuxonhyperv.com> In-Reply-To: <1661906071-29508-10-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=8b3e7b48-2cdf-41e7-b493-96fa5b19e7d5;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-20T22:07:08Z;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: PH7PR21MB3116:EE_|DM4PR21MB3683:EE_ x-ms-office365-filtering-correlation-id: b3349deb-944d-4030-7c12-08da9b547ec2 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: p86DjEuDCZwaHoBemOdlkER2HlWcN9/z+BoKt6YDnmM/QC18BIIMIrpFa2IxktoGHc2O8KB+fbUjwcLEIH+kFUB6BFkL+2g7eEi5Alu5xO2WFUzuPdVW/QqIfgbIxzuWhShE9W7bpyaMfxZqWdrQ+X6T2+R9eYFPmqi4ee9k1kgvysTB1bJBXqlbsjC26nvnOTpB1q3aLJOnJ2O1W9kMMoiv1BjvQ3Brw6RBnX3stuUxYRKeZCUhCd44L/G5QiozA4vWXzwJ2oDu5Aw3pkFQGYMgFRKfjIhcH3FxT7qc9uFj/WD0zD2iurs8LwMJVUpNdEC3V4NAaV+j8umr2Tsjm4hhPADjrGx6jgHKybrivC2zKlBPAlonYfPdF+6YN2NfyCSdFfpFQREV+beYLFG/rZG1c4G8InsFbT56bGzxwYR2t8Ye8vCRlJeTFxxVjAMH9nKOSSNpeYPS3lJPy3IQXl+XWyN5SaVIvzS8wRhKf1Fzkc2FeN+fDy8M4t6xmvfA8Lu47NycY+84ClQ59JJlhxsUyjbRa5gi71KCZDXmHD/L0AzGjHmWakTd7tG+uWagyjiwr1XZWQCO2qF2KlZUtFCN6q0CZksqcT/cCd5sPlvia22JexjHDQ0+IXVdWVR8CmgkZuXUsYHITtxwEscApliI0ivqKKsk7IhleP9Holt+lpFcfVLv2OzxX4ElCysn0SRpZINbPQ6Gys7VGWSHSAtfa15iQSomK1mROimwpt9Q18+mhpoRtH+gfWHf7nVXteziZJE8wFCamjAg3yAfpeVZWswU9V4DgELx77xI5MtzmlYizADA6KxihqidDrYuhro4uXFEP6erjfrvQ8dg1w== x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:PH7PR21MB3116.namprd21.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230022)(4636009)(39860400002)(136003)(346002)(376002)(396003)(366004)(451199015)(8990500004)(921005)(38070700005)(86362001)(122000001)(186003)(83380400001)(38100700002)(76116006)(82950400001)(82960400001)(6506007)(2906002)(7696005)(53546011)(9686003)(26005)(71200400001)(478600001)(54906003)(10290500003)(66946007)(6636002)(316002)(110136005)(66556008)(41300700001)(4326008)(66476007)(66446008)(64756008)(8676002)(5660300002)(52536014)(7416002)(4744005)(8936002)(33656002)(55016003);DIR:OUT;SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?vJ4nwG0d3xvpumxM3liiv0I7UkTvaqyZtR0oahrZyhiSfkwOcFWzmKO0nGbY?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Vwt2hCdg6KEOsGKnO2ybG+TI2?= =?us-ascii?Q?wRodJAOMCLTgFuX20Phe3qcpFBKakOL0oLe2pyMsHgycC5AK4l7PG3C5VXI5?= =?us-ascii?Q?m6gApKOsDVLowG7t78s3S0qguBvBw4wik7Kd+A4xjkqWNRyZQIQbJ17lhN55?= =?us-ascii?Q?gg71xKppTLNFAkRtsnywNriW1J1f32JM+g6Wq6QpCoO64GYbfjZPGeKeXW1J?= =?us-ascii?Q?692sB5m77AQS1cObbJTU2O2dGZU53CWXvaLimZe+QHmX85iYgtUFYPpQFtw8?= =?us-ascii?Q?StzTPkoZAlYRrHt97MXpC0/6rhXzh0Ctpwc9YYZ4LAcXfCEzeAkx0msinYlt?= =?us-ascii?Q?qgo1tcLcWJKrq6XWXFQFX7CEq1F+GNUvVXrf8N/j5s/I0hJO2AktGDd7JEV4?= =?us-ascii?Q?BHLN7QImddUpvLV2rUJ7RTF6VXtOtjYqVXWlnu5K4gSr8B2VwViotfY+uTDu?= =?us-ascii?Q?5TqIqLCzj6AKJ2R7HYJjGpsYGaCmH1vBssq5rJrSp5sfGjB+42UTB6Xh/DCC?= =?us-ascii?Q?+pZowFiRXls3aPgN5O7q2Jn8iWeiPfxBzkjoxWml/RFo5G5hwsDe2T/oXOVO?= =?us-ascii?Q?o8NTXUq3iJ9adorrpappkz/cP7Eux1TvdjcHPksMJPqjdrxFVr3SdwxoXV15?= =?us-ascii?Q?QzMk320pqA/u6KnMEjG1lOVfBwP6BiKP7Iy0+sEm?= 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: PH7PR21MB3116.namprd21.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: b3349deb-944d-4030-7c12-08da9b547ec2 X-MS-Exchange-CrossTenant-originalarrivaltime: 20 Sep 2022 22:07:23.2111 (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: +A3JzDDDPLAAUgUWfvv0CvXzTPjUtMUhdk811l9Uu7wCHHrsaTKkIt1X5FvrhMUvwWa+hpHgKZQ8LQKXSI17rA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM4PR21MB3683 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 > -----Original Message----- > From: longli@linuxonhyperv.com > Sent: Tuesday, August 30, 2022 8:34 PM > To: KY Srinivasan ; Haiyang Zhang > ; Stephen Hemminger > ; Wei Liu ; Dexuan Cui > ; 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; Long Li > > Subject: [Patch v5 09/12] net: mana: Define max values for SGL entries >=20 > From: Long Li >=20 > The number of maximum SGl entries should be computed from the maximum > WQE size for the intended queue type and the corresponding OOB data > size. This guarantees the hardware queue can successfully queue requests > up to the queue depth exposed to the upper layer. >=20 > Reviewed-by: Dexuan Cui > Signed-off-by: Long Li Acked-by: Haiyang Zhang