Re: [PATCH v8] ethdev: fix strict aliasing lead to link cannot be up

2024-04-22 Thread Ferruh Yigit
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

[PATCH v8] ethdev: fix strict aliasing lead to link cannot be up

2024-04-21 Thread Chengwen Feng
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 i