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 6AF4845BB1 for ; Mon, 28 Oct 2024 14:13:24 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 568C2400D7; Mon, 28 Oct 2024 14:13:24 +0100 (CET) Received: from NAM02-BN1-obe.outbound.protection.outlook.com (mail-bn1nam02on2044.outbound.protection.outlook.com [40.107.212.44]) by mails.dpdk.org (Postfix) with ESMTP id 5B523400D7; Mon, 28 Oct 2024 14:13:23 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=saxUP20IjUW+FTi8/++Qh0zDhY5tn62/WlgcG0RfiJlixIO9T+PE4STDY3xfeKGqTNymf68YLgsVR5AqDmW+QRmQUjVTxH0HmRfTsRXtE/uhGLKquZrbvq7pSv+85d3eMVFnOV0vt4NUsFLaKDeJX7r4MKuGieKvFQUerWVFofSAln5gKteXg0r8vAuw1WveGaZhYAzF24HRsNwawu5K/x9+z6z7cJJRaWmEVC7MFgp4aWTH6m4C5YLevSiZjBHcty5qypqs358GAYO8ErQWl8OFGlOi1bEaiuoyQNhqLmQuYuA5xBvjUckKy0fGBhz6SVFML7cSiSLpPcKVIvZHYA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; 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=1HssNvk9huyAj9w4ZpnHolLbCZAxv0L0bSw7fhego+o=; b=SLDgZXS6Db/gu9gqn5j6LrY33wiUCfWz6SzTM/ROo/XGtuVZc5b6P4Ch08+MBgOHZrRbY9OS6uvuQICtCC0Z4l9y7YENNp2SDU1dkFVBJD6dT6qD+00eQSTXkITPr4LDC/NNUolP4GaCS0u8EHTeh/G83xjIFuyiHD6xZTUZm+PcOj13COVa5/hvwMDvPMh/KHZDbOMPECiWSUkN9SRUkdDnD1KmdDpiZ2xhGB1agLs8Pur8u7BYDuSVMwKFNdwTrTh5X1jWUFHXxUC3+5OKW7jp+W9av96oMZCuIMmcviMs7LqNBrVsrDAXMwPmJR5kNmzakCwEjd9mW7Dy7jn8Aw== 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=1HssNvk9huyAj9w4ZpnHolLbCZAxv0L0bSw7fhego+o=; b=PowFYHOp/1K3RJA3+rCfII9BH8Xov+RjpMeI3uEEUMGCMN1g6ngYvC5zmxK3bWL/LOeg3erKkqTX8OUhPAuOsjI49bW8MbjK1N3LWqUOl1S4Z4U7NNjiMjGvzB5q4lcvZsSaHl5zQEgpa9d9HehuC2Ar6NFrIW0eGmA5UNPoUxhOJr9gTuk1sPNY+3NExuQ6/B9dOZ223QHc+WYpEU4GHTTZlQW5Dasz1qIKARG5ufkGaSLnR5qUnQFupjE8z/F48zaXmaTXd03RSPFWJUDhKbfjGyY5vFVQgGFWITWFENzyDBB33MGFqOIwrXxTrqmFpCvwt19RRTp8lMvHdWtqow== Received: from CH3PR12MB8460.namprd12.prod.outlook.com (2603:10b6:610:156::15) by SN7PR12MB6888.namprd12.prod.outlook.com (2603:10b6:806:260::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8093.23; Mon, 28 Oct 2024 13:13:17 +0000 Received: from CH3PR12MB8460.namprd12.prod.outlook.com ([fe80::2e9d:7265:3b84:59b5]) by CH3PR12MB8460.namprd12.prod.outlook.com ([fe80::2e9d:7265:3b84:59b5%7]) with mapi id 15.20.8093.025; Mon, 28 Oct 2024 13:13:17 +0000 From: Raslan Darawsheh To: Shun Hao , Slava Ovsiienko , Matan Azrad , Ori Kam , Dariusz Sosnowski , Bing Zhao , Suanming Mou CC: "dev@dpdk.org" , "stable@dpdk.org" Subject: Re: [PATCH v3] net/mlx5: fix potential memory leak in meter Thread-Topic: [PATCH v3] net/mlx5: fix potential memory leak in meter Thread-Index: AQHbJRP8athjEZDTsEylzGbNc4GIxbKcLA3F Date: Mon, 28 Oct 2024 13:13:17 +0000 Message-ID: References: <20241023062216.967742-1-shunh@nvidia.com> In-Reply-To: <20241023062216.967742-1-shunh@nvidia.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: msip_labels: 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: CH3PR12MB8460:EE_|SN7PR12MB6888:EE_ x-ms-office365-filtering-correlation-id: 01efd689-d7c8-4f2f-f707-08dcf7524997 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; ARA:13230040|366016|376014|1800799024|38070700018; x-microsoft-antispam-message-info: =?iso-8859-1?Q?m1WhIWJ3RPcd/Zv3sMTEES51E7ARTJ3BZYTtdP6H8ydpwjgmk+cbV3vOfZ?= =?iso-8859-1?Q?HcSUit5nvWsBWvCr76OxDj1jxuZihAl1mZ46O8rnJF7YxqIJ9PfO3FBHmD?= =?iso-8859-1?Q?d/yPPC+QOEpFMbs+T/mvJF8dyIDwgolypt6xY7nyt7cesEgMXdiiGeMDny?= =?iso-8859-1?Q?A2k7nz2pe7crRjdTaAwJ6h3SVQkPLituxFAuTehg12nrdhzwOahCDiKcnC?= =?iso-8859-1?Q?dL+rpltj7ZmZbZdUy/Fenvx9nHf0kct/pWy/igetDW4nWBnXZPLq/H65nA?= =?iso-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ZtLS30QGCdVG+TBzcnByMz6p4?= =?iso-8859-1?Q?PnO0jF6olrOdG0PhLBWVH/e62XLF1Om5xTzGYzuwmOKLFA+MC5U60HDi6y?= =?iso-8859-1?Q?aWXa0NcuJkILqrVk8qA3PMbslsMo1UhLA7J/cKGF8HS0mtZYlT6GT52p//?= =?iso-8859-1?Q?+jKjYPb/14OWZXpyRUlvFStHbAxYHysCMk8vDfx3AozHBg1M7gqL8VYosy?= =?iso-8859-1?Q?xux9VYkfy5PJWcpL5n44lsWAXmmKM3Wa5KjRkv8wygTWiYVJ1+Wtk=3D?= x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:CH3PR12MB8460.namprd12.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230040)(366016)(376014)(1800799024)(38070700018); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?iso-8859-1?Q?x4DGX2phRe6E73b3ZgRjRMXmVi9ZZCO25He2rRgNm8NxO2JGQ39fpPf2Rd?= =?iso-8859-1?Q?DzCTABwh3x9R0a1IayEVE9PajFEVhUHwbOn+u8wu7Gis/zIPdgGZ2Alx4e?= =?iso-8859-1?Q?Sxr2FxkfOFquUWsddJdqKhT3I3Kkl1q6yZldRaCZHoFo7V+652UvU6Kd/j?= =?iso-8859-1?Q?hcA7cbleQiPsweTHcmYC7BsurRU+eMluv4XMXBiW57QHvKIV2xQCEr0H5k?= =?iso-8859-1?Q?0K4mXQ7lhRdS6khRas0PhQ2yCaB9ByDrNCCZgLUlWXqoxISG+3LKcptai5?= =?iso-8859-1?Q?xmxuc4mxcEPZiERsAluyD2aFek/KCVyfmRLXC2YDKJuHD0Hgu0qzA31X2F?= =?iso-8859-1?Q?0TQrozmDEVhSNyxUD/0MjrwLf9Rh8Ke7EAoG16QXsi6sqIfmVMMS1WPGIF?= =?iso-8859-1?Q?DfxDjGWZgvhBz6Ezap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=?iso-8859-1?Q?RUUzouW0hrIo2dOHO8IX4kh/67QrTKh7a+UIKG/hu4JuvQj8R6xQTfKyYb?= =?iso-8859-1?Q?6z64uT4iwIeSLpIvNtAEZiSgZ6e0Md5MhoS2BpmVTpmQES6278NWiRtWeT?= =?iso-8859-1?Q?1nN1wlahVffo3w9qpOGElCdpfFdMBraOYIb4wCttQJrFFOTjVjO69LG8Ie?= =?iso-8859-1?Q?PmZ7eRKeHyb7q75o1cIq8/an/lGW/TQ148VkhdkaGZUHrWQ+fQNGyJaqHD?= =?iso-8859-1?Q?tZ4f3FMUbwMCsfXrG880lYfKCTB/bYHe/XSt19qXD13yjv/Z60tL0elQUm?= =?iso-8859-1?Q?QkdgblXjp8D3Q=3D?= 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: CH3PR12MB8460.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 01efd689-d7c8-4f2f-f707-08dcf7524997 X-MS-Exchange-CrossTenant-originalarrivaltime: 28 Oct 2024 13:13:17.3646 (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: 2Z5vck4cA4D0Y6RLGj4ScdFInT4c3t+eqhuH9AlPtAtmPL6sFveJgqiXHfbhR/GwScJH6l7E3siCo84kprbUgg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN7PR12MB6888 X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: stable-bounces@dpdk.org Hi,=0A= From: Shun Hao =0A= Sent: Wednesday, October 23, 2024 9:22 AM=0A= To: Slava Ovsiienko; Matan Azrad; Ori Kam; Dariusz Sosnowski; Bing Zhao; Su= anming Mou=0A= Cc: dev@dpdk.org; Raslan Darawsheh; stable@dpdk.org=0A= Subject: [PATCH v3] net/mlx5: fix potential memory leak in meter=0A= =0A= When meter not enabled, avoid allocate memory for meter profile table,=0A= which will not be freed in close process when meter not enabled=0A= =0A= Fixes: a295c69a8b24 ("net/mlx5: optimize meter profile lookup")=0A= Cc: stable@dpdk.org=0A= =0A= Signed-off-by: Shun Hao =0A= Acked-by: Bing Zhao =0A= =0A= Patch applied to next-net-mlx,=0A= =0A= Kindest regards,=0A= Raslan Darawsheh=0A=