Re: [PATCH v6 02/30] eal/include: add new packing macros

2024-12-04 Thread Tyler Retzlaff
On Tue, Nov 26, 2024 at 04:52:13PM -0800, Andre Muezerie wrote: > MSVC struct packing is not compatible with GCC. Add macro > __rte_packed_begin which can be used to push existing pack value > and set packing to 1-byte. Add macro __rte_packed_end to restore > the pack value prior to the push. > >

[PATCH v6 02/30] eal/include: add new packing macros

2024-11-26 Thread Andre Muezerie
MSVC struct packing is not compatible with GCC. Add macro __rte_packed_begin which can be used to push existing pack value and set packing to 1-byte. Add 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 w