[v4,05/16] common/idpf: pack structures when building with MSVC
Checks
Commit Message
Add __rte_msvc_pack to all __rte_packed structs to cause packing
when building with MSVC.
Signed-off-by: Tyler Retzlaff <roretzla@linux.microsoft.com>
---
drivers/common/idpf/base/idpf_osdep.h | 2 ++
1 file changed, 2 insertions(+)
@@ -180,6 +180,7 @@ static inline uint64_t idpf_read_addr64(volatile void *addr)
#define BITS_PER_BYTE 8
/* memory allocation tracking */
+__rte_msvc_pack
struct idpf_dma_mem {
void *va;
u64 pa;
@@ -187,6 +188,7 @@ struct idpf_dma_mem {
const void *zone;
} __rte_packed;
+__rte_msvc_pack
struct idpf_virt_mem {
void *va;
u32 size;