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

2024-04-12 Thread Morten Brørup
> From: fengchengwen [mailto:fengcheng...@huawei.com] > Sent: Friday, 12 April 2024 05.28 [...] > >> @@ -1701,12 +1696,8 @@ static inline void > >> rte_eth_linkstatus_get(const struct rte_eth_dev *dev, > >> struct rte_eth_link *link) > >> { > >> - RTE_ATOMIC(uint64_t) *src =

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

2024-04-11 Thread fengchengwen
Hi Morten, On 2024/4/11 20:44, Morten Brørup wrote: >> From: Chengwen Feng [mailto:fengcheng...@huawei.com] >> Sent: Thursday, 11 April 2024 14.04 >> >> 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 >

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

2024-04-11 Thread Morten Brørup
> From: Chengwen Feng [mailto:fengcheng...@huawei.com] > Sent: Thursday, 11 April 2024 14.04 > > 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