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 F064444147 for ; Mon, 3 Jun 2024 14:00:50 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id DBD4C42E4F; Mon, 3 Jun 2024 14:00:50 +0200 (CEST) Received: from NAM02-BN1-obe.outbound.protection.outlook.com (mail-bn1nam02on2055.outbound.protection.outlook.com [40.107.212.55]) by mails.dpdk.org (Postfix) with ESMTP id EB0E642E1C; Mon, 3 Jun 2024 14:00:47 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=j7azWRMuR6Znj7dXPAlWkQqos2JGqc7k4t4XY6WN4zHSEQM3J8AT67pBbo+7Hew8rxJMsbvmSjEO+vQbRVtwmz984jKxq7UCycG4JdYXQnm65U6+2TuxDfJ73fb9u+QsZHgMU2mynSL/wHgEA9E+eyBH2ApXkdW8u6tV4qCM0uJphem0VBihlpvWYD/mglbQ4E5u5wlEEGoM0YVCB8aBaLrXnV9DaqJ7wctnm1stDM3T1NT9abi1hzyi6p9wecFUdUl/mvjmZzFUkG4IYZ3lR22M2yZB8ykOdOTMfDM6FlR0H0LOafEGYqAISWtBM6oGbm2yH4bi1ptZ8ZTyENRNGw== 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=g1clEMZtHPo6B/7r6ggwl0FODE0ttnnsKsWT5fMUZak=; b=kAHf/fLDSSKR6+Y0RwNtsKjQrgLYh7l+AAcIil5f43vBYJNQcsU6JBDdEqBvqWpT0IXZnfKPBm2Xb/h5Wllmu8BcGNtNq8AyTjSgSYQAzEbaVoFJUj0Z7q9f649E+IkhjEuwzBSPKiesJyM+8Vr8dqxhtj61pwnKhdGQCHEhg/7piAj8B8HQ/BoX9P5d/70L4nunP/Nc8izPgZif88wzmfg/6ee6g1RskR8+NwTGxRPWG5PeDexX14ohIehwfdxSwV4bTJ5I/nZ1H5/MdXJoi0VEGuaGSAiSUBF/im16qy4bkNGl0FJ/ZBNZuZ21eJK+AlV1+qLcAOTqptXFMpaMvQ== 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=g1clEMZtHPo6B/7r6ggwl0FODE0ttnnsKsWT5fMUZak=; b=fBqZCWGV5DuRnHvi1lxalgCfqzifDF1l1zfnBXLWJ1/etTtLbRDJU0DXnnGoUwCF4cUD9LjfglYcuHbM3Dmtte6vaSIt9RQwHTXPwOXMMrEBfUBExJZsbl/pXci6HK4viKOD/P8GeW5f6cRArJmBe0wB2hX2MdppboSO31vvHO/ldEncFISI4iGrhpiB/qqMG+tsr9GKeNbFPAM95lrdJeC2RpV50wgyQh71d4sVKO2QZCxdIK+nhr/wULrYPwdSNVY180DYhktX3mh19UBgd8AXJnjOUnMgWb2mAwgQO+8J8IPpUnQSUND1Y4xSefXliiO9lmdjmACvtYDCYKI0xg== Received: from MN0PR12MB6056.namprd12.prod.outlook.com (2603:10b6:208:3cc::12) by IA1PR12MB7496.namprd12.prod.outlook.com (2603:10b6:208:418::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7633.22; Mon, 3 Jun 2024 12:00:44 +0000 Received: from MN0PR12MB6056.namprd12.prod.outlook.com ([fe80::4b75:36f4:f278:fcc0]) by MN0PR12MB6056.namprd12.prod.outlook.com ([fe80::4b75:36f4:f278:fcc0%4]) with mapi id 15.20.7633.018; Mon, 3 Jun 2024 12:00:44 +0000 From: Raslan Darawsheh To: Alexander Kozyrev , "dev@dpdk.org" CC: "stable@dpdk.org" , Slava Ovsiienko , Matan Azrad , Dariusz Sosnowski , Bing Zhao , Ori Kam , Suanming Mou Subject: Re: [PATCH] net/mlx5: break resource release forever loop Thread-Topic: [PATCH] net/mlx5: break resource release forever loop Thread-Index: AQHashHAcsVZho3ZxEyMwxp8pRNObLG19wV7 Date: Mon, 3 Jun 2024 12:00:44 +0000 Message-ID: References: <20240529214632.1980988-1-akozyrev@nvidia.com> In-Reply-To: <20240529214632.1980988-1-akozyrev@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: MN0PR12MB6056:EE_|IA1PR12MB7496:EE_ x-ms-office365-filtering-correlation-id: b5e984dc-78b8-4e4a-65f6-08dc83c4cc47 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; ARA:13230031|1800799015|376005|366007|38070700009; x-microsoft-antispam-message-info: =?iso-8859-1?Q?zYCEXJ7jT6o6D7qTTsnMwBjq0ee14cWa+zKnX4Lst0rnvSMwNEi0xn+IzN?= =?iso-8859-1?Q?ICRmw7ERwGOixRjdtStzFKYmoS5GoCssaQ0O6hpI4YbTYopKVg78fgQyn9?= =?iso-8859-1?Q?m7SV8Y14YpYBw7kCPEk3+sQ/H8g0xrMtYUQa56OkYg0lGzbLLK9HzsgPob?= =?iso-8859-1?Q?8EmWOUNJrW5+Uafkpo/T3mpXpX/+H9GyBW0pBMa8Pn7meWls74gYPQbmhS?= =?iso-8859-1?Q?l5dIM9YmH0MRxoQGCR3E7pUgy04EPxhy0CnDuP24ku888KiE2Ddnl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gav7+IhnbpEa6sS5GtzhsoTq+RC9xxKwDlCSer+CAE04k?= =?iso-8859-1?Q?z3X/hBRnIUsMT7pc5YOS8A25jMfVkd5HVeVQvcdJSfS8m4tcS0NHmsKcn5?= =?iso-8859-1?Q?1qBBG3D0k+eEz09vwHx0ziXTG9+Ab5VPqECAtiSCrQHQ1CAcGckWhPmQxx?= =?iso-8859-1?Q?IJocCINagWmiEcvxRpE738/d5FOs5D+SwsvHRroVZyTJkjWFxYeEvZLbra?= =?iso-8859-1?Q?V9TKVdil6PucG1eSCFcE4rMNTHORBBnA=3D=3D?= x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:MN0PR12MB6056.namprd12.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230031)(1800799015)(376005)(366007)(38070700009); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?iso-8859-1?Q?5g62bXHwCBTmgcB+7JlgN2pMqyAXbwMKB3R7nA9lQN/C0PNuzobw3v1cTj?= =?iso-8859-1?Q?SUnzdmw7gjkYWKtcv5CJEhVDc6vFlDQRAnJqp311Afrcg+KuhcQuBgoD3w?= =?iso-8859-1?Q?10ygFGEbI35Wpgza/kNlfG6EuSiA+2iHztftz50d1f+Uu4qtV/nJ74A2iQ?= =?iso-8859-1?Q?TOoPVxLtzIUhKmWn+ZEWmn5b/qyWnBn+1BeEHZue3wOVyallvmjPV9weAx?= =?iso-8859-1?Q?k/8tqFIISMiJ+RGm84CE+KqYyAARzQMmikAvnMgPvo1iubvzeth6rLMwkk?= =?iso-8859-1?Q?tcz3AS1nKsFV+BXOeFUK1p2Mlo2uiVE49Q7XieQnJ49r9QcAvz5YSBizJ0?= =?iso-8859-1?Q?ZasPsSOKE6AYlicd3J3SyhEfZxS6JHomELPhOg1r4QP8RJRgORrQbMLlyX?= =?iso-8859-1?Q?mFnCf+v55TLfEmRmVJHRS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1kHkd6aYKUIuJ7ozGQVBDIolj5Mds/OOKTGynUpOd6iLyRIdR2vxDD5s9L?= =?iso-8859-1?Q?IDGqQTK9BoCSjI4a47PezP+BFDeVSbDqtkY728J1LbJM5awxBJcDftRrkC?= =?iso-8859-1?Q?yJ4o9iwgNGpGapMbekk6ViQUBaz1ffsMab4nufWUBcsu2t1Bjo3nEdSabd?= =?iso-8859-1?Q?+5rokHprWD4Mz2Hgr6LCU3XE0Rs0ybPd0xArrIHMZXvoKYiau8tIKeSwgi?= =?iso-8859-1?Q?brZHvfsnm/vEM3Dlsx5IuWhDSulE+WZYah4nzaNmmwjp93xo+3sjwwxh7e?= =?iso-8859-1?Q?QGwsFnlSfcSWE=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: MN0PR12MB6056.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: b5e984dc-78b8-4e4a-65f6-08dc83c4cc47 X-MS-Exchange-CrossTenant-originalarrivaltime: 03 Jun 2024 12:00:44.3292 (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: DIbebjMl7rSt6MbimWzI/XEB9yiW5nFbDzNZIa09KyMH95EMT55kHqD2+RYUar8QsDJArkew35yGki2NB4kywg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: IA1PR12MB7496 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= =0A= From: Alexander Kozyrev =0A= Sent: Thursday, May 30, 2024 12:46 AM=0A= To: dev@dpdk.org=0A= Cc: stable@dpdk.org; Raslan Darawsheh; Slava Ovsiienko; Matan Azrad; Darius= z Sosnowski; Bing Zhao; Ori Kam; Suanming Mou=0A= Subject: [PATCH] net/mlx5: break resource release forever loop=0A= =0A= There is a loop inside the flow_hw_resource_release() function=0A= that tries to free all the template patterns and tables until they=0A= are successfully released. But some of the tables may be still in use=0A= in case of the ungraceful application termination. Which causes the=0A= forever loop in the app on the exit. Don't wait for the tables release=0A= and try them to free only once and proceed with the exit.=0A= =0A= Fixes: d1559d66ed ("net/mlx5: add table management")=0A= Signed-off-by: Alexander Kozyrev =0A= Acked-by: Dariusz Sosnowski =0A= =0A= =0A= Patch applied to next-net-mlx,=0A= =0A= Kindest regards,=0A= Raslan Darawsheh=0A=