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 B451643BBD; Sat, 24 Feb 2024 09:24:05 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 331D6402CC; Sat, 24 Feb 2024 09:23:55 +0100 (CET) Received: from linux.microsoft.com (linux.microsoft.com [13.77.154.182]) by mails.dpdk.org (Postfix) with ESMTP id 32159402C8 for ; Sat, 24 Feb 2024 09:22:12 +0100 (CET) Received: by linux.microsoft.com (Postfix, from userid 1086) id 5C54520B74C3; Sat, 24 Feb 2024 00:22:11 -0800 (PST) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com 5C54520B74C3 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1708762931; bh=I65yUqtwj8s8urmIJt98K+QxCg4DS7is1k8r7VUonlY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=GHbRGY58dA29vK2AqDVVWOmBOwDqJ+vVvZK964XpxQbDraV99vjY9ak9ZFWORi94s VkXGvAGJFoU4qmGdatq7W03uUEUnKYSuPNIu0vCugzzf78jsY+1czEbVQ6L0kBW8DY AfvgTj3DmTHhEUAoFdOkI1YrPJja4O01RB5qZ2Dw= From: Tyler Retzlaff To: dev@dpdk.org Cc: Ajit Khaparde , Andrew Boyer , Andrew Rybchenko , Bruce Richardson , Chenbo Xia , Chengwen Feng , Dariusz Sosnowski , David Christensen , Hyong Youb Kim , Jerin Jacob , Jie Hai , Jingjing Wu , John Daley , Kevin Laatz , Kiran Kumar K , Konstantin Ananyev , Maciej Czekaj , Matan Azrad , Maxime Coquelin , Nithin Dabilpuram , Ori Kam , Ruifeng Wang , Satha Rao , Somnath Kotur , Suanming Mou , Sunil Kumar Kori , Viacheslav Ovsiienko , Yisen Zhuang , Yuying Zhang , mb@smartsharesystems.com, Tyler Retzlaff Subject: [PATCH v5 03/22] security: expand rte markers empty when building with MSVC Date: Sat, 24 Feb 2024 00:21:48 -0800 Message-Id: <1708762927-14126-4-git-send-email-roretzla@linux.microsoft.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1708762927-14126-1-git-send-email-roretzla@linux.microsoft.com> References: <1706657173-26166-1-git-send-email-roretzla@linux.microsoft.com> <1708762927-14126-1-git-send-email-roretzla@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 RTE_MARKER typedefs are a GCC extension unsupported by MSVC. Use __rte_marker to expand RTE_MARKER fields empty in rte_security_session struct. Make slight adjustment to cacheline1 __rte_cache_min_aligned as to continue maintaining correct alignment with or without the marker expanding empty. Signed-off-by: Tyler Retzlaff --- lib/security/rte_security_driver.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/security/rte_security_driver.h b/lib/security/rte_security_driver.h index faa4074..a25ccd0 100644 --- a/lib/security/rte_security_driver.h +++ b/lib/security/rte_security_driver.h @@ -24,7 +24,7 @@ * Security session to be used by library for internal usage */ struct rte_security_session { - RTE_MARKER cacheline0; + __rte_marker(RTE_MARKER, cacheline0) uint64_t opaque_data; /**< Opaque user defined data */ uint64_t fast_mdata; @@ -32,7 +32,8 @@ struct rte_security_session { rte_iova_t driver_priv_data_iova; /**< session private data IOVA address */ - RTE_MARKER cacheline1 __rte_cache_min_aligned; + __rte_cache_min_aligned + __rte_marker(RTE_MARKER, cacheline1) uint8_t driver_priv_data[]; /**< Private session material, variable size (depends on driver) */ }; -- 1.8.3.1