[PATCH v4 10/16] net/ice: pack structures when building with MSVC
Tyler Retzlaff
roretzla at linux.microsoft.com
Tue Apr 16 02:05:07 CEST 2024
Add __rte_msvc_pack to all __rte_packed structs to cause packing
when building with MSVC.
Signed-off-by: Tyler Retzlaff <roretzla at linux.microsoft.com>
---
drivers/net/ice/base/ice_osdep.h | 2 ++
1 file changed, 2 insertions(+)
diff --git a/drivers/net/ice/base/ice_osdep.h b/drivers/net/ice/base/ice_osdep.h
index 0e14b93..087dc6a 100644
--- a/drivers/net/ice/base/ice_osdep.h
+++ b/drivers/net/ice/base/ice_osdep.h
@@ -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;
--
1.8.3.1
More information about the dev
mailing list