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 4155E438FC; Fri, 19 Jan 2024 11:07:41 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id B96624029F; Fri, 19 Jan 2024 11:07:40 +0100 (CET) Received: from NAM12-BN8-obe.outbound.protection.outlook.com (mail-bn8nam12on2040.outbound.protection.outlook.com [40.107.237.40]) by mails.dpdk.org (Postfix) with ESMTP id 943FC40279 for ; Fri, 19 Jan 2024 11:07:39 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=iB4PH6vHsQ+DOqL1u6e/G716AJkk4tTQPGcK6m0AC1emksJQUrwKo787U4ZTr6JS5NOMhe2UvP3dlaL3h3QfbLjtg5APB8YKOOOtC4eQ2QapTjx8WlAiVcAyIaaa6zddfHVu0Kt+PElmjKo89SNoZXtYD2vOm1ZazGbwCpMPWVuD9kBB4PjebbY5tLbOcVh59b9JguU7i5nJcm2cxp5655Fb0/wHRO5eJr8DdUGOdHYCd2iq/BtvhtTmBhjGTgJydWuZrwokvwa+rDBmOjyY81K6kg2McvVX/CxrSm9ttTje1X4FwrcXRA5HuDp2F5SDsCOa4x3ax9dNw0xANwBSgA== 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=NfZd/LwPKaAIAtkyjGO5VYdDllXU7tAgBRbuGemDzyw=; b=J7w1KshRSrRM71swbegkwZHqzavQ/IZOpH3RQFXtK2h0mP6utA186R1u80N4PFlfmcUHaz10/TfttwpmKgPgtkJwQaUyzDfkk4Q4YqxIrlhMA8GQkIMdYSkaKb0yAvG8HiZc0oeDdRXLteWl/vwn3MruQiS0s2RG6Pji/IZYq5NRw+klzA66hMgMxdcalFypOREt0ReNwGFAIPkuWsnmOEtnK/vK/vojmZXmd6ed6B5u8tgc3rXKbHIAERQ3z4hN3qAAv/ahtDvO2jAFOzTBuIjX6kkmJqOu1894ETZQPxyv/elJeSWM20p4J+hVpY+wAsZ7W7KPg4kYasw2qBT62g== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nvidia.com; dmarc=pass action=none header.from=nvidia.com; dkim=pass header.d=nvidia.com; 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=NfZd/LwPKaAIAtkyjGO5VYdDllXU7tAgBRbuGemDzyw=; b=Okj6zk+Ir1HGVyDFx0lthXHpsd2NUvM3CCQDjbOsIlqqCtQsnTnFYoU2P0c+koivPPlDixYqK4wXPGJMMs/ULXmH479qGVW8uLPoqOVGDPlNmV4Seqbt2p0XSZbBZwZC8VRPc8Bt8Lz36sCURX01wsUYimErhcDrWusboHMzDAibAKS+LrvwK0ZJGLEnCtqvX1+5a/GRcZG+KUhVVZdKi1O9qEeHUvwaGWx9Hb8JsDo2eYM7WpBNR74+XBwUyO5eoBkJJEVfi9EMj6AET9PaqeNvdp1Ybwvgz8pwqUriWLVWPgX66eUxG2TZ0tkbIS+opIvE13RFtiDonUXyr72vWw== Received: from CH3PR12MB8076.namprd12.prod.outlook.com (2603:10b6:610:127::11) by CH0PR12MB5121.namprd12.prod.outlook.com (2603:10b6:610:bc::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7202.24; Fri, 19 Jan 2024 10:07:36 +0000 Received: from CH3PR12MB8076.namprd12.prod.outlook.com ([fe80::a212:89df:9c87:cadb]) by CH3PR12MB8076.namprd12.prod.outlook.com ([fe80::a212:89df:9c87:cadb%6]) with mapi id 15.20.7202.024; Fri, 19 Jan 2024 10:07:36 +0000 From: Slava Ovsiienko To: Stephen Hemminger , "dev@dpdk.org" CC: Konstantin Ananyev , Andrew Rybchenko , Dariusz Sosnowski , Ori Kam , Suanming Mou , Matan Azrad , =?iso-8859-1?Q?Morten_Br=F8rup?= Subject: RE: [PATCH v5 5/6] mempool: avoid floating point expression in static assertion Thread-Topic: [PATCH v5 5/6] mempool: avoid floating point expression in static assertion Thread-Index: AQHaSi7fVrQ40v4W202AoF5SpiAvHLDg6iKA Date: Fri, 19 Jan 2024 10:07:36 +0000 Message-ID: References: <20231111172153.57461-1-stephen@networkplumber.org> <20240118165315.63959-1-stephen@networkplumber.org> <20240118165315.63959-6-stephen@networkplumber.org> In-Reply-To: <20240118165315.63959-6-stephen@networkplumber.org> 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-traffictypediagnostic: CH3PR12MB8076:EE_|CH0PR12MB5121:EE_ x-ms-office365-filtering-correlation-id: 000a83d2-f0af-490c-02cf-08dc18d67615 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: FPctq3J1MmncO+w9+LrNAF9o8873MixtlfUWOdKNxzS7ds/m85V1Ha/3C9dTYYm//Jsg0QbVj8PaecliMtmJtCG8cj8RiFHtl5d1yLXDZGZOrUuVPonuYbfdcPPxtpDlttJhFTNwhCqhBq8RPyF38ppcfBlaZ45NaQdCi/NS/3TjMDIl3nmqJXeZib6WDiPt+JTgpHvq0uS9svBf4Kz2JsoAex8TzmhdRUmqvRsEGS1B1JNOWQCBpqAgOe72mbT54Ns83fVvkrqqETJo+WBBwEKuRRBJlwa6tCcGztkN26+kYRUsDMYHp3mwoZGockYkmH5YY6ZQMt45894LWpLST0E/4lI6xTuPE7uNT6C0QIar0Dl5LjgukkOjAa7hUzPKK73xC1eEGjTR/6aJk6HLD6zE7HWlQL1xn4pPBMXiQMLpUbtkXyZOePZIVntP16kdip4bKPGsS6bk/DaD97smFPq6AfsKgJMYiYoMBzilu2XjKu/JQTqW2p6n+N0V60e88m53MBkrOUTaFVK5YS0j56ra9vj8O84mcT5+cGZQdu5Dbr07D91DHjl96L4MFkafCnrytJSjFQYUiEJLAvcFS5BrYi/d362WSyqHKKp7J9PZnHb0+6on9ZzkKw7NVPLE x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:CH3PR12MB8076.namprd12.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230031)(396003)(136003)(39860400002)(376002)(346002)(366004)(230922051799003)(451199024)(64100799003)(1800799012)(186009)(83380400001)(26005)(53546011)(122000001)(38100700002)(4744005)(4326008)(8676002)(52536014)(5660300002)(54906003)(478600001)(9686003)(2906002)(8936002)(41300700001)(64756008)(71200400001)(316002)(66556008)(76116006)(66946007)(66446008)(66476007)(7696005)(110136005)(33656002)(86362001)(38070700009)(6506007)(55016003); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?iso-8859-1?Q?jVtEVti5g2nm+4BVqrWSQ5J/deBiTf8S1Vqi2k3Q3hdflzfR1edJqaVe0w?= =?iso-8859-1?Q?hK7e7Jk61Dc8tGa4xTa7g/jKAYVYnXtB4MRCnyKRz2nVI3xQkWo5uOndDj?= =?iso-8859-1?Q?qdU1PezsxYSvnhDUhrj8+9VoA+WdTe1J8KAF2fgK4ekpS8en1vg8s4NnE0?= =?iso-8859-1?Q?i8DL3riNoqTmXjiRKuDoJDACj5l77M9Q0Seu9o5BUTTJYxby80V39p7IhL?= =?iso-8859-1?Q?oV4dUsrYQYskGeWxoL0VO4ubql5ULHneB91CX9ycWcD0IKdB5bEtfScDgq?= =?iso-8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odYx?= =?iso-8859-1?Q?Lnyw3DPd991sFzDch+3IsPoeXgzL54f+LLGqz2IMUXo4EioshY8GiPtvA7?= =?iso-8859-1?Q?8boE+qPrbBizPzMMRPNjO39WCKoGuTzFW0AFFhch3D1la4bdxQwFTLtrrA?= =?iso-8859-1?Q?irB3oZ6VUuh/QD1TCXyANWPxOwI/NrgGAFipuplb7Xue5bVborPY2/KdW9?= =?iso-8859-1?Q?MA4jwO86OK2D4JGvXxUNPmDKG4UAgCKIu3SbN9okQbCIQ/TU4E3jnlTr+v?= =?iso-8859-1?Q?BZgML9dVHBCJdCwIby/Rb/If0SYQJzeYd6lg6WGa183OpNmQA25cRx/q6I?= =?iso-8859-1?Q?eJAj4SEIyuDg7nkC/LQu/ds+JJCr3RSS22XNpxktHUo1txQG/WP1a07eZu?= =?iso-8859-1?Q?xTu47O/XNm5EsDGJCMXGTh4jJACJMEAp0H4taGtLsYecjsYnsB6jmYiLSP?= =?iso-8859-1?Q?qLTr14vLwrZelsWyc8mDsLg3MHBzCpSyvd?= Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: CH3PR12MB8076.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 000a83d2-f0af-490c-02cf-08dc18d67615 X-MS-Exchange-CrossTenant-originalarrivaltime: 19 Jan 2024 10:07:36.2532 (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: XuRByPMQTkPq9sgv4f4nftQxxJSQ1cW9xzRj7Zbu9cFyJII9+BbOZB1dryb5PG9havykyPNPQVtTY5+s6d51RQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: CH0PR12MB5121 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 > -----Original Message----- > From: Stephen Hemminger > Sent: Thursday, January 18, 2024 6:51 PM > To: dev@dpdk.org > Cc: Stephen Hemminger ; Konstantin Ananyev > ; Andrew Rybchenko > ; Dariusz Sosnowski > ; Slava Ovsiienko ; Ori > Kam ; Suanming Mou ; Matan > Azrad ; Morten Br=F8rup > Subject: [PATCH v5 5/6] mempool: avoid floating point expression in stati= c > assertion >=20 > Clang does not handle casts in static_assert() expressions. > It doesn't like use of floating point to calculate threshold. > Use a different expression with same effect. >=20 > Modify comment in mlx5 so that developers don't go searching for old valu= e. >=20 > Signed-off-by: Stephen Hemminger > Acked-by: Konstantin Ananyev > Reviewed-by: Andrew Rybchenko Acked-by: Viacheslav Ovsiienko