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 A208B43CA6; Fri, 15 Mar 2024 02:55:51 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 1C7C142DCA; Fri, 15 Mar 2024 02:55:51 +0100 (CET) Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.16]) by mails.dpdk.org (Postfix) with ESMTP id 483EF410FC; Fri, 15 Mar 2024 02:55:47 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1710467749; x=1742003749; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=YtV6bSfcHf6+jesTWb1/lEEoZuRB/cdwFTMLeh+ENw0=; b=P+noeFlq8FKGO2UvIdkzEVgkGsf/2MUoq5rqVB3vCifroNlLnVQDmunF 71orU5vgbOIeQIh2Vqr/VO5pPUnYmkaGTj3sf9+Z0Z6YoUfLBsvY26nLh RaexwiJzBVYxB/93deTLsOdi6MOj5UCE6Nd6Sey5SGwyuy17ChZj8lVwb 5qfX6/He5lRazm3AdhAcSfmyhfYMpkTtMa8kxuqpXzfP4aQz+dMv8Ei7c 7LbB+NLj5YUd8IXj+eaPxmL/LX7nOmb66XOs8b7fnyOtuuuXhchH6yE98 u4LKzPUWIbNA+RxDJo+GhowJ1uUE8JhA8GImDYQCeE9iDGAAte4J1qGz4 w==; X-IronPort-AV: E=McAfee;i="6600,9927,11013"; a="5451011" X-IronPort-AV: E=Sophos;i="6.07,127,1708416000"; d="scan'208";a="5451011" Received: from orviesa010.jf.intel.com ([10.64.159.150]) by orvoesa108.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 14 Mar 2024 18:55:46 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.07,127,1708416000"; d="scan'208";a="12415436" Received: from unknown (HELO localhost.localdomain) ([10.239.252.55]) by orviesa010-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 14 Mar 2024 18:55:45 -0700 From: Wenwu Ma To: dev@dpdk.org, fengchengwen@huawei.com Cc: songx.jiale@intel.com, Wenwu Ma , stable@dpdk.org Subject: [PATCH v2] dmadev: fix structure alignment Date: Fri, 15 Mar 2024 09:43:31 +0800 Message-Id: <20240315014331.1376720-1-wenwux.ma@intel.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20240308053711.1260154-1-wenwux.ma@intel.com> References: <20240308053711.1260154-1-wenwux.ma@intel.com> MIME-Version: 1.0 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 The structure rte_dma_dev needs only 8 byte alignment. This patch replaces __rte_cache_aligned of rte_dma_dev with __rte_aligned(8). Fixes: b36970f2e13e ("dmadev: introduce DMA device library") Cc: stable@dpdk.org Signed-off-by: Wenwu Ma --- v2: - Because of performance drop, adjust the code to no longer demand cache line alignment --- lib/dmadev/rte_dmadev_pmd.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/dmadev/rte_dmadev_pmd.h b/lib/dmadev/rte_dmadev_pmd.h index 58729088ff..b569bb3502 100644 --- a/lib/dmadev/rte_dmadev_pmd.h +++ b/lib/dmadev/rte_dmadev_pmd.h @@ -122,7 +122,7 @@ enum rte_dma_dev_state { * @internal * The generic data structure associated with each DMA device. */ -struct __rte_cache_aligned rte_dma_dev { +struct __rte_aligned(8) rte_dma_dev { /** Device info which supplied during device initialization. */ struct rte_device *device; struct rte_dma_dev_data *data; /**< Pointer to shared device data. */ -- 2.25.1