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 DED6C4263E; Tue, 26 Sep 2023 08:00:18 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 3EA1F40E4A; Tue, 26 Sep 2023 07:59:24 +0200 (CEST) Received: from mx0b-0016f401.pphosted.com (mx0a-0016f401.pphosted.com [67.231.148.174]) by mails.dpdk.org (Postfix) with ESMTP id 1B17C40E68 for ; Tue, 26 Sep 2023 07:59:21 +0200 (CEST) Received: from pps.filterd (m0045849.ppops.net [127.0.0.1]) by mx0a-0016f401.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 38Q5rcMN024020 for ; Mon, 25 Sep 2023 22:59:21 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : mime-version : content-transfer-encoding : content-type; s=pfpt0220; bh=hDB3XIcUvD4KerJSWwnKORu77Y/8zRmQ7bzMsGL2Oi4=; b=erW5H15w9gk/OIiWQHk6KPwxcJyDfAEjWOy/n3N09SVARv7KZhJPx+TPadMdu7zJX2kz 1PmtfBqEOx7GjdmqxMYVztvP9p+RHZzJAvoyuCSPFxDj8YeqdM1/ToCJmphkK9kU7G/L +C5iVHNw4QRcVYXJeAJAKL9NRCwpye8dIBCY+lHqJwkcqeWh9/7mr3HFCT61pCfxi8Yi fvHBj7o55TpWSVBSPGuJCfeSfKh4Ua45b+YivMrIZG1auZ5vOjNVuaytu/qxbt2tb6F/ aIqdEiK34ctBKJcHKr4FvzMVqXL7K8+HenC6DOWyvYmchuvzzGJTimT92W7bg4p83pzy tA== Received: from dc5-exch02.marvell.com ([199.233.59.182]) by mx0a-0016f401.pphosted.com (PPS) with ESMTPS id 3t9wcqr1v9-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT) for ; Mon, 25 Sep 2023 22:59:21 -0700 Received: from DC5-EXCH01.marvell.com (10.69.176.38) by DC5-EXCH02.marvell.com (10.69.176.39) with Microsoft SMTP Server (TLS) id 15.0.1497.48; Mon, 25 Sep 2023 22:59:19 -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.48 via Frontend Transport; Mon, 25 Sep 2023 22:59:19 -0700 Received: from hyd1554.marvell.com (unknown [10.29.57.11]) by maili.marvell.com (Postfix) with ESMTP id 7FCBF3F70C4; Mon, 25 Sep 2023 22:59:16 -0700 (PDT) From: Tejasree Kondoj To: Akhil Goyal CC: Vidya Sagar Velumuri , Anoob Joseph , Aakash Sasidharan , Gowrishankar Muthukrishnan , Subject: [PATCH v2 11/15] crypto/cnxk: minor shuffling in the sess structure Date: Tue, 26 Sep 2023 11:28:43 +0530 Message-ID: <20230926055847.2707473-12-ktejasree@marvell.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230926055847.2707473-1-ktejasree@marvell.com> References: <20230926055847.2707473-1-ktejasree@marvell.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Proofpoint-ORIG-GUID: -sughYmH9vi60KbesE2GfwdiXA0PFei0 X-Proofpoint-GUID: -sughYmH9vi60KbesE2GfwdiXA0PFei0 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.267,Aquarius:18.0.980,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2023-09-26_04,2023-09-25_01,2023-05-22_02 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: Vidya Sagar Velumuri Shuffle the fields in the session structure to make the fields byte aligned Signed-off-by: Vidya Sagar Velumuri --- drivers/crypto/cnxk/cnxk_se.h | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/drivers/crypto/cnxk/cnxk_se.h b/drivers/crypto/cnxk/cnxk_se.h index fdc1f3651c..1fbae54c76 100644 --- a/drivers/crypto/cnxk/cnxk_se.h +++ b/drivers/crypto/cnxk/cnxk_se.h @@ -31,30 +31,30 @@ enum cpt_dp_thread_type { struct cnxk_se_sess { struct rte_cryptodev_sym_session rte_sess; - uint16_t cpt_op : 4; - uint16_t zsk_flag : 4; - uint16_t aes_gcm : 1; - uint16_t aes_ccm : 1; - uint16_t aes_ctr : 1; - uint16_t chacha_poly : 1; - uint16_t is_null : 1; - uint16_t is_gmac : 1; - uint16_t chained_op : 1; - uint16_t auth_first : 1; - uint16_t aes_ctr_eea2 : 1; - uint16_t zs_cipher : 4; - uint16_t zs_auth : 4; - uint16_t dp_thr_type : 8; - uint16_t aad_length; + uint8_t aes_gcm : 1; + uint8_t aes_ccm : 1; + uint8_t aes_ctr : 1; + uint8_t chacha_poly : 1; + uint8_t is_null : 1; + uint8_t is_gmac : 1; + uint8_t chained_op : 1; + uint8_t auth_first : 1; + uint8_t aes_ctr_eea2 : 1; uint8_t is_sha3 : 1; uint8_t short_iv : 1; uint8_t is_sm3 : 1; uint8_t passthrough : 1; uint8_t is_sm4 : 1; - uint8_t rsvd : 3; + uint8_t rsvd : 2; + uint8_t cpt_op : 4; + uint8_t zsk_flag : 4; + uint8_t zs_cipher : 4; + uint8_t zs_auth : 4; + uint8_t dp_thr_type; uint8_t mac_len; uint8_t iv_length; uint8_t auth_iv_length; + uint16_t aad_length; uint16_t iv_offset; uint16_t auth_iv_offset; uint32_t salt; -- 2.25.1