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 387D345CF6 for ; Tue, 12 Nov 2024 15:49:11 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 3013F42E90; Tue, 12 Nov 2024 15:49:11 +0100 (CET) Received: from NAM11-BN8-obe.outbound.protection.outlook.com (mail-bn8nam11on2064.outbound.protection.outlook.com [40.107.236.64]) by mails.dpdk.org (Postfix) with ESMTP id 478EE40280; Tue, 12 Nov 2024 15:49:08 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=KzU0cvV+XUCUeXhM3JBCJFt95l30NVrW5vbsYgt1aYq8oT8Mh0hKEg/TrBbN5WyklKFHOuOJzCGhUG7EW2NZArZVPaQRDlqNlp6+wwipZmd5fUQrqXmgOaqHnx+kArf1U0JnIdW/Lc2K45a+7+ZCOr5yBToTiP4lzB8wmP3kTcpU8Sf0C4aL/Ez6BU9Gy9VsjzoORKRGhq2zugCNv86T3uL1w0tUx2Rw7p94spLcwHr4Ryv0MYxdVJgxIe8pBpc/0sAdbaPUN+obF2SDZR86Z9EZ+UORU7KPWKRmtj8KxVfPqoShD6/6w8hxrMjuLtEf3P3Do40ULmfDq7+8HP0G2w== 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=mufAY7cW1CMKda/Nvb8cwq7rNVDCxv6izygJX4TPjGU=; b=O0XVcXfUt5XcOXfcS9SffcuELey3tRyxkTKYZX/2s52dTJMIEyHoVA+aZYdPbycwTbk7NyNq17mJ8HXhirxlQYjMo/raEpTGLpj37e4/7vWjM2ut91JbZ0q6Q3mxz+CSnZETrkk66NV16+8b+N2lCAD3XdcQZ7qaQVQd2ztV1YBZt3NrAZt/nLdXOWOPBaxSS/4uGTN4x3J8v3WhcK9SHk9XygBD7d7m+i8a/aGR4AhSp/0RIz/QYoH9YTT1ThLZZ1L+Fcl88OiDeGaO/Jwc+4x/Xnlmg5JEhBn7/6bZ5il1+DWepgTC35+BC3xIBcrCiiocQ6boZ7b0YnLE8gk3lQ== 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=mufAY7cW1CMKda/Nvb8cwq7rNVDCxv6izygJX4TPjGU=; b=L4xwBRngWBYaZ/nnUt4lGFeqJZQVzeKh6f49EDviI2s3LXcCHwb9A1PKFirD29dh8QFEWUGlXUwje2hJ7IFattulD8wTupAmudWm7Ayt9r1yhTin4f9HWPV4d7Xui+nybOhvA5sQp25sjrlwYzd2nj+zcHSjx3gOuyX/EGvjIHNgYnXNtd55xJlyyKF+8n49Xs3wSKXfq6Co2QK1unYdTno/3Z5xkkeLx+iqT+ymXWjcRNTCDxCQEVLXI+DbT73nmYqB/3yV2wN6+gBk9MPZw1ODZwdIgaPsXC+/LoP7FcTc/Uvxn4FHhprBKYFKQUrlGFIwZXANiMiqpIgqehUvIg== Received: from MN6PR12MB8567.namprd12.prod.outlook.com (2603:10b6:208:478::12) by CH3PR12MB8909.namprd12.prod.outlook.com (2603:10b6:610:179::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8137.28; Tue, 12 Nov 2024 14:49:05 +0000 Received: from MN6PR12MB8567.namprd12.prod.outlook.com ([fe80::9bde:b697:6d6d:ee04]) by MN6PR12MB8567.namprd12.prod.outlook.com ([fe80::9bde:b697:6d6d:ee04%5]) with mapi id 15.20.8158.013; Tue, 12 Nov 2024 14:49:04 +0000 From: Slava Ovsiienko To: Alexander Kozyrev , "dev@dpdk.org" CC: "stable@dpdk.org" , Raslan Darawsheh , Matan Azrad , Dariusz Sosnowski , Bing Zhao , Suanming Mou Subject: RE: [PATCH v2] net/mlx5: fix miniCQEs number calculation Thread-Topic: [PATCH v2] net/mlx5: fix miniCQEs number calculation Thread-Index: AQHbKV0OXeumJjbCBEGmUSaPT1aUF7Kz0RqA Date: Tue, 12 Nov 2024 14:49:04 +0000 Message-ID: References: <20241028164244.2262641-1-akozyrev@nvidia.com> <20241028171458.2264985-1-akozyrev@nvidia.com> In-Reply-To: <20241028171458.2264985-1-akozyrev@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: MN6PR12MB8567:EE_|CH3PR12MB8909:EE_ x-ms-office365-filtering-correlation-id: 279a4948-5213-48f8-6813-08dd03292784 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: =?us-ascii?Q?ymkdYxQ8RbTp/HHseCWdXPXcT95QTnw5TZW1SMxpOCGW/xHsz+3sf6wMMXcD?= =?us-ascii?Q?taLmoPdrlU++ns7uXliFOpOkdLvczUEYhf2izF4o2fOnCzx9Kso2RV2Z6Glh?= =?us-ascii?Q?QPWuJfNjXgb7OB0fgpMY2lESKegvnUhruf6yGB+eUrQdid614s5ANH7kXT8P?= =?us-ascii?Q?JLpjF/syRfSrwYR1kFvjb9/FeEftvc0Q/6tAO++V+ewiOQ3K8fq++Feqzor1?= =?us-ascii?Q?xphni80ZYwVynzQzT9bHVIJSOTer2fae2q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LUjlGubteiC35LwV1r0Vm3bqaHshNDpOtAZH1aTRVld5pUPpVW?= =?us-ascii?Q?0qNFuquvrV5zi4g3hPx8uEeS+XLL12uEoWYdGVQoccLBO4SfGipcKBtn9hL9?= =?us-ascii?Q?l2Fzx+Ux4gncwSw0vLSy75kCM03TeVym6bNiBmCReYX/qAMkju2xpONSmaQk?= =?us-ascii?Q?bulByvu4C4lLcHt+1HERkl4+1DrR4d0M5obeV91Ue6kzJsyjOPgjVxbw0vLe?= =?us-ascii?Q?DjJHZkQ=3D?= x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:MN6PR12MB8567.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: =?us-ascii?Q?TM8nE/RvPaWz+O7pDrbr9VEofNJz2q0T2KJtEeMky7HklfkeHjvw/BYI57CZ?= =?us-ascii?Q?PfCupv/v7WSIEIPgxqGcALrsad5Q7VT4BkfJXIZgdQLf0/DWvHpsFHRdkKk+?= =?us-ascii?Q?hspW3I9UJ5tBqPRZz0cWnamHCDGUXeL+TeXNGDb/kdR2cpDJHAa6WsXvz4Z/?= =?us-ascii?Q?rDeoRdcwmUuUJFMI3fYBqkHQ+cO5CGrI10HcJqPscyZoIYJIPfvJ7vThlsXw?= =?us-ascii?Q?jPN5hvJDsm4kle+o1i0fy5ycfo1ejfADorNMu8zOzWDzXtqI5TiQgroYJT9/?= =?us-ascii?Q?zkA+9Gq7DbvEKolPWhEnaODfgYXh+9bRH2+bx7cRRjDw5UWmx5Vl8oorJuU2?= =?us-ascii?Q?UvUnCuux3TCRrfS24BPqnc3yqggoiC0EAdV806nktN2uxGFwdvg0C3NnmYid?= =?us-ascii?Q?p4r+UD6SklmEIxj1+JfR8g3E/XGMMwmYjboGCLxHebJpG8gCQh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BOYaKGGmI8w5Qfygw28Qo19ys7F?= =?us-ascii?Q?l5bVPHd3R+IJVUkg3vvmc25q83ur5NI08ZBoMRCk1FQdCv51VF6gak3Wk5Tj?= =?us-ascii?Q?Egj83jZFjvcHaYcHqChcBDxKgwlcKz6ON9INivFDY/GbTLGzNirFljLGmhuS?= =?us-ascii?Q?26PKJGsbp6dsYJeO3OSl0roA2ItqxGza+lazUDzpJu21fiAvCGnhzE6n2mSp?= =?us-ascii?Q?Zy/ZQZNTvcuYKcoNVNTdMKhO0jQO5+M8eo9LDD2R?= 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: MN6PR12MB8567.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 279a4948-5213-48f8-6813-08dd03292784 X-MS-Exchange-CrossTenant-originalarrivaltime: 12 Nov 2024 14:49:04.7967 (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: e7qYpSuieMrgLsIFCue2liR2XQB5KD68xkVKIhez4bIHXmwRfO7GCXz/8/qmLQvGEwKrHwPzDbTz9mfKNk0MTw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: CH3PR12MB8909 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 > -----Original Message----- > From: Alexander Kozyrev > Sent: Monday, October 28, 2024 7:15 PM > To: dev@dpdk.org > Cc: stable@dpdk.org; Raslan Darawsheh ; Slava > Ovsiienko ; Matan Azrad ; > Dariusz Sosnowski ; Bing Zhao > ; Suanming Mou > Subject: [PATCH v2] net/mlx5: fix miniCQEs number calculation >=20 > Use the information from the CQE, not from the title packet, for getting = the > number of miniCQEs in the compressed CQEs array. > This way we can avoid segfaults in the rxq_cq_decompress_v() in case of > mbuf corruption (due to double mbuf free, for example). >=20 > Fixes: 6cb559d67b ("net/mlx5: add vectorized Rx/Tx burst for x86") >=20 > Signed-off-by: Alexander Kozyrev Acked-by: Viacheslav Ovsiienko