[PATCH v3 39/39] ip_frag: use C11 alignas

Morten Brørup mb at smartsharesystems.com
Wed Feb 14 09:22:12 CET 2024


> From: Tyler Retzlaff [mailto:roretzla at linux.microsoft.com]
> Sent: Wednesday, 14 February 2024 08.06
> 
> * Move __rte_aligned from the end of {struct,union} definitions to
>   be between {struct,union} and tag.
> 
>   The placement between {struct,union} and the tag allows the desired
>   alignment to be imparted on the type regardless of the toolchain
> being
>   used for all of GCC, LLVM, MSVC compilers building both C and C++.
> 
> * Replace use of __rte_aligned(a) on variables/fields with alignas(a).
> 
> Signed-off-by: Tyler Retzlaff <roretzla at linux.microsoft.com>
> ---

Series-acked-by: Morten Brørup <mb at smartsharesystems.com>



More information about the dev mailing list