From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 19BC245D3C; Tue, 19 Nov 2024 05:37:49 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id EEAB0427C8; Tue, 19 Nov 2024 05:36:34 +0100 (CET) Received: from linux.microsoft.com (linux.microsoft.com [13.77.154.182]) by mails.dpdk.org (Postfix) with ESMTP id A5695410D5 for ; Tue, 19 Nov 2024 05:36:16 +0100 (CET) Received: by linux.microsoft.com (Postfix, from userid 1213) id 49AA123718AC; Mon, 18 Nov 2024 20:36:14 -0800 (PST) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com 49AA123718AC DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1731990975; bh=5cnSur7Wn/dRVRhw479Zi7hdTqOVtcrqstqrePLYmZY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=jd5Kt6untcd92tVMaTlkioxK81n7/AQpB3RCwClJ0X9o6vgMRWp4OwL8FMWPn2jhY iMuwe5GoDOwAPCwsxMKZYtBJz7CefzHC2wBkBoed0/+cCif7n8OlSRickndtLukju1 GbxIGI0A6F+Adi6scf2kS9UlnXCEmL6BieSTfP/c= From: Andre Muezerie To: roretzla@linux.microsoft.com Cc: Yuying.Zhang@intel.com, aman.deep.singh@intel.com, anatoly.burakov@intel.com, bruce.richardson@intel.com, byron.marohn@intel.com, conor.walsh@intel.com, cristian.dumitrescu@intel.com, david.hunt@intel.com, dev@dpdk.org, dsosnowski@nvidia.com, gakhil@marvell.com, jerinj@marvell.com, jingjing.wu@intel.com, kirill.rybalchenko@intel.com, konstantin.v.ananyev@yandex.ru, matan@nvidia.com, orika@nvidia.com, radu.nicolau@intel.com, ruifeng.wang@arm.com, sameh.gobriel@intel.com, sivaprasad.tummala@amd.com, skori@marvell.com, stephen@networkplumber.org, suanmingm@nvidia.com, vattunuru@marvell.com, viacheslavo@nvidia.com, vladimir.medvedkin@intel.com, yipeng1.wang@intel.com Subject: [PATCH v5 16/16] crypto/mlx5: pack structures when building with MSVC Date: Mon, 18 Nov 2024 20:35:41 -0800 Message-Id: <1731990941-10001-17-git-send-email-andremue@linux.microsoft.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1731990941-10001-1-git-send-email-andremue@linux.microsoft.com> References: <1710968771-16435-1-git-send-email-roretzla@linux.microsoft.com> <1731990941-10001-1-git-send-email-andremue@linux.microsoft.com> X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org From: Tyler Retzlaff Add __rte_msvc_pack to all __rte_packed structs to cause packing when building with MSVC. Signed-off-by: Tyler Retzlaff --- drivers/crypto/mlx5/mlx5_crypto.h | 2 ++ drivers/crypto/mlx5/mlx5_crypto_gcm.c | 1 + 2 files changed, 3 insertions(+) diff --git a/drivers/crypto/mlx5/mlx5_crypto.h b/drivers/crypto/mlx5/mlx5_crypto.h index 547bb490e2..80a7a38f17 100644 --- a/drivers/crypto/mlx5/mlx5_crypto.h +++ b/drivers/crypto/mlx5/mlx5_crypto.h @@ -32,6 +32,7 @@ enum mlx5_crypto_mode { MLX5_CRYPTO_IPSEC_OPT, }; +__rte_msvc_pack struct mlx5_crypto_ipsec_mem { uint8_t mem[MLX5_CRYPTO_GCM_IPSEC_IV_SIZE]; } __rte_packed; @@ -108,6 +109,7 @@ struct mlx5_crypto_devarg_params { enum mlx5_crypto_mode crypto_mode; }; +__rte_msvc_pack struct mlx5_crypto_session { union { /**< AES-XTS configuration. */ diff --git a/drivers/crypto/mlx5/mlx5_crypto_gcm.c b/drivers/crypto/mlx5/mlx5_crypto_gcm.c index cd21605bd2..005be4d4bf 100644 --- a/drivers/crypto/mlx5/mlx5_crypto_gcm.c +++ b/drivers/crypto/mlx5/mlx5_crypto_gcm.c @@ -62,6 +62,7 @@ struct mlx5_crypto_gcm_data { uint32_t dst_mkey; }; +__rte_msvc_pack struct mlx5_crypto_gcm_tag_cpy_info { void *digest; uint8_t tag_len; -- 2.47.0.vfs.0.3