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.
Note: DPD
Hi Shai,
Thanks for the backporting, patch queued to 23.11.1 staging branch.
From: shaib...@amazon.com
Sent: Monday, April 8, 2024 8:15 PM
To: ferruh.yi...@amd.com ; bl...@debian.org
; christian.ehrha...@canonical.com
; Xueming Li ;
ktray...@redhat.com
Cc: st
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.
Note: DPD
3 matches
Mail list logo