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 7183E440E3; Mon, 27 May 2024 13:37:45 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 60083402CF; Mon, 27 May 2024 13:37:45 +0200 (CEST) Received: from NAM04-MW2-obe.outbound.protection.outlook.com (mail-mw2nam04on2088.outbound.protection.outlook.com [40.107.101.88]) by mails.dpdk.org (Postfix) with ESMTP id 57314402BD; Mon, 27 May 2024 13:37:44 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=UQlMgYQEXAQ+1VeURn+RMqR5EfhZb2gfX2xvR0E5x6y7iZ0JWlo/mx6WXjhLi3kKQb27oWVR+5BRJexEhZoAwcSxpJ9mFhZ4ud8gLpficKWgoHclGUgeNVTAab838exbIwqn0ovnrDp6kgFYjLgWNslrx0UiPRqT14TkOsW/L3h34G2pTnpgvW3XLCoQV1toWe5wMYSrr32jGqPJdytSI7/0e6/eeUvmoNqmo0n1wFW5CmA+LTZxyuUinlB3y5brHKSyKdhzxSUOkiA6UrE8CtO0B8U1WSQdkbp/KMYbM0XggL5BB2JBTc1/owzogvMJ/m+MrTH9U5q0vPqwizVZkg== 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=qU/rbiW1W2evzCwHfkdoaowIW7oHP6L8DaRwWjuQhG0=; b=he+mCA2h4z/xx/ugXffx+A7ZcWvxTtcagg3NCbt7I1N6OgUammzbj21tervfjwTW8zVera6OIpkch42MM4pAnvE4eFlv17wgGsQZJ3R4TOjnLRxJZTFOIjQCwXYeUtwcPZp5Ye2LBNjkKEEJ9prgXoqlIdc+3u8MytN3bGCUjR+HDwqNgWxVM2ynTEROlDVNgH/uDfJ7Cg5EtzpNOgTG7HBdnyA8LVIqMwnO6H3rqP6Efr4iLrUTiaKSFngx8xAgImoj2I+XoevQwn4xhLKYxHRYqCs9VpymuFBaIQyByS2lEfI2J1nTiFiyxyYTRTNvNhiVX5okmX3CdETqlCCPfg== 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=qU/rbiW1W2evzCwHfkdoaowIW7oHP6L8DaRwWjuQhG0=; b=an5zM6GdbeUjCcHlCBYPMh+VjeppZzY00U6tNqk1Fifgy0grwyzBQArowB/figGB1iz1WglPYem3Ago+Ad7L7Q8kaMbbypmtzyipXzDYLKYINZt5kR0XaTrw1n8XAKp0JZ/+YpQT7jQpLqLvx+Ua19euEL5ZxIeEz1zoIu9LcUfSku5fxGxfNcSA4jZt6B3cAazrpqveyP1+w6PH5EncnB90mJyoxTDScb+UKmWWwlpknjfxPdYRid4cLGST1BJynfqdBp6eatQNpkBvCilADlnaZKixVYRlvOsHAD3ufVaLSpFlE2tlSFV/ldOT9k+y0iedc13TtTNbbfas7IC3tQ== Received: from MN0PR12MB6056.namprd12.prod.outlook.com (2603:10b6:208:3cc::12) by BL3PR12MB6379.namprd12.prod.outlook.com (2603:10b6:208:3b2::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7611.28; Mon, 27 May 2024 11:37:40 +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.7611.025; Mon, 27 May 2024 11:37:40 +0000 From: Raslan Darawsheh To: "Jiawei(Jonny) Wang" , Bing Zhao , Suanming Mou , Dariusz Sosnowski , Slava Ovsiienko , Ori Kam , Matan Azrad CC: "dev@dpdk.org" , "stable@dpdk.org" Subject: Re: [PATCH] net/mlx5: fix Rx Hash queue resource release in sample flow Thread-Topic: [PATCH] net/mlx5: fix Rx Hash queue resource release in sample flow Thread-Index: AQHaqseDBxX7h/LO00mhKrCe2SFD8rGq/spd Date: Mon, 27 May 2024 11:37:39 +0000 Message-ID: References: <20240520150709.39835-1-jiaweiw@nvidia.com> In-Reply-To: <20240520150709.39835-1-jiaweiw@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_|BL3PR12MB6379:EE_ x-ms-office365-filtering-correlation-id: 9b3ff4d6-975d-461b-a025-08dc7e416a3d 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?UGoYkbicpamh8ybXZNbZRG1fEoMvXtdgmiRpPjj8OQf+58XLwdMnBmnwca?= =?iso-8859-1?Q?r9Uv6NYhB2iWSkOCVScQLux0rADqtDYWk4OVCjA3ygWqEbEypb2wxcCsDS?= =?iso-8859-1?Q?0p5riMvCAPUiWCs+P2mS+OGd+FQpNyC1xkT9BeBF/x60XQLNbJCB6rVxeW?= =?iso-8859-1?Q?kFHjMqbp3rI6dEqzDoLBBKgeEq4KiMuCRcscQhCIqOgXH+Zspzu9JkSZbe?= =?iso-8859-1?Q?5poDDY5xoeOBbSUr/dBXSqFOo7AVdeGljjUj1Bz1l9SRKl9B1z+6hhp5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juXANgOgbpq5zuipc03?= =?iso-8859-1?Q?ZryfCHcHAot506RKAIPue+CZ9h4NjVH44NkEogCdPZCfp5dctr6qJtIILI?= =?iso-8859-1?Q?c1lTM9hiX5Mq3yW+yKcyoKz6cYtEJce5BXepR+jWeSpuhRaA0T482DwC4o?= =?iso-8859-1?Q?7Utq8onCCeujWRi1gw7dkiWfdQsRdDDLTjE2Zcmw0gEkmZNJzd+op0eKFE?= =?iso-8859-1?Q?3UNsH5uwYRsSMgUDN3hvGaF0Uk7RybbA=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?b2r3BGM5P1+zYdGoQy6HJ4PS8NpF2luSBUHlPfLBSb4RBowWkEo+5Uikh5?= =?iso-8859-1?Q?WDkQz6lISJo/hYaOzwKY6vuzm43Lzf7QM/lEoEtM4EoxrMpX/UVS7Q/xNx?= =?iso-8859-1?Q?kb/vgD2LDE+meX8B2qvSM6agrbNFOdBkNQs4pJmB8JB5Eq2rCFIjWz72M6?= =?iso-8859-1?Q?Og5ba9dKIslzjuCesccyXbLuZIEtPUWFg9wuMkzZF6MI9MHXsaop6X9dWp?= =?iso-8859-1?Q?cBfkJ97234iht6rWtnY1RtI9Wad26tOUxMQKHlph53+a+sOhiNapHyqhSM?= =?iso-8859-1?Q?kcgx3eujSSWHJY94ua5jfVfzUmSHxcYIRgQBAUe9ou0v3TftGj/vAyfMci?= =?iso-8859-1?Q?u5WhyZujb1TLdzsFaWcNZH+CADnBDwAtNjVsGJ2Ae+YNiCanlSie+zc/xE?= =?iso-8859-1?Q?qdc45/K6NivyAeI/5vh13GIjpAn4uu/TsNaZ7LjR7b1L9nVSF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Eryi22bAzJBBUd7KCvS9Hh8O/3y0GkU?= =?iso-8859-1?Q?c981KTTfs9PtZuz8CDzbgfwrc6cKwyYRakx2VnJ9NePWq24oOhlYZGgTV+?= =?iso-8859-1?Q?yL2bcezNvurZ7mhCBjvfA8o22HX0cmM7uCD/6JrIlKH/cT2CRsTxR3TupD?= =?iso-8859-1?Q?bBliIGFJFKRoaQGsUn0m8KMl/zvwl4tlubgBP9jTfcpMfGwrzfvp5RLfPV?= =?iso-8859-1?Q?Jprp5aOgFL4e1RFkL7HY9KVuflpxwImxGUJR2jvlGAb3JN2EksO3Kl3LGX?= =?iso-8859-1?Q?47HeBLjOukQAlSxd47/dc7VuRQ6WxnOKSD?= 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: 9b3ff4d6-975d-461b-a025-08dc7e416a3d X-MS-Exchange-CrossTenant-originalarrivaltime: 27 May 2024 11:37:39.9631 (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: V0Fv3l6B20j+EMlW3nHX8oH4ll8Pr2ojQ0ODz5FtICmCf+YPi/ehJ/gfgw25JB95rxRoV8c+h4Dmy+uhqigMsw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: BL3PR12MB6379 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,=0A= =0A= From: Jiawei(Jonny) Wang =0A= Sent: Monday, May 20, 2024 6:07 PM=0A= To: Bing Zhao; Suanming Mou; Dariusz Sosnowski; Slava Ovsiienko; Ori Kam; M= atan Azrad=0A= Cc: dev@dpdk.org; Raslan Darawsheh; stable@dpdk.org=0A= Subject: [PATCH] net/mlx5: fix Rx Hash queue resource release in sample flo= w=0A= =0A= While the queue/rss action was added to sample action lists,=0A= the rx hash queue resource was allocated in the sample action=0A= translation to create the sample DR action later.=0A= =0A= While there's a failure in the flow creation, the Rx hash queue=0A= resource of the sample action list was destroyed in the wrong place.=0A= =0A= This patch adds the checking to release the Rx hash queue=0A= resource after the sample action release, to avoid one more=0A= extra release if there's a failure.=0A= =0A= Fixes: ca5eb60ecd5b ("net/mlx5: fix resource release for mirror flow")=0A= Cc: stable@dpdk.org=0A= =0A= Signed-off-by: Jiawei Wang =0A= Reviewed-by: Bing Zhao =0A= =0A= Patch applied to next-net-mlx,=0A= =0A= Kindest regards,=0A= Raslan Darawsheh=0A=