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 60215454AA; Wed, 19 Jun 2024 17:01:56 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 0037D42D2B; Wed, 19 Jun 2024 17:01:52 +0200 (CEST) Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by mails.dpdk.org (Postfix) with ESMTP id E273742D2B for ; Wed, 19 Jun 2024 17:01:51 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1718809311; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=fjD7LQ2GMNox6HeaE1uz76MSExEGPQk/BIm200guxtA=; b=eVI7knMJlL7z58KKu268vLnWApLbR7BI3d7OVXMFxztzaD0Hfnxy8QC4yAJ8/iAns9Ovqz tMa4XEE3X7FAXWG5d4ZbK1x15J7x1mX82dySYNz5d3c2NUsBpFZX+9Iav9sX1W80EzvL3q MiNgxCDz53HvIJyxCY/TLs4whd/2ly4= Received: from mx-prod-mc-05.mail-002.prod.us-west-2.aws.redhat.com (ec2-54-186-198-63.us-west-2.compute.amazonaws.com [54.186.198.63]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-650-zuNj49N9NSW_UBKDkfVKFg-1; Wed, 19 Jun 2024 11:01:49 -0400 X-MC-Unique: zuNj49N9NSW_UBKDkfVKFg-1 Received: from mx-prod-int-01.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-01.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx-prod-mc-05.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 61FDE1956089; Wed, 19 Jun 2024 15:01:47 +0000 (UTC) Received: from dmarchan.redhat.com (unknown [10.45.225.89]) by mx-prod-int-01.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id 0B3EB3000225; Wed, 19 Jun 2024 15:01:44 +0000 (UTC) From: David Marchand To: dev@dpdk.org Cc: roretzla@linux.microsoft.com, =?UTF-8?q?Morten=20Br=C3=B8rup?= , Stephen Hemminger , Akhil Goyal , Anoob Joseph Subject: [PATCH v12 3/4] security: remove marker fields Date: Wed, 19 Jun 2024 17:01:25 +0200 Message-ID: <20240619150126.1037902-4-david.marchand@redhat.com> In-Reply-To: <20240619150126.1037902-1-david.marchand@redhat.com> References: <1706657173-26166-1-git-send-email-roretzla@linux.microsoft.com> <20240619150126.1037902-1-david.marchand@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.4.1 on 10.30.177.4 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 RTE_MARKER typedefs are a GCC extension unsupported by MSVC. Remove RTE_MARKER fields from rte_mbuf struct. Maintain alignment of fields after removed cacheline1 marker by placing C11 alignas(RTE_CACHE_LINE_MIN_SIZE). Signed-off-by: Tyler Retzlaff Reviewed-by: Morten Brørup Acked-by: Stephen Hemminger --- Changes since v11: - removed RN update, as this change impacts only a internal driver structure and no intree code refers to it, --- lib/security/rte_security_driver.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/security/rte_security_driver.h b/lib/security/rte_security_driver.h index 09829abd4d..9bb5052a4c 100644 --- a/lib/security/rte_security_driver.h +++ b/lib/security/rte_security_driver.h @@ -24,7 +24,6 @@ extern "C" { * Security session to be used by library for internal usage */ struct rte_security_session { - RTE_MARKER cacheline0; uint64_t opaque_data; /**< Opaque user defined data */ uint64_t fast_mdata; @@ -32,7 +31,7 @@ struct rte_security_session { rte_iova_t driver_priv_data_iova; /**< session private data IOVA address */ - alignas(RTE_CACHE_LINE_MIN_SIZE) RTE_MARKER cacheline1; + alignas(RTE_CACHE_LINE_MIN_SIZE) uint8_t driver_priv_data[]; /**< Private session material, variable size (depends on driver) */ }; -- 2.45.1