From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 6621EA04A6; Wed, 9 Feb 2022 09:53:37 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 5388041141; Wed, 9 Feb 2022 09:53:37 +0100 (CET) Received: from NAM12-MW2-obe.outbound.protection.outlook.com (mail-mw2nam12on2052.outbound.protection.outlook.com [40.107.244.52]) by mails.dpdk.org (Postfix) with ESMTP id 3F2B4410FD; Wed, 9 Feb 2022 09:53:36 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=nGCMzfMvGDvD5rO0t0zyZV9/1eivFZlt/9FA48IYPTQRprQwkgTsIZ/tiE38H9KDZ88X825i+co6CAL0MBOhjmYod2cTdS8Yp8MzSeaiibYaApHYWtjQnXB1uhLvGvSaVKv4wQ98NwKkNg/unjw4mrfvL4qpaKGCcTFm8JyupokGxe0HgYxJlrbfnp+qsA3VNSWircv6UclC8V1DTo6W8Y75VuhZd8YNX9DQItvmIlNs3gE55e4QiyT/JTO0exzSIoH4mOBvTTgfZ2QtoYNW7fwGaIdKF0Yznt+0CSF4cyR4jZ8Ar4kPFqTCz42p4OjUkud7CeQo+aznurR6ARcDzw== 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=Fw0S6xNC6xAM32M5BmYRifpF57/oUanp+ARadhN+/xQ=; b=EKcBchHoWvBPiAZGjoPxP4yHfOYevD7Jli6Nkr7GSBYLruQ3d/QSX/vmjCCG4O2g9g1Hm0XT76Y38bdwFM5S3oGsTiMYQHpJ+QHVemhhTcH6tBq1KfHPr9F0U90GjWUkrV6ST+E1BsKe3Yx4yyAJo3nyby2ChDuuz6UQakrer/VMnM8DCAzXX9SND33R5VEBXd4LUaILaGS7Vina6zEXsP/W2s2Gnj0AaLHdYLQChBz03UXX4ToekVj4z6RF/IuUXSzkC1FO07uTV0ydjQaaloQGCZJBtzr5IuwAMsrSjj2wEzytwUHvns/tPwWfQth2pVuPZWlxHyiNBPOwyfGHZA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Nvidia.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Fw0S6xNC6xAM32M5BmYRifpF57/oUanp+ARadhN+/xQ=; b=oNgkg7s+2i8zdNeBwhRQM7Gfr/1mhFhPIjRanl1SO/ceDbq7g7Gy/KJydaKyz37hzafOmc6BlpDnku5a8H2Cakf4yIbs2yAldtXcAcVgydQtkOb65o1ttpVEviJ6M0rDCeU9EouZbAeWMgHMVnAlogB8WJ2vkqd5TWuVIGVp6sCoS2NyixcHLWcsr69WWU7zjUTjizuKYvKkGGugvaGPqqXb8Jqgd7ehqV+6C6NZqiuwk/Fpeotgvt8wHBD5xV/CBvtz4rrDuz2eoLq37liHiZQK1ZBS8rgX0e4yVM6mQGljUCsvjEhYAOIEZXgtrXbMum9QEKkmdx6Yd7c/oqwaqw== Received: from BYAPR12MB3078.namprd12.prod.outlook.com (2603:10b6:a03:a8::31) by MWHPR12MB1821.namprd12.prod.outlook.com (2603:10b6:300:111::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4951.12; Wed, 9 Feb 2022 08:53:34 +0000 Received: from BYAPR12MB3078.namprd12.prod.outlook.com ([fe80::c8a5:fe91:7c8d:5e84]) by BYAPR12MB3078.namprd12.prod.outlook.com ([fe80::c8a5:fe91:7c8d:5e84%5]) with mapi id 15.20.4951.019; Wed, 9 Feb 2022 08:53:34 +0000 From: Raslan Darawsheh To: Alexander Kozyrev , "dev@dpdk.org" CC: "stable@dpdk.org" , Slava Ovsiienko , Matan Azrad , Suanming Mou Subject: RE: [PATCH] net/mlx5: fix Committed Bucket Size calculation Thread-Topic: [PATCH] net/mlx5: fix Committed Bucket Size calculation Thread-Index: AQHYHCaqMoMxrxFGhUGjBFg3jv4o2KyK7Kmw Date: Wed, 9 Feb 2022 08:53:34 +0000 Message-ID: References: <20220207132840.929116-1-akozyrev@nvidia.com> In-Reply-To: <20220207132840.929116-1-akozyrev@nvidia.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nvidia.com; x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 5aa5047c-bed7-4ce3-8cdd-08d9eba9a7d8 x-ms-traffictypediagnostic: MWHPR12MB1821:EE_ x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:6430; x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: RAdsu6K6GfSG8menF1PsRT8lIPWIDIyYwcH0O0PZG1NSITJnPc+a4YqpxoH98skBr8UH7rvWr6wSQitoslmrlyHtpV/c5nqb72UZqOMMhYebgYIMyhA6jlSKP3ezQSONoaQk5cEGCDStPoc26LXwOvTcpmQntIdgyDcuUcytg/ABYXkNn7+JXcQjndUuKVP//Ur16cPYfxFpmCfQTKVeroN1kpK3vtBk99oMnqFlX1/PdeGrvNqHV25CNifRg31YazN7jlFC7M5XhhBHXV02zmWlLGny7ArKgUFkeOzP3A9qaXt4zIaBRjUWEHwgWMClK0bj81ac04qa1wjMe3BAHvPUmvE5toMBJVNyAF0W++ZKySYSm69+F3R6o0f9zlutLivnY1zydZyXLmhWsT6jyt6IA0cARE8o3aR/1rmcohH2Lmqx/5Og32YAn2YHxLsVen1HX99ECdRIm20DWpM1sQE65u6w9411F3PzzsYxXKziNT7JGZhDSO8sAAMA23WAECiTEcqEQYia+GTASjYfOliApz3Y9j1aLHpAO9+mJuch5BjpUrEfAW306Fusrhy9Rf71B46kJbGSykZpk2/9fW30QumwuAQ0jPI3SUWY19BpRKuPsuIPO0ZDcQ4kd4VovvSqykWQ9A7nTle9O9qCa7KsjrQvST5uY5/jk9I7iJ8HJjBsRuDsJGcVa2WzRN4Pob4LZmu7L4OK4+ZA1ZXrFg== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:BYAPR12MB3078.namprd12.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230001)(4636009)(366004)(122000001)(66446008)(107886003)(8936002)(4326008)(66556008)(5660300002)(8676002)(38070700005)(66946007)(83380400001)(26005)(186003)(9686003)(7696005)(6506007)(450100002)(4744005)(53546011)(86362001)(64756008)(76116006)(52536014)(66476007)(71200400001)(33656002)(38100700002)(316002)(54906003)(508600001)(110136005)(55016003)(2906002); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?OYZ2I9Cn5YheFwKK4qCGg6Ie0L8cExcB3fRJs5REAcN4ENin1LbWLZKkC0Bg?= =?us-ascii?Q?kbJxXiztMc271hnXzSGeFhEXO4TuKElbx2NPcYlG1z+LRiZ9jb9jCZrk+bGM?= =?us-ascii?Q?kXM1b8eLda8CZdJKSuE/TfnURjSpgRYokjHBQNG2zcYtTsWQ8y7xq3AQ82MR?= =?us-ascii?Q?Gu3cYoL7l6uZXZRAAnds1BciIa9efbYXYQFW+9bDauV1i3zGisA+8ym7FHJS?= =?us-ascii?Q?AmdLbYxMCNswQCqNMxEkyy6s1Q99bteSs2MtGZzuUqY4sfwPDQMY8sdze2vG?= =?us-ascii?Q?q6IBjD50aJ81jHqlSSJeeZuOh/DDs75St6iNwA9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yLbgjPuwzFtCaRAaeVSisC1eIBNySv04a+XA3iCZrz5FYxRVq?= =?us-ascii?Q?FbYjreVXKps9/TpnPNOg83BA6RxBweU0dJ/ZLquqtU1yGfoVqFHiP5pQpNz7?= =?us-ascii?Q?TcZ700NJx2zMBKX/xi8RxdLAHsdSzjsj1Wa6t1uXJ0R8r+wNsgEcsZW0Xbvy?= =?us-ascii?Q?s64i8Y1gzMBLgc6+EVqgP2Z0M1+7KBmqtEAXz0iPoP244Ar0z28FT8K8myXI?= =?us-ascii?Q?NEMQrgQsDV5SCd+yrOctxJUKtqxJXuBPkkkp57DO5k7cn0mG2Z6WQD7Bahs/?= =?us-ascii?Q?1WPNID+uhaQwpYxxOBixoFMXDnhGwLY0kwfzK4nkoZ2gWEy6c6szaX9rb6ee?= =?us-ascii?Q?pFLZz+mizQ+Uu3DIt91rEEsnEXYkCXCprDfMXPMO6f8N+7nhi6FnWd4N5ckz?= =?us-ascii?Q?HTBKM8eypSYlzjNamYm/bmg=3D?= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: BYAPR12MB3078.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 5aa5047c-bed7-4ce3-8cdd-08d9eba9a7d8 X-MS-Exchange-CrossTenant-originalarrivaltime: 09 Feb 2022 08:53:34.6060 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: IwYTJy+RV6PoIDDjj4ZRhdoGFWnizs7B56MpUfioAV+EotH6qkZ/WsdvSoUiclV90uZYjCtWEP4mxsk6iSbopA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: MWHPR12MB1821 X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Hi, > -----Original Message----- > From: Alexander Kozyrev > Sent: Monday, February 7, 2022 3:29 PM > To: dev@dpdk.org > Cc: stable@dpdk.org; Raslan Darawsheh ; Slava > Ovsiienko ; Matan Azrad ; > Suanming Mou > Subject: [PATCH] net/mlx5: fix Committed Bucket Size calculation >=20 > Committed Bucket Size calculation tries to fit into 8-bit wide > mantissa field by setting 256 as a maximum value for it. > To compensate for this increase in the mantissa value the exponent > value has to be reduced by 8. But it gives a negative exponent > value for CBS less than 128. And negative exponent value is not > supported by the NIC. Adjust CSB calculation only for values > bigger than 128 to allow both small and big bucket sizes. >=20 > Fixes: 3bd26b23cef ("net/mlx5: support meter profile operations") > Cc: stable@dpdk.org >=20 > Signed-off-by: Alexander Kozyrev > Acked-by: Viacheslav Ovsiienko Patch applied to next-net-mlx, Kindest regards, Raslan Darawsheh