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 F06B244087; Tue, 21 May 2024 13:22:52 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 7CF5B402BB; Tue, 21 May 2024 13:22:52 +0200 (CEST) Received: from NAM11-DM6-obe.outbound.protection.outlook.com (mail-dm6nam11on2069.outbound.protection.outlook.com [40.107.223.69]) by mails.dpdk.org (Postfix) with ESMTP id 610F44028B; Tue, 21 May 2024 13:22:51 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=KRkXDzmqTXgmlQf0VbXdTPmWjv+CxZOv/q3jS+RwT5ILYGxlRPhNRj/jlh1eJ2sQJomtlp1U8dkcPULFqP5Ta0QSQEYFbx5pOnbqvhpU5C9WtIPEO90xB+GaLwVFVqYHptbxAkQRl7xU7BjYZ0Qlagkg2UFzpRVnguFyaeN/QX06C6jt6AU+qfRBtVBFCMAxpDSlsoE4GjhJY+AVImlGw2sPCZ5TUlsqBEG9q9DGZFAQmCzo1u0ENrYP+Yhm35YzpmUq2sAd/8wuMsINoRj+Df7FLxS8rzswMMVmiQs+Mu5fciAEwiuuRMTQKLYwsbvWi5KjaYjTwP2XgDxVB63nuw== 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=gxFV6K11OPtzL4S5BfPYZJk3oBbZC4w5+35I6hIe6Jg=; b=SlCAmoxeJ/PqcauvW5pe+syST3k925zuVjckcLO/pExLe4cn2EWSmDj0kc3CNge2at/WdgtDx+iIyuCkG1glGUptOxk1GNKIewBd91PjsEipYfkW3JTExzhfgd6f7ijLC79/WdcRiw4r8wDPlRtdLM4mMsYFLmNOBiaklvR5DombrYfNXDOiXWcOqc4qW627Yypif/hXYCAW8theNyWRrqltjC36PdHqiDh49oJTLPJzZaPQkD9hyCB0Gf7378LIMnRO9WldU7irIpPsIiO6sGlqmmOywtbWndc0wcI+VQw89BSxriCJEAEq21oqdQ6aiQX4YJOJD0O6iaGE9g0Pjg== 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=gxFV6K11OPtzL4S5BfPYZJk3oBbZC4w5+35I6hIe6Jg=; b=udpmgr+F050Kou8QaLa56ySeYwWKLVH4EoJWJ4cGWC9V5PYoRlr/hyz7M8jg56JaJQu9xQAKTYe+NuMdxiru1V1wo2+lbK05PxdqW+3T4Mg8XpSLnHlkPcwVyySLkkf5dD/s8+3L98Erg2iOLwG9xhgd3R0pNXK68UNupRWlBCX3OPbTmVJXn5E7kyphtp7NZJXXabA2tdMGXyXqSz5ue1T8im41T65RHXOchS+d5FKSlWXnGG0RZr1nq8PoM6oXDmMQA/6N3t2gxlffpq26Bi1TUTxKHaCZwQ+e9YfIgm3/4dDnvblceCFLu+31UppkhRHOEyAUU92Ot95a+0MITA== Received: from PH0PR12MB8800.namprd12.prod.outlook.com (2603:10b6:510:26f::12) by DM4PR12MB5962.namprd12.prod.outlook.com (2603:10b6:8:69::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7587.35; Tue, 21 May 2024 11:22:48 +0000 Received: from PH0PR12MB8800.namprd12.prod.outlook.com ([fe80::bdb6:e12f:18b6:2b77]) by PH0PR12MB8800.namprd12.prod.outlook.com ([fe80::bdb6:e12f:18b6:2b77%5]) with mapi id 15.20.7587.035; Tue, 21 May 2024 11:22:48 +0000 From: Dariusz Sosnowski To: "Jiawei(Jonny) Wang" , Bing Zhao , Suanming Mou , Slava Ovsiienko , Ori Kam , Matan Azrad CC: "dev@dpdk.org" , Raslan Darawsheh , "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: AQHaqseDMRYoOigo90e/zP8X214EMLGhjLpw Date: Tue, 21 May 2024 11:22:48 +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: 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: PH0PR12MB8800:EE_|DM4PR12MB5962:EE_ x-ms-office365-filtering-correlation-id: 7b9cc3aa-253b-495c-5e59-08dc79885853 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; ARA:13230031|366007|376005|1800799015|38070700009; x-microsoft-antispam-message-info: =?us-ascii?Q?ZCvmi+0sCrpQrCVTcRGkOX2G/6ni+ybWIzYZ9YSTDUvr0oECKm8ixPP0aOem?= =?us-ascii?Q?Ukrr/TZoXtQtvd/F+AGYuGbotXFL7VhD+02FKpnP06JUrnyr4HHa5zEN5FkL?= =?us-ascii?Q?1KSYNrYC7iDIw6fFF1FQO2yZLDHIy4uAPd7lUbVoN4Ubu7gboWLMMj7lERaI?= =?us-ascii?Q?z4Iw99VbymitKV653U5XC6h7NDL8QKIxX9nUutLdr9dglAQaGCOuyzYAIzXg?= =?us-ascii?Q?d6HsIf7H2BgB1FS/K+2eTHcQafXSckcJdZyKdRI47hc96LUvDBPmbSf6l+1j?= =?us-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Rp5r8+Kx65k2MIgu54wuHP69lMBr?= =?us-ascii?Q?YtWlWet59GNzz5W5LllGD0P4KrW9ghXF8BL7LX+WHjQZfyVmOcFva6d/sdrX?= =?us-ascii?Q?Hdk3OqcPlBVoPPW3tS2nzx4pUpcLCpH1X1moOKgkxKzRGa7fnlj9TbgfIDwl?= =?us-ascii?Q?/g3o5rMP68UQjAsq5bvV5D7cgrckC6m+oZ+46DL4C35xLg=3D=3D?= x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:PH0PR12MB8800.namprd12.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230031)(366007)(376005)(1800799015)(38070700009); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?PDiJrLYuRZAig5bigcjPZI4yUoE5+WzQx2cIGKCyw3+AONe90a7TmCHr5XAF?= =?us-ascii?Q?AMe2Sq92w3//zYCDK4y+ROkQoXqRz+k+jChHTTL+r7LkwvO9CdVbafKjz4Ks?= =?us-ascii?Q?gZw4YfRYKDpuzljwmU0XVRHjhCa6KqMiEnHZzTwnZm05JD2y4n/3cbbiHTn0?= =?us-ascii?Q?ehk0rBOvCO0WIjn5wSpmQgzv7RfEay0+/nIGMrdTC9xYeE1ogTv4hg5RWe9m?= =?us-ascii?Q?9sr/JZCKYgq1QBkUaVaogtRXs6oezOZQirXkAVNTs4F47yKW3KX0/dI5sHgf?= =?us-ascii?Q?oAHMAXYp6rNxAAsTnnR1kbwnW007noIRVJ9DbdrJNQ2zNpU3Zl5IKnboFceY?= =?us-ascii?Q?7B9LM8wSm/3NvNQ2pbNDEnBXAdavV+iJewAOJ3z/Q2835H3zSK1gw1sf7kXK?= =?us-ascii?Q?mr7S6mzrGC9jJhSOK4IdMUINHcjoOm23oKrHtshMVzFLTkk5IVyDf6vJ2zVF?= =?us-ascii?Q?jntktYtjSYypnYwgOXvEeU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?Q?dw2yU1jBBCff5XR10wWS2y0ZFaksIq+kS19Yi5ASpoUyUo9qnlLCxzlLxK1e?= =?us-ascii?Q?r6F2yAOHDdKGQt4ZFpoCqxg1qr4A3zo73BoLtMGJ8Ba2GgPVUgwvypWysWek?= =?us-ascii?Q?q43Hnl5boOxGZNrwhysdGDHgLF0VpryVRbqvCe9N2k0fTeZQpjz+CFLzoH5L?= =?us-ascii?Q?SoU8hhlLu4BVfNSxws2M7uQ6K70PlJStIWYicJ1m?= 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: PH0PR12MB8800.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 7b9cc3aa-253b-495c-5e59-08dc79885853 X-MS-Exchange-CrossTenant-originalarrivaltime: 21 May 2024 11:22:48.3821 (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: coVylYy52/I41XqeHG6KxD7ndhz2c9vm/0HHkkPklBMJN0WFsF203osLIc7wjKWKJSY6/JD3HFtlhxUqc7sP9g== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM4PR12MB5962 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: Jiawei(Jonny) Wang > Sent: Monday, May 20, 2024 17:07 > To: Bing Zhao ; Suanming Mou ; > Dariusz Sosnowski ; Slava Ovsiienko > ; Ori Kam ; Matan Azrad > > Cc: dev@dpdk.org; Raslan Darawsheh ; stable@dpdk.org > Subject: [PATCH] net/mlx5: fix Rx Hash queue resource release in sample f= low >=20 > While the queue/rss action was added to sample action lists, the rx hash = queue > resource was allocated in the sample action translation to create the sam= ple DR > action later. >=20 > While there's a failure in the flow creation, the Rx hash queue resource = of the > sample action list was destroyed in the wrong place. >=20 > This patch adds the checking to release the Rx hash queue resource after = the > sample action release, to avoid one more extra release if there's a failu= re. >=20 > Fixes: ca5eb60ecd5b ("net/mlx5: fix resource release for mirror flow") > Cc: stable@dpdk.org >=20 > Signed-off-by: Jiawei Wang > Reviewed-by: Bing Zhao Acked-by: Dariusz Sosnowski Best regards, Dariusz Sosnowski