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 661A245CF7 for ; Wed, 13 Nov 2024 14:35:00 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 5D4044042E; Wed, 13 Nov 2024 14:35:00 +0100 (CET) Received: from NAM12-MW2-obe.outbound.protection.outlook.com (mail-mw2nam12on2078.outbound.protection.outlook.com [40.107.244.78]) by mails.dpdk.org (Postfix) with ESMTP id 718D94021E; Wed, 13 Nov 2024 14:34:57 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=s0Q8heZi/jnTcIqUIcAqqe3f4dVNpBA45I9J/4BepcD9bjUW00mWYQ6gN18UrNXXL6Pd3ZWKQ+EuTUG9X2y3DnjeiLBBBNmaBpFod+6dABvXZ5BqEYLBf9pJ9GbZERupRN+AuwihSVJj5Hm+Db1V30OuvDiT8cau4PrbAkEOt4/S+bYOjw6E1sWAvepVZ9EinGABuhgsCIKU5KczslMqoJAAYdHfoS1H1Kq0inRWHeXw8b0dDZYJNC7wi1HMavl8t+z4cOeU0TwVc98bRTiOYwyg/q54B+0uq8Txan1H0zUAkY7nRObOfweCMTZc8er1dbh4Be6BjGGkhpxK7m3Tbg== 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=6VTiZD4ESDv01Lg8p0ZyTBfL6cQuSMnvKNZayYZ4SiA=; b=VrnMx0/80goEhDgAR7XGe4GcfH3jasO9tuyGX6rHT40JbfxhCyuvB2wGX4TpoHFVyHLtuTe65K2zTiPtAUPRoEx2BCt14AEENraM1GiiIPmUoN2fiWMZLlHt57UdPcjXyKVJv+ShVA+I9M39Gdllo4xGD0zSFopK071UqmGdNbLnfDGlIjaREEpp/M+AAhODNsw3NgydEu+4+Nw7eZpuwmbXy/ZXdHVgrl08nju8MNecxapk5FD0JQwInjOPFEj13jMWALv3Vatg6/p2MeTkiNJpPbK7s6RLipkUn617C+KUWTgDozvc0bRkXwl/YY7mKEGHBNs4Ccx97VH1/bM+eQ== 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=6VTiZD4ESDv01Lg8p0ZyTBfL6cQuSMnvKNZayYZ4SiA=; b=KmBhDAzUwoWSNW/sUHzEf5f5O44NHGLWxIdVhbBP0M4pV9kth2/xXqkVmZTv2n+N9LYjpO+HPUoGaOyPHwRwrX1jTBYnzZ8zNweBPA8DpxOqPjxs4iJPtdIuVgJXaN/epwTAOHra4W/63U5JX/f8XvkaL8y2CnULWOf+Mla4Qx0lTYhOmkUY82SnDYX6D63ezBLjHG7iLx+CDdM7Plo0pX1N5XHiw1lixybH9oHFV28vausdU9sHPg6yMsy4qwbQ6KxIRn3QIjUMM2ZoouTTixdY6oijY1sN4NSxrEr+JS8k0lqRZu/0oITL9upW20PwOZlVdojZC/9mD1kH8fyuJw== Received: from DM4PR12MB8452.namprd12.prod.outlook.com (2603:10b6:8:184::18) by CY8PR12MB7538.namprd12.prod.outlook.com (2603:10b6:930:95::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8158.17; Wed, 13 Nov 2024 13:34:52 +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 13:34:52 +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] drivers: fix error CQE handling for 128 bytes CQE Thread-Topic: [PATCH v3] drivers: fix error CQE handling for 128 bytes CQE Thread-Index: AQHbKV1UUpOQUUYf5kaw3MyvuoK2WbK1TsE8 Date: Wed, 13 Nov 2024 13:34:52 +0000 Message-ID: References: <20241003202605.867419-1-akozyrev@nvidia.com> <20241028171712.2265166-1-akozyrev@nvidia.com> In-Reply-To: <20241028171712.2265166-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_|CY8PR12MB7538:EE_ x-ms-office365-filtering-correlation-id: 028c6536-5544-4311-d6df-08dd03e7f40c x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; ARA:13230040|1800799024|376014|366016|38070700018; x-microsoft-antispam-message-info: =?iso-8859-1?Q?fzhiMZ3IRANBLSRExUGuBLkr89HVJDLHG/Wpa+Jr/YrpArY3R5a6D0mmkj?= =?iso-8859-1?Q?VBmWEg076WLKQDQ8zObE+XiUW1gKy1kNP0r4/TxTWE/4bEkFOTfW2fLaGg?= =?iso-8859-1?Q?sDDv8COZ2izsLs41okPIlOynYsy5V692jrV0ByEii5fbVh/1WB2bbBZQXl?= =?iso-8859-1?Q?Y1ocIKMrvehv2JisW+PxqMlTAXqV2oSkvocFptEuo9wvMs007zWRPsLEfd?= =?iso-8859-1?Q?2kTXbTT9okQGwUUzJ+GRgI9NCX0j+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0ylLhNJZ22+KTYB7MzlJWDY6LylJFrKUB7hV/lPpF7a3u7IFP0Ig?= =?iso-8859-1?Q?eNOy2aHSGEfZeLtYFX0bjpJq39puuqePvatW7jseyK4FiY2fqf3DsJbR8U?= =?iso-8859-1?Q?SI45AgQeAY3qnESOakVTjKs9ZWRkAXSnarbrFsDS8KFOSvGRy45ZIOBRC9?= =?iso-8859-1?Q?HxJx7Lc4qrMoUkQARnWaEVbiDROlEedHIArJpcSJouhqAzaNE+94MgyhQI?= =?iso-8859-1?Q?tO2QAEjB6W24dcQpBDIqpYd8Rd5VleT2Zegg+MdoJxO8OeGzO4oPk=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)(1800799024)(376014)(366016)(38070700018); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?iso-8859-1?Q?KhHu5TVl829dDeVY9Mn8LqNDo9ljl0B6XuO55lvS3km+kF8DcGDM6OO6S9?= =?iso-8859-1?Q?YzF2rA6XticzkthVkcBLLssx36JhQWH57JqqLEQ34AqaE5jdrJJRD9Qhk5?= =?iso-8859-1?Q?YcpFisjPkv57O4LjcBQjIvjDzQcUuwJkk1iA62Eook5Be5wz/XyrVvQ6el?= =?iso-8859-1?Q?l0FKrDEbSgkH+e6sTrF3J+NYqe9110ZXLRHKpioyLk1WCqV2tJhs771u5+?= =?iso-8859-1?Q?h8msqWtQLDo3Rn72mnZTZ2tzVzjPBcTa7VIy32ywbW0ojjq/iL93wn6VTl?= =?iso-8859-1?Q?LOXqkkTIHZM8yL9S9vD1iGdRb1kEi2ruADKyo7MBvxvPwNhGIQM5wwZjqb?= =?iso-8859-1?Q?UBAh4GWcwZufAdPZN/TgX88j2DBpPOyoab3WzcmG6ZEu4CjhhaDYYG2MRi?= =?iso-8859-1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bCHvOddXb9jUAN/pGG?= =?iso-8859-1?Q?rCyVTVpJzEbLCu7Oek9XAkOKyi4vuNbzxQner0hexmfOom04gFEJHXH4BL?= =?iso-8859-1?Q?fnTAXd00N5QFDygCeQvQ8zG6DDXvM5jSZ0YDJlF209F9xu+3wX30oweR11?= =?iso-8859-1?Q?hiWlANrxbnYq2HhQsbGmnEJgaHNnXDtDtPor1wwhpXCG4pZYwIkcQ1hXEh?= =?iso-8859-1?Q?wujyH/s+0dhyRAQqdSgEoChX+s9tXdgVPRnj1fU3WNh4Aec/wPfSKxdOOm?= =?iso-8859-1?Q?huDTJeWugPneO2gd9/GMpg2AFZDPBS80L0fAGYfb2+i8HI74hM3L3wTe3u?= =?iso-8859-1?Q?MN2Sbeq1pub5U=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: DM4PR12MB8452.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 028c6536-5544-4311-d6df-08dd03e7f40c X-MS-Exchange-CrossTenant-originalarrivaltime: 13 Nov 2024 13:34:52.2922 (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: HkKbgogFf0IBOU8ezJ0Cu9segIIHHBg+Nuig973suK4CP2NHQVXkFT6jcdkjhZSbxtsg7rzSUuKu+7XlSejNXQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY8PR12MB7538 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: Monday, October 28, 2024 7:17 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] drivers: fix error CQE handling for 128 bytes CQE=0A= =0A= The completion queue element size can be independently configured=0A= to report either 64 or 128 bytes CQEs by programming cqe_sz parameter=0A= at CQ creation. This parameter depends on the cache line size and=0A= affects both regular CQEs and error CQEs. But the error handling=0A= assumes that an error CQE is 64 bytes and doesn't take the padding=0A= into consideration on platforms with 128-byte cache lines.=0A= Fix the error CQE size in all error handling routines in mlx5.=0A= =0A= Fixes: 957e45fb7b ("net/mlx5: handle Tx completion with error")=0A= Cc: stable@dpdk.org=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=