From patchwork Thu Sep 21 11:48:16 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tejasree Kondoj X-Patchwork-Id: 131790 X-Patchwork-Delegate: gakhil@marvell.com Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 9BC5D425FF; Thu, 21 Sep 2023 13:49:39 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 28783410FC; Thu, 21 Sep 2023 13:48:57 +0200 (CEST) Received: from mx0b-0016f401.pphosted.com (mx0a-0016f401.pphosted.com [67.231.148.174]) by mails.dpdk.org (Postfix) with ESMTP id 29B4C40EE4 for ; Thu, 21 Sep 2023 13:48:55 +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 38L7OFqT001335 for ; Thu, 21 Sep 2023 04:48:54 -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=BQmIh9Enao8Wdm/xktJx0lX7Dw+3eICO+Txm2Ys+ZZryaRmHb+TmSAtUHBEcT0Y9Kohb /C9SWmwuigdfSzAJdo7h6A7ADrtk4h4cDn+xcBSI1VWdk72vNpdR+5tle76qMj6AhlaI ddPPj1syx1tG13M+2Qb3p2fqQgawtf2atmXKGRgrSPt9rHAYIMvRd1qWArh5rOZgiM1f yHC9qOowld50o4xIKBdrNmUmX1u4iTWyT/bQqBnFn5dxGUldNQjY1RhjjE2p7S2UMmtO njy5fntAIcZzMyPdhosd2klw4nnYTA+k6ZUDHPUjXvxHz48YhFX70Cj1tXL1u7d0QARC 4Q== Received: from dc5-exch01.marvell.com ([199.233.59.181]) by mx0a-0016f401.pphosted.com (PPS) with ESMTPS id 3t7u4ddvad-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT) for ; Thu, 21 Sep 2023 04:48:54 -0700 Received: from DC5-EXCH01.marvell.com (10.69.176.38) by DC5-EXCH01.marvell.com (10.69.176.38) with Microsoft SMTP Server (TLS) id 15.0.1497.48; Thu, 21 Sep 2023 04:48:52 -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; Thu, 21 Sep 2023 04:48:52 -0700 Received: from hyd1554.marvell.com (unknown [10.29.57.11]) by maili.marvell.com (Postfix) with ESMTP id 29A7C5B693F; Thu, 21 Sep 2023 04:48:49 -0700 (PDT) From: Tejasree Kondoj To: Akhil Goyal CC: Vidya Sagar Velumuri , Anoob Joseph , Aakash Sasidharan , Gowrishankar Muthukrishnan , Subject: [PATCH 11/15] crypto/cnxk: minor shuffling in the sess structure Date: Thu, 21 Sep 2023 17:18:16 +0530 Message-ID: <20230921114820.2526810-12-ktejasree@marvell.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230921114820.2526810-1-ktejasree@marvell.com> References: <20230921114820.2526810-1-ktejasree@marvell.com> MIME-Version: 1.0 X-Proofpoint-ORIG-GUID: lAkjk0PdSOhemFIawId70pcJPqzzkwfJ X-Proofpoint-GUID: lAkjk0PdSOhemFIawId70pcJPqzzkwfJ 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-21_09,2023-09-21_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;