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 C35BA43CA0; Wed, 13 Mar 2024 16:40:14 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 0529742E0B; Wed, 13 Mar 2024 16:40:14 +0100 (CET) Received: from NAM10-BN7-obe.outbound.protection.outlook.com (mail-bn7nam10on2084.outbound.protection.outlook.com [40.107.92.84]) by mails.dpdk.org (Postfix) with ESMTP id D918440298; Wed, 13 Mar 2024 16:40:12 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=OQTRtX7V4ZKQAY6qlwUXEKzBvAozxtB4AXEUeGZNwYf1oRQMaxofwtvadiI8DQLiu0vzvHwpAkL7Lh8wQsWu8AduxVHzTHFQahLQR78eNA7VAYSsPUDj6HiQxbs3AQCf+yKcIDOGS8CrXEHliodabpdLy/6gjrgic5xr/zyCLP7g27m95n9HpveN/PYH6OiTJv+vwgumhnj2TZ6eFP0R7jQK80TuJ1K38UL6O6EtgP4NL9pi4ha63E2o1KPm/ITHkzUOqt2F51wmht0/TofX7QZJb5oRft48j44ojeaGPTtLOFZO1DQDWn5zpVHoqheTdJTRBf17PIlpcgVQNzm9ww== 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=rVOXUfS1qRcCegPo2aRSRUDTeD/+xCQSkym1Ek6AIvg=; b=bdNmc/NmEsQHhh8HGAH84e/vbo33XoR28RNj155/FzW3MhDvNXtNxtLcX0zbgaQzBa+brD5xkwE+PZDxEQLOUDa0YHHD3Y7RP7ZcDaiB9Er8mV3qvExk67+Z0DYqrJSPXxlvM+dXstQ0+tABsy6Jhk0oJzT2b9p2Z4/XEXom+LAoMtLkH1LuVunQqquvT8m6cP/GYSHBl+E+iVNOdLCkEawkP1xWJOA5Q/OJU8J/DvkHPLBC9pqZFNTVZPHIz0L5eVv9y1JIfFjCzxRzOfiZb8n/XTTiI3p3DTNGWMOlqwvJRyX1d9SokEYc9ADafGKaGEV/wjyPPu0FmvsrdvlL0w== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=amd.com; dmarc=pass action=none header.from=amd.com; dkim=pass header.d=amd.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amd.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=rVOXUfS1qRcCegPo2aRSRUDTeD/+xCQSkym1Ek6AIvg=; b=y8PKXnfCFBL2akJrkQQiKn/hOoBElbvUxR3nvXpiIPTh5z1+rOxdpp7zFvs8CPJgSsv8H+KKtc11ZHp+TqJ2zCj2PgvmUwCij1cgRjm7yPDiaqWI6WuCd3ob7WwGEq5lTHE7praCgZbHOJS9it27DVAedDK5uP21K0ca2RUv3j0= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=amd.com; Received: from CH2PR12MB4294.namprd12.prod.outlook.com (2603:10b6:610:a9::11) by PH7PR12MB6492.namprd12.prod.outlook.com (2603:10b6:510:1f3::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7362.36; Wed, 13 Mar 2024 15:40:02 +0000 Received: from CH2PR12MB4294.namprd12.prod.outlook.com ([fe80::3ec7:6339:1c14:c529]) by CH2PR12MB4294.namprd12.prod.outlook.com ([fe80::3ec7:6339:1c14:c529%5]) with mapi id 15.20.7362.035; Wed, 13 Mar 2024 15:40:02 +0000 Message-ID: <0b2fbd26-6d86-4160-94ab-536a7642a382@amd.com> Date: Wed, 13 Mar 2024 15:39:57 +0000 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 2/2] net/nfp: fix data endianness problem Content-Language: en-US To: Chaoyong He , dev@dpdk.org Cc: oss-drivers@corigine.com, Shihong Wang , stable@dpdk.org References: <20240311024939.2523778-1-chaoyong.he@corigine.com> <20240311024939.2523778-3-chaoyong.he@corigine.com> From: Ferruh Yigit Autocrypt: addr=ferruh.yigit@amd.com; keydata= xsFNBGJDD3EBEAC/M7Tk/DfQSmP1K96vyzdhfSBzlCaGtcxNXorq4fALruqVsD3oi0yfyEz9 4YN8x7py0o9EL8ZdpOX0skc0AMCDAaw033uWhCn0GLMeGRKUbfOAPvL6ecSDvGD7CJIO9j0J eZUvasBgPdM/435PEr9DmC6Ggzdzt8IuG4PoLi5jpFSfcqxZFCCxLUDEo/w0nuguk2FTuYJg B2zEZ4JTBZrw7hIHiFh8D8hr6YA6a5uTofq1tr+l048lbtdFUl8TR0aIExVzE4Z8qKZlcE+9 RQaewjK5Al1jLE4sHdmd3GN+IvgDF3D/fLsi25SKJDeGSdeHkOmaX0qGeM4WKIfU6iARRCiQ N3AmBIxZ/A7UXBKLaOyZ+/i3sE6Wb53nrO4i8+0K2Qwyh6LjTeiJAIjYKN43ppxz3DaI+QwQ vI+uyHr4Gg0Da9EPPz/YyKauSeOZCfCB5gIfICO0j6x0SCl8uQ2nLpjxcZkf0gjcwUzP3h+S 3x6NfDji9YEij0zczW/dcSpGgZ6vsFpPrtnP9ZXy6J53yp0kJtOJoOlkEFFdU2yCZnCDseum CoudmGLZVvS0/DzHDJejq+3kK3FDGktZBOxZIIpal+nFqS7lVgOZc4+huVv3jyhzoAUOEyXA XK5j6o7g8STUY+z33QNnHpdLvecMwuzmvqy0jR54yAbZ64mB9QARAQABzSNGZXJydWggWWln aXQgPGZlcnJ1aC55aWdpdEBhbWQuY29tPsLBlwQTAQgAQQIbAwULCQgHAgYVCgkICwIEFgID AQIeAQIXgAIZARYhBEm7aYjps5XGsPHCElRTPtCKKm/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2YScp9dIV7fsS5tpDwIs7BZNVM1l3NAdK+DLHqNxKuyO 8Zk= In-Reply-To: <20240311024939.2523778-3-chaoyong.he@corigine.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-ClientProxiedBy: DUZPR01CA0307.eurprd01.prod.exchangelabs.com (2603:10a6:10:4ba::23) To CH2PR12MB4294.namprd12.prod.outlook.com (2603:10b6:610:a9::11) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CH2PR12MB4294:EE_|PH7PR12MB6492:EE_ X-MS-Office365-Filtering-Correlation-Id: 1ab80e60-d1c9-453c-f134-08dc4373d8ca X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: Ta6d9xxNz1xOpa8RfECgFqqhYH12W58JsPcjiDpLazNwtbwX7oZyCVXS3VB6X3miwRiIk2x/yGvXE+JCNdc075bk5PqVlOMnYA64yfEWJ4SSKOjwVftbYC72WlHsD6ACX0Lx0S8iGNlk98UgtBZgjYoQ2CBZjoo4ygUnOW62QXZLT2Phk326xbXVmaR5DwtF5NSSgxhBXv5o2j5IIUQuJIQ59KNyNRZpP0g8oh2FQYxkoDSeinmOqmirgrI/ocCtWMTFyhq6Gcl79q8nLxatGwUGtIMMdNUQPLdxmDPlYCG9rwgw9DIWmNNqmAyCqtNsrBdcv+NNuv/5LB0/fIzcYmk5ln/VCzVmUDdpKX4frAQ7u+EpIoTS1oy5uIav1o7FXUgVqiiE7XxNUG/PIIZb/uMUllNMLm9qqiHFSyFXCK92hbB82y/wPKW4GMjAAplHAjRMgbi0GUhRyiYfrvNosptzyJFy9UxEQAt3PkJDk9ysSI7Xso3DpfGsW+S6vd8ViBAEfutswR9eU4lePGh4Zb7usj42+MzTfWc8/m5qz9FBhTi0OiRPqEPhypeE70AWLSGZMhuFydGWcbPyEmHi2orlf+n+G9yLKd8GXlpDGvgtLAFWmclCAhnC3ZEwJHFmvO5Egt1bAoFAtB8rBSwNQxNBz3knZ6l4J4xn/fQAgX4= X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:CH2PR12MB4294.namprd12.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230031)(1800799015)(376005); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?Q1AvU3J3VWhLbmxzSzVsckJoUm5STjBMUnM5RU1EK1FmUy9XVjVPTWluSnBE?= =?utf-8?B?TC95ZVREa2RzV0pENjdaUGVpSFlUQ3V1VGlWNHdFYUE3TXhkR1QxaHVMMUV1?= =?utf-8?B?eEN2aVl2b1NXc29kNGxqNHhGM0c5ZmNiQ1pHNWxseCs0Tmt1ZUN4dDhXblo1?= =?utf-8?B?Lzhhb2hvclJKQnNuY3lQU2IxMncwRHpEaHF5U2YrN01lNmVWNzVocm9xWHZH?= =?utf-8?B?b3BBdkltSEJPbGRaT0MwaC94dVlIVXUxSnE4ZW90QW01OTBYaTRNWmxJU3hB?= =?utf-8?B?QThTZzF1cHNtREJVOVRnUlNvVTlwSzdRS3QxdGw3Uk9ZMVBTWUkxaGJEZm5s?= =?utf-8?B?dGlhK2gzaVNzMGxaVlIrMFlxOFR5aFBMV2VHWHFUTS8vNnZzQXlLbDl3bC9v?= =?utf-8?B?emNJaXdVZUM4dHZnYm5NeTQrTnNYOGFJQTlDMTFnNVo1ZGNvT2tHTVRrem9r?= =?utf-8?B?dURKZnZlSlB0TUNGTmtCbkVqVFNEREtQNTdZaFB6bkpSbkJ2L1R5YThDeks4?= =?utf-8?B?RUtGUUtnc2tPU21jemtDYXM2RUJQTU9YWnYzL1E3YnozSFJBd3BadVNvT21H?= =?utf-8?B?MFNpaEpVYjlldTdBMjAvSmRscTJqSzJZZ3hHUExpYmxMVG85bmhDQVh3N0Jq?= =?utf-8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8?B?bWdtSXQ4WlVJUGJOcjVHZVM0aDRRWlNsMlhWbXZWVlJHYS9pM3lsVFZxK2FR?= =?utf-8?B?VEdjUEJzT1hzdzZXdUlOeE9Ud01wQlZzWHNleTE5dUZrc05zZEFTV0FNcFRm?= =?utf-8?B?NU04OUFYTHozd29CZDRBVk5kYTU0emtLYThOZWhUcmk0VWpBVXhHeDVZd1Ez?= =?utf-8?B?WStNQlZidjRoTXVGVFhVVEZhYStkMWZZQ3R3bWltYVhSb1hZT2VBSVV2dHpD?= =?utf-8?B?Q0VFdmNuR3gvamVRdURqRHIvRkEyeU15MXZJemxmb2JMNFJNcVlTYWNRbDlj?= =?utf-8?B?bW1zS25adEt5dUFyVUxKeldkWExNSmJubllhN0xhT29hVndJWVAvaGlGeVVp?= =?utf-8?B?YThkUEJBMFIwN2lIbDBOLzdQS1dHeUU1S1U5RUtoeHR3Ukc1V1lKZzJ5cVAx?= =?utf-8?B?YnY0L2dLQXNtQVpXQ0JZU2JhYXBLUWRvaXVGSjhMdy9sUEVuVXZZcTJaN2Va?= =?utf-8?B?eTgweTF3WG1LS0s2dFU1MVU0SjgxZFpQcFdDSFZ0Q04vNjIvcS9Ia29zYWFi?= =?utf-8?Q?Q9/jnxCdje/mfoUKQoQV39bLk?= X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-Network-Message-Id: 1ab80e60-d1c9-453c-f134-08dc4373d8ca X-MS-Exchange-CrossTenant-AuthSource: CH2PR12MB4294.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 13 Mar 2024 15:40:01.9940 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: ZOj2Jrb4EmGo8KC/1ZP4BDyvTX1rqkU+rmLX1/lm0cbmI8ZrXG886ZG8Lo2KTeoD X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH7PR12MB6492 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 On 3/11/2024 2:49 AM, Chaoyong He wrote: > From: Shihong Wang > > The algorithm key of the security framework is stored in the u8 > array according to big-endian, and the driver algorithm key is > CPU-endian of u32, so it maybe need to convert the endianness order > to ensure that the value assigned to the driver is CPU-endian. > > This patch removes the operation of converting IPsec Tx metadata > to big-endian to ensure that IPsec Tx metadata is CPU-endian. > > Fixes: 547137405be7 ("net/nfp: initialize IPsec related content") > Fixes: 3d21da66c06b ("net/nfp: create security session") > Fixes: 310a1780581e ("net/nfp: support IPsec Rx and Tx offload") > Cc: stable@dpdk.org > > Signed-off-by: Shihong Wang > Reviewed-by: Chaoyong He > Applied to dpdk-next-net/main, thanks. (not the set, just this patch)