[v4,08/16] net/i40e: 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/net/i40e/base/i40e_osdep.h | 2 ++
1 file changed, 2 insertions(+)
@@ -177,6 +177,7 @@ static inline uint64_t i40e_read64_addr(volatile void *addr)
#define ARRAY_SIZE(arr) RTE_DIM(arr)
/* memory allocation tracking */
+__rte_msvc_pack
struct i40e_dma_mem {
void *va;
u64 pa;
@@ -188,6 +189,7 @@ struct i40e_dma_mem {
i40e_allocate_dma_mem_d(h, m, s, a)
#define i40e_free_dma_mem(h, m) i40e_free_dma_mem_d(h, m)
+__rte_msvc_pack
struct i40e_virt_mem {
void *va;
u32 size;