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 980BA43ED5; Mon, 22 Apr 2024 12:55:00 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 13F1940265; Mon, 22 Apr 2024 12:55:00 +0200 (CEST) Received: from NAM12-BN8-obe.outbound.protection.outlook.com (mail-bn8nam12on2078.outbound.protection.outlook.com [40.107.237.78]) by mails.dpdk.org (Postfix) with ESMTP id E21544021F for ; Mon, 22 Apr 2024 12:54:57 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=GUMcylE1Bgv6MnWVdRmT4p157fZikVUz9hQSncZaZlhku+N7YBWfZKS1GUDIuyo68GWgDAb4R/0pgQ0zUGtWb58pl85MTF7IJYoL0JWnbYhc/0KXVrdxXWgPuxijn72G70BUDi4XVYCl4F/8h8gCQqZ+IyWykVKEIuwu0c126QXdgRyk86hGxi8AMzKnbAGVHw5LMmy5g1o5Yuo2ZTkM3WOaFDZrJzFA5LZehD9VhD+JJgEFc1sT7ovGTihipqdYamKZYpxH9Sw67+PslsLykzeV6JfQo+48M76wEBrQHHQQbz2r8G1g7fBh59GWrKo6YKozAol8UQWR69sjQu3tCw== 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=8OZ16qGnFitRFwtAQq3uzA5XE5hqMwXob2HT9yItAXE=; b=WP8t81qlHhmExWy9f4kBblKPg8HUtywJuU58hbO5bJn6s4QVIyKDKAeQlSyYrO5peZrDs9M4vB5lgdTwLhX6TrcwhNypJ1X8FDnqIl6WA8RBgeLdTImYyjgyASBhIXXlcvSsXGh1GzpgkJqW1BiNdQuDXQkUkXi4SVVJ5aIk3vkBqn4Z5i6r5hZWqCU3b0hP59La5dRO/u1VlOQWRY8p16hNzLpdunq42KUO4lcoBqGbfTicPOJi6WD/QWKs3i6ZEVTuNgUh+JBsR3Q+K0OGt5QB8GXtqhgxzcT0qFxkxo/Zu+gD9I7ZqAyj9XjIcuPZeiFJw7BWR3RAfUwlgy9tAg== 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=8OZ16qGnFitRFwtAQq3uzA5XE5hqMwXob2HT9yItAXE=; b=AhdsWuHu3MobuFbnkTVRwJaPUnsueoGMc+4KM9xJusZrLo762MMgHDavbQVeGo436Wm3nlOqJBam14H8GdN1qvWHbZgzRfOT5P/+Xge5k2absBTM1XGoUnLG8/+Ef+fybo2hQrXIZK6ebA9sKJaXKi8xpmkiEXdA4G6oOe44lbA= 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 CY5PR12MB6432.namprd12.prod.outlook.com (2603:10b6:930:38::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7472.44; Mon, 22 Apr 2024 10:54:55 +0000 Received: from CH2PR12MB4294.namprd12.prod.outlook.com ([fe80::282f:29d3:cac1:cde3]) by CH2PR12MB4294.namprd12.prod.outlook.com ([fe80::282f:29d3:cac1:cde3%7]) with mapi id 15.20.7472.044; Mon, 22 Apr 2024 10:54:53 +0000 Message-ID: Date: Mon, 22 Apr 2024 11:54:49 +0100 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v8] ethdev: fix strict aliasing lead to link cannot be up To: Chengwen Feng , thomas@monjalon.net Cc: dev@dpdk.org, huangdengdui@huawei.com, mb@smartsharesystems.com, stephen@networkplumber.org, roretzla@linux.microsoft.com References: <20240411030749.41874-1-fengchengwen@huawei.com> <20240422063813.23814-1-fengchengwen@huawei.com> Content-Language: en-US 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/6B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Scp9dIV7fsS5tpDwIs7BZNVM1l3NAdK+DLHqNxKuyO 8Zk= In-Reply-To: <20240422063813.23814-1-fengchengwen@huawei.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-ClientProxiedBy: LO3P265CA0014.GBRP265.PROD.OUTLOOK.COM (2603:10a6:600:bb::19) To CH2PR12MB4294.namprd12.prod.outlook.com (2603:10b6:610:a9::11) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CH2PR12MB4294:EE_|CY5PR12MB6432:EE_ X-MS-Office365-Filtering-Correlation-Id: eed6dc65-3369-4f53-7974-08dc62baa3a5 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: =?utf-8?B?NW1CMW9hWkJZQUdVUlF4YzRRcC9UNUlTMlM4VWFqOUQ2dCtYS1l6dDB6Smwr?= =?utf-8?B?ZFhJSVowSVd0K3AyTFhXamcreWUzS0ZSUlRHaThOazd1WmhHRFpvY0NBL1JB?= =?utf-8?B?NXFCUkZ1ZjlJejhPR0k1dGFuSVJDNkIzem1TN3FYaTd5dUxFL3FCbU05R0pr?= =?utf-8?B?MUNwUzEwVDhlTTZKN2ZaRUFoSlU5OFp2SFIrODZOdGxvcmdxQ0NTZ1Yrc0lT?= =?utf-8?B?amxUOEpXWUhWejNhYzMzejVxZW50VitjYVlVSGlyN3NjNXg1TEY3N3AxbVV0?= =?utf-8?B?ZGZ5U3lJMkVXY0VyWU8xR0RwZW1nbU93SE11dmhkSmdMeWRsYjhTWEYya3Ja?= =?utf-8?B?ZGF1YUVkZ21RbDlLL3hPa1dSMEdVRUhQNnE5R1ozK09MNUpHR01VZi8vSStV?= =?utf-8?B?emMvOElkTmpaems0QXdGUGFNa2pzTENxYXR5eW1YQlFMbmdUU0w4R25XRHo4?= =?utf-8?B?STFKQTNBMnRoajNqTU5QZVFaRzhwMG15bDluRER1Yz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S1hraVlTbzZtaFhXZjBy?= =?utf-8?B?SU1QYWJCdVYrOFpLbVNkNDFXWWo5NmdyZi9JQmk1eVhsY09wM0pUQ3Z2QnRm?= =?utf-8?B?OFNwMHY2Q1d6eUl6MncrUTRVb3c4ZzEvbzF1SENYTmtzaVkwcW1VdFgzYU9V?= =?utf-8?B?ZVZEOFAySlhUVzNHRWdnaytZUUN2UjVyQjBiQ1RWZHhkdTZBYUNJaFJyaG9L?= =?utf-8?Q?cnuAZn2y3HD0wNHvWm8u7Vki2BxRJ3BsJly/WNSjOY7s=3D?= 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)(376005)(1800799015)(366007); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?S3A2RGJEc3pNc05aMDAzRUZ0ZWpodTJFUnRLT004Tit6ZUNhZ0ltWjBTVkQv?= =?utf-8?B?SEhMaG1EbFVNOTZwL1YzWElwNmFoUzZSNld2SldlaVQraE1GeDMrLzNsZm9z?= =?utf-8?B?eFBJd0U2OCswZ3BRZklwM0R5ckpLTUJQSHVaR3ZCWVlSRGRSSUt1L0ZoT3ow?= =?utf-8?B?STZ3MU1FcFI1Vm9meitlV0xpWEQram4ydDg0andLdWZSWldMVEJudHc3QTB1?= =?utf-8?B?K2dpOWtzODVqSnRVL1VBaUVOTi9ZWGFmbHh2dGk1YVlKOHZ1aEQvVTdiSjA0?= =?utf-8?B?VSsxaEZnTDFPUjY1WFZlMmV3MVQ4cXFHZEV1aGQ1ZnFEc1FkNmZNd3oyZTJG?= =?utf-8?B?bGxsUERFMlpoOFFhRHlMSEdycGJrTkdLWndPWTZSNUhXSHZvZG1naWFOYm15?= =?utf-8?B?NVAxVklMVzlDS2J1Rk1WNE01R3hWS1lvTTB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83aVJuUDA4Q25aTzRNcHJ6aVQ5WVdsY2cz?= =?utf-8?B?R3ZwZ3pkQWhJcndVWmlZNWZsajM1bWVYYmhOVTIrU2ZHUVNWdnJXTitaNlBR?= =?utf-8?B?cUtpdERCd1NRWlJicFFCTTZUS2hnVmhVb0hvOUN0TE5WS2RSRTg4b0lnMm9R?= =?utf-8?B?RlN2NTk5aVFlTDMxYVBuSm1JYmhNVTJDWUNjcDdxcnVZckxTMDRYeGVJTklS?= =?utf-8?B?ZTRMK2pvWFhxVUNSS00yUTRmY05DTEVRRHB5K1p5UnIzY2VnVjZEdHB0ZzN3?= =?utf-8?B?a0ZiT1NlNnBuOXNZQXo2OFlLM2paYXFmVDNSazhhSEVucmczbzZUQWxtMWJh?= =?utf-8?B?c0VVZmV0VXNWaVFiWFhDSVl0TzNqeHRYQUwyUVh5bnZxaGF3dDNvaHRxVzQz?= =?utf-8?B?ZVYwTWo1ZHVSNENTbUVDdjJrbzBpdGFOUmM1Y1p6NWNIQjNFU2NLU2RXV2ht?= =?utf-8?B?RVRPQXdRQ2E5Z1ZIOFREVTUyR1gzeG9UNzZ6RTBGZExHQk9vUitxMjlVRVdm?= =?utf-8?B?NlM4aVptVGpuQTJ4YStua1VIa0didnVUeGdaM2RqWUxGQ3ZuOTRYMjFhYmJy?= =?utf-8?B?M2lTL280bDcrb2UrY3RCNStOa21CcjVnVStkQWdPUFZXeW9kWDhtZEdoemlC?= =?utf-8?B?bWlJRDJ5c2YvdG93MXF1OFdPb3FucklBQnFJUWNsaFpXZ3czb3F1RllLN01u?= =?utf-8?B?dGNZdC96cWIvMnE0K0U4S3hxUVFvSEZYK3g5Z0dQVGhVeWdhRFZEMjdMM3B0?= =?utf-8?Q?sBLgTTb6kYiE1UmJmTSddebtY?= X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-Network-Message-Id: eed6dc65-3369-4f53-7974-08dc62baa3a5 X-MS-Exchange-CrossTenant-AuthSource: CH2PR12MB4294.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 22 Apr 2024 10:54:52.9754 (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: LnmqEX0EUcuKthxhk4dEyRynn0eIdsqcbTTE6meu93Z5F0PMFm4IdrC34c3p+OWt X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY5PR12MB6432 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 4/22/2024 7:38 AM, Chengwen Feng wrote: > Fix a problem introduced by a compiler upgrade (from gcc10 to gcc12.3), > which will lead the hns3 NIC can't link up. The root cause is strict > aliasing violation in rte_eth_linkstatus_set() with hns3 driver, see > [1] for more details. > > This commit use union to avoid such aliasing violation. Also the > impacted components (cxgbe and qos_sched) have been adapted to the > struct change. > > [1] https://inbox.dpdk.org/dev/8175c905-e661-b910-7f20-59b6ab605c38@huawei.com/ > > Cc: stable@dpdk.org > > Signed-off-by: Chengwen Feng > Signed-off-by: Dengdui Huang > Acked-by: Morten Brørup > Acked-by: Ferruh Yigit Applied to dpdk-next-net/main, thanks.