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 9A4CB45CF9 for ; Wed, 13 Nov 2024 16:28:57 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 9172740677; Wed, 13 Nov 2024 16:28:57 +0100 (CET) Received: from NAM11-BN8-obe.outbound.protection.outlook.com (mail-bn8nam11on2057.outbound.protection.outlook.com [40.107.236.57]) by mails.dpdk.org (Postfix) with ESMTP id A4DF44025E; Wed, 13 Nov 2024 16:28:55 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=D+Xom2OiKO9eMNU1BV6SW2yvzBvEGs5iMMAwm7/T0Jxf1ioT+sBiAWZaw0SwdvdV4LjWYF93ApAVdx80M5mR9AJmzAsvSUCiDQ/HXg0sycdAuaTFaJDipq1yWz1QKYu40P+4VO8du67v+ReYT7OSv3D72//lj376DEB1WJKNfgNsTviD7+Z9Rcv+zusNlZG4D5wz/RW8szlidA/ltRU8hGJFFf3yC4hF8YVwOnfbQyajgD/iQ4ZnarzMMc8+swAm4JjkdwYHDlTAwdaIrc7yVtVMzmsg1XAKFJRlINRjcjVgK/l9T5Obew5gR2u53wztK+kvdKNf0AI30nxcPpI2mA== 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=0A7pogt1uksRxmSaEknQnEGn+BiG3BdCdcBnd82dbjE=; b=aJXzos9I5jqcoDRtFNoOB9I0FWP7cBGzXRCQ+bpriQA1yP/jUfm87xEOQGKofq2E0iJ20UPoBKqwcDyySX6O99aFXIpzHTGDBfiV38m8unKhMdOFVI7jCRMHeY7FjSHDcFGgawuNmVkVctJYGS8pSz1JZBPDQgeMwXPY6Cke6P/ec0XUwVka/qXKzhr+PYnWRwS+zM4XC8DDY8aaLta0p6EFKfkSR01nTBz9ojBkV6x2Deb4Viv/zYe4dGXMsvA5UcepJLHB08bxiQn6OwZrpfrjgGNcD/MlR3uoXMRXY5ERT3oxw4pz7i1KlVyBhNCnCuDyUJNsuG8BVHTM4+/oYg== 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=0A7pogt1uksRxmSaEknQnEGn+BiG3BdCdcBnd82dbjE=; b=UKkO+hGu3T3H//TiKoj++ode3UR8Gz2U8G2mQtIjhUf6zt/oEXAiKcZWy0zO/pqcBleOD0vSKHvKUxCF8zcZ+ZhtwcqkISuVQHwW6cyE7jyLGcMCY7KOhjXEFAE7+snOYpuXu5Fb2oQcR+aP2g4+ebOViKxi0es992VTyhzWwOwej4m+C8C3/5ezkJOvr13OKNOfF+dbk3K4cuOdS+tl5Q0/zR8Q3qmNCVu/6X6mYjlOtguQ14zQO+2FICYoECyon3LGbGzClCH4YYIN26qsqc+AyH0Ikbyqv6cZ3DqXOAo+LOxqSRC6y8dn+j6xSbqyK4ykvUJCGUgqOFMAbN8xzQ== Received: from DM4PR12MB8452.namprd12.prod.outlook.com (2603:10b6:8:184::18) by DS0PR12MB6629.namprd12.prod.outlook.com (2603:10b6:8:d3::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8137.28; Wed, 13 Nov 2024 15:28:51 +0000 Received: from DM4PR12MB8452.namprd12.prod.outlook.com ([fe80::b341:6309:cb1f:5b6a]) by DM4PR12MB8452.namprd12.prod.outlook.com ([fe80::b341:6309:cb1f:5b6a%4]) with mapi id 15.20.8137.027; Wed, 13 Nov 2024 15:28:51 +0000 From: Raslan Darawsheh To: Alexander Kozyrev , "dev@dpdk.org" CC: "stable@dpdk.org" , Slava Ovsiienko , Matan Azrad , Dariusz Sosnowski , Bing Zhao , Suanming Mou Subject: Re: [PATCH v3] net/mlx5: fix miniCQEs number calculation Thread-Topic: [PATCH v3] net/mlx5: fix miniCQEs number calculation Thread-Index: AQHbNdMsXCXIMSdtJUyszrlOT2pmprK1VcGN Date: Wed, 13 Nov 2024 15:28:51 +0000 Message-ID: References: <20241028171458.2264985-1-akozyrev@nvidia.com> <20241113135103.4105722-1-akozyrev@nvidia.com> In-Reply-To: <20241113135103.4105722-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: DM4PR12MB8452:EE_|DS0PR12MB6629:EE_ x-ms-office365-filtering-correlation-id: 7a132068-760a-4693-c560-08dd03f7e0a8 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?eoreCUcfHDSlBAaoBPfkAIi1Ng/WZrrjozg2IsDaExvDAlkNL/pQzsTSSq?= =?iso-8859-1?Q?1sS3+8zbe6DRX0yGnKwHBm4JySFKkizKNeQpqbB/NyDm+5Qt8Sl9ULuI1i?= =?iso-8859-1?Q?Go5K/8zgoUE5nFvISZH7AyZLVAnNwhENH74pcCYTrCXBkarBd8JEfK+/o4?= =?iso-8859-1?Q?SSNrYc2PzxJq24kaNec0sGevcPOjIzXY4NWasMNzfTg8tAJs+Kd2E6LapC?= =?iso-8859-1?Q?PHdQbPbFfDz2mb5fzmxLHimt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Pj?= =?iso-8859-1?Q?OViOwUs8vQxZ+S6LPbeO+rdKLJEt7snKL5sbaQgw55+u2SDK1AcZGrNdmF?= =?iso-8859-1?Q?+JR531bbK5JB0pwr3wrN1EXOOb6lXJscrXqjLF/FSayJ69rYB5Ah/3H2d7?= =?iso-8859-1?Q?Q/RGuXaVFPscZ4ENx718y9FoN7Mbt8sK/YzJKAocItqQib7H1i3ZTonMs6?= =?iso-8859-1?Q?PHQVKI6aDDJxTANhDqTJoCfXUgSh5nIaalk+6Zwqp6q5zk/x3jPa72YVN0?= =?iso-8859-1?Q?C8cm4g4o9SlHV+eSrncRgJzvbHvon4Qcd6/rNA++7F19vK7544t2A=3D?= x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DM4PR12MB8452.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?G36gc9ubFxaL6Zbv0fjLqWhd4+HdmifM1M0s/3h+eYhcuM3tywgdoud4Qi?= =?iso-8859-1?Q?/BoKfdHayyZc/TDq30r1cAeBDn0OX+XI78MLfKwqci70n6BxLG9RHUTUKe?= =?iso-8859-1?Q?nDOJNAKotqUaJ5zusoNvilTzNqOe2RE9XsRe783HXYRfeOWfkrXOEZOmNb?= =?iso-8859-1?Q?hOQJnHcOHkF0h4TDrHM5ljAfwSy1UMDrNPnMB0VMQzqDh3Ur08rzZv2gNG?= =?iso-8859-1?Q?Hf27rHFnlpveNFQsrBEXA6TyW+m1y6UP0TEXimbm5xx2cqeDQyPb88V7G4?= =?iso-8859-1?Q?gAVF8CXuB9/1DibXwrrLHp013VeTmC/6TFeiK7zrC93DE1h0SQOmbXJhaU?= =?iso-8859-1?Q?xnDBJfvk26ZA9gvGx6+8Fhq7SPyhC3tJoQusku57LNGHII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qsMIq8jgduIeB7Y/jil1HtGLoBNbJ1/WA?= =?iso-8859-1?Q?e9RgwSyKvM+JJ6eSfFwK548svGhgrkM8vTMjjEm96VnjmeMRcb2h+tLxpt?= =?iso-8859-1?Q?++iMvh7+xQfGsFEnjFD4SHNi3VbxK5BzyB0ky04TnuXyXC2RH5XgOZJFzk?= =?iso-8859-1?Q?1Y2ewoG8bM3W9dFtfPCfVtZ6wpyfl1rmS+AdcJhYlaskOsCDec3LV4h1Ei?= =?iso-8859-1?Q?GwXX8P98ifJEuPqDeyntuOB73Z54fqJu5kM7z7hN6+6iscBZBTkYWLvwli?= =?iso-8859-1?Q?KXj68qYW8LOI5Vh/qq6IMPIBGbJGqKD80zwX/KoM2tfWZWQCRwEdnZ/ZXG?= =?iso-8859-1?Q?tRhEQGZ8c2MQ954H6zFPqT0YctQUAoMvPT?= 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: DM4PR12MB8452.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 7a132068-760a-4693-c560-08dd03f7e0a8 X-MS-Exchange-CrossTenant-originalarrivaltime: 13 Nov 2024 15:28:51.7252 (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: PT4SlFhSe+ME1Kcu5w+OakMg36qdtaCf57YwBLvJI3OmLNzn3uE2xhZjP05OavjnOyorvLcwgGMe3IgzK9JedA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DS0PR12MB6629 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: Wednesday, November 13, 2024 3:50 PM=0A= To: dev@dpdk.org=0A= Cc: stable@dpdk.org; Raslan Darawsheh; Slava Ovsiienko; Matan Azrad; Darius= z Sosnowski; Bing Zhao; Suanming Mou=0A= Subject: [PATCH v3] net/mlx5: fix miniCQEs number calculation=0A= =0A= Use the information from the CQE, not from the title packet,=0A= for getting the number of miniCQEs in the compressed CQEs array.=0A= This way we can avoid segfaults in the rxq_cq_decompress_v()=0A= in case of mbuf corruption (due to double mbuf free, for example).=0A= =0A= Fixes: 6cb559d67b ("net/mlx5: add vectorized Rx/Tx burst for x86")=0A= =0A= Signed-off-by: Alexander Kozyrev =0A= Acked-by: Viacheslav Ovsiienko =0A= =0A= Patch applied to next-net-mlx,=0A= =0A= Kindest regards,=0A= Raslan Darawsheh=0A= =0A=