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/[email protected]/
> 
> Cc: [email protected]
> 
> Signed-off-by: Chengwen Feng <[email protected]>
> Signed-off-by: Dengdui Huang <[email protected]>
> Acked-by: Morten Brørup <[email protected]>
>

Acked-by: Ferruh Yigit <[email protected]>

Applied to dpdk-next-net/main, thanks.

Reply via email to