[RFC 0/3] eal: make unaligned types really unaligned
From: Stephen Hemminger <stephen@networkplumber.org>
Date: 2026-09-04 22:10:04
UBSAN reported issues in the tests added by the RTE_PTR_ADD/SUB patch. The root cause is that unaligned_uint16_t, unaligned_uint32_t and unaligned_uint64_t are not really unaligned on x86; they only get an alignment of 1 when RTE_ARCH_STRICT_ALIGN is set. Once that is fixed, RTE_ARCH_STRICT_ALIGN is no longer needed and can be removed along with its last user in mlx5. Stephen Hemminger (3): eal: make unaligned really unaligned net/mlx5: drop unnecessary STRICT_ALIGN arm: remove no longer used RTE_ARCH_STRICT_ALIGN config/arm/meson.build | 1 - doc/guides/rel_notes/release_26_11.rst | 6 ++++++ drivers/net/mlx5/mlx5_tx.h | 12 +----------- lib/eal/include/rte_common.h | 9 +++------ 4 files changed, 10 insertions(+), 18 deletions(-) -- 2.51.0 Stephen Hemminger (3): eal: make unaligned really unaligned net/mlx5: drop unnecessary STRICT_ALIGN arm: remove no longer used RTE_ARCH_STRICT_ALIGN config/arm/meson.build | 1 - doc/guides/rel_notes/release_26_11.rst | 6 ++++++ drivers/net/mlx5/mlx5_tx.h | 12 +----------- lib/eal/include/rte_common.h | 9 +++------ 4 files changed, 10 insertions(+), 18 deletions(-) -- 2.53.0