[PATCH v3 16/16] crypto/mlx5: pack structures when building with MSVC
    Tyler Retzlaff 
    roretzla at linux.microsoft.com
       
    Tue Apr 16 01:51:19 CEST 2024
    
    
  
Add __rte_msvc_pack to all __rte_packed structs to cause packing
packing when building with MSVC.
Signed-off-by: Tyler Retzlaff <roretzla at linux.microsoft.com>
---
 drivers/crypto/mlx5/mlx5_crypto.h | 1 +
 1 file changed, 1 insertion(+)
diff --git a/drivers/crypto/mlx5/mlx5_crypto.h b/drivers/crypto/mlx5/mlx5_crypto.h
index 36dacdc..3b4916d 100644
--- a/drivers/crypto/mlx5/mlx5_crypto.h
+++ b/drivers/crypto/mlx5/mlx5_crypto.h
@@ -95,6 +95,7 @@ struct mlx5_crypto_devarg_params {
 	uint32_t is_aes_gcm:1;
 };
 
+__rte_msvc_pack
 struct mlx5_crypto_session {
 	union {
 		/**< AES-XTS configuration. */
-- 
1.8.3.1
    
    
More information about the dev
mailing list