[v4,10/16] net/ice: 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/ice/base/ice_osdep.h | 2 ++
1 file changed, 2 insertions(+)
@@ -187,6 +187,7 @@
#define BITS_PER_BYTE 8
/* memory allocation tracking */
+__rte_msvc_pack
struct ice_dma_mem {
void *va;
u64 pa;
@@ -194,6 +195,7 @@ struct ice_dma_mem {
const void *zone;
} __rte_packed;
+__rte_msvc_pack
struct ice_virt_mem {
void *va;
u32 size;