From patchwork Tue Jul 21 04:16:18 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tejasree Kondoj X-Patchwork-Id: 74512 X-Patchwork-Delegate: gakhil@marvell.com Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 8A154A0526; Tue, 21 Jul 2020 05:22:02 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 566741BFEF; Tue, 21 Jul 2020 05:22:01 +0200 (CEST) Received: from mx0b-0016f401.pphosted.com (mx0a-0016f401.pphosted.com [67.231.148.174]) by dpdk.org (Postfix) with ESMTP id C6C731BFEC for ; Tue, 21 Jul 2020 05:21:59 +0200 (CEST) Received: from pps.filterd (m0045849.ppops.net [127.0.0.1]) by mx0a-0016f401.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id 06L3GOSR029217; Mon, 20 Jul 2020 20:21:58 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com; h=from : to : cc : subject : date : message-id : mime-version : content-transfer-encoding : content-type; s=pfpt0818; bh=0uREQs4b8YkiqY0RRxunV0DSZnwpZm2mCObUs7yGlxE=; b=CihbaMKQB67dqIbVS/oyYleES8qlLGFGjhzzF2+6Rwr+wtfSX2Ns+gq59QLM9J3mxwDI JeAwTegPN5tY74HiEdix5o1j/ARQTPi5+ENdjedj/jZvYY2UEwapF8LiHZlXjaYW95aJ XSL+0fwtKHpNx7cZAyd0Nq8hBL3JwmDIYNPvz7qJdtRaeYc4ejouPT5P/VWb4Qqk6xRa 0oNcfqZCpP+gFhUxHWlfqCXdxxPYLczwGioGOjbqcp6X/bhykzU+k6CDl0kSR/o7gk05 dKRf1ul+f25OVoiGMsQAy2igA6U/vxIZN/MzhAPOLQNPcQK9i3IH3Id7gtHRcgTsILlK 6g== Received: from sc-exch04.marvell.com ([199.233.58.184]) by mx0a-0016f401.pphosted.com with ESMTP id 32bxenhsxg-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Mon, 20 Jul 2020 20:21:58 -0700 Received: from DC5-EXCH01.marvell.com (10.69.176.38) by SC-EXCH04.marvell.com (10.93.176.84) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Mon, 20 Jul 2020 20:21:57 -0700 Received: from maili.marvell.com (10.69.176.80) by DC5-EXCH01.marvell.com (10.69.176.38) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Mon, 20 Jul 2020 20:21:57 -0700 Received: from hyd1554T5810.caveonetworks.com.com (unknown [10.29.57.11]) by maili.marvell.com (Postfix) with ESMTP id BF5C33F7040; Mon, 20 Jul 2020 20:21:54 -0700 (PDT) From: Tejasree Kondoj To: Akhil Goyal , Ferruh Yigit , Radu Nicolau CC: Tejasree Kondoj , Narayana Prasad , Anoob Joseph , Vamsi Attunuru , Date: Tue, 21 Jul 2020 09:46:18 +0530 Message-ID: <20200721041618.29603-1-ktejasree@marvell.com> X-Mailer: git-send-email 2.27.0 MIME-Version: 1.0 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.235, 18.0.687 definitions=2020-07-20_19:2020-07-20, 2020-07-20 signatures=0 Subject: [dpdk-dev] [PATCH] crypto/octeontx2: fix structure alignment X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" The structure cpt_request_info needs only 8 byte alignment. This patch replaces __rte_cache_aligned of cpt_request_info with __rte_aligned(8) and removes __rte_aligned(8) in cpt_meta_info structure. Fixes: fab634eb87ca ("crypto/octeontx2: support security session data path") Signed-off-by: Tejasree Kondoj Acked-by: Anoob Joseph --- drivers/common/cpt/cpt_common.h | 2 +- drivers/crypto/octeontx2/otx2_cryptodev.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/common/cpt/cpt_common.h b/drivers/common/cpt/cpt_common.h index 56bfea4953..0141b2aed5 100644 --- a/drivers/common/cpt/cpt_common.h +++ b/drivers/common/cpt/cpt_common.h @@ -76,6 +76,6 @@ struct cpt_request_info { /** Control path fields */ uint64_t time_out; uint8_t extra_time; -} __rte_cache_aligned; +} __rte_aligned(8); #endif /* _CPT_COMMON_H_ */ diff --git a/drivers/crypto/octeontx2/otx2_cryptodev.h b/drivers/crypto/octeontx2/otx2_cryptodev.h index f329741b38..a00f3d696e 100644 --- a/drivers/crypto/octeontx2/otx2_cryptodev.h +++ b/drivers/crypto/octeontx2/otx2_cryptodev.h @@ -38,7 +38,7 @@ struct cpt_meta_info { uint64_t deq_op_info[4]; uint64_t comp_code_sz; union cpt_res_s cpt_res __rte_aligned(16); - struct cpt_request_info cpt_req __rte_aligned(8); + struct cpt_request_info cpt_req; }; #define CPT_LOGTYPE otx2_cpt_logtype