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

2024-04-13 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. Note: DPD

Re: [PATCH v2 1/1] net/ena/base: fix metrics excessive memory consumption

2024-04-13 Thread Xueming Li
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

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

2024-04-13 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. Note: DPD