[PATCH v6 04/30] app/test: replace packed attributes

Tyler Retzlaff roretzla at linux.microsoft.com
Thu Dec 5 01:21:03 CET 2024


On Tue, Nov 26, 2024 at 04:52:15PM -0800, Andre Muezerie wrote:
> MSVC struct packing is not compatible with GCC. Replace macro
> __rte_packed with __rte_packed_begin to push existing pack value
> and set packing to 1-byte and macro __rte_packed_end to restore
> the pack value prior to the push.
> 
> Macro __rte_packed_end is deliberately utilized to trigger a
> MSVC compiler warning if no existing packing has been pushed allowing
> easy identification of locations where the __rte_packed_begin is
> missing.
> 
> Signed-off-by: Andre Muezerie <andremue at linux.microsoft.com>
> ---

Reviewed-by: Tyler Retzlaff <roretzla at linux.microsoft.com>



More information about the dev mailing list