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 91DA9454FF for ; Wed, 26 Jun 2024 10:48:31 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 821C242E8F; Wed, 26 Jun 2024 10:48:31 +0200 (CEST) Received: from mx0b-0016f401.pphosted.com (mx0b-0016f401.pphosted.com [67.231.156.173]) by mails.dpdk.org (Postfix) with ESMTP id F27F840611; Wed, 26 Jun 2024 10:48:05 +0200 (CEST) Received: from pps.filterd (m0045851.ppops.net [127.0.0.1]) by mx0b-0016f401.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 45Q5SCRf005544; Wed, 26 Jun 2024 01:48:05 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=pfpt0220; bh=u we3iB586GIApTu5Gh3FXEJ2gWRSuOjjmrAoOMDfOsA=; b=KmJtJS+BLhDQOEZ4h 0wD3+S0xANnCWGgpgT7IHTX39/M4plrxwS4kdoXerY85+3/mIskvIFN8mUyHnYhe 3YTi8uS5XtSNsPRgijMWtW6Ks3Px9zRGNq2UPu7pNZGzRZhYGWakiApEwzwNsnZ+ T+Z07VwpATWCu0YG/SAxnzDnRanTVLENIYRHi/3f85gcrsfqLTQnabSpVgQ6oJ4l uRUIAkajdYo6CqkwUBqD0upEcKBw3klEvmMjwp7EH606hkkGJVlN3vqh6uTzuuih yK/odu5mrdYVdTTaU/oPJeXEV0vgSXZFsmSfw4fSsXBJfBPUA05sMdOCdnPO+yAt n3JRQ== Received: from dc5-exch05.marvell.com ([199.233.59.128]) by mx0b-0016f401.pphosted.com (PPS) with ESMTPS id 400cur8jge-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 26 Jun 2024 01:48:05 -0700 (PDT) Received: from DC5-EXCH05.marvell.com (10.69.176.209) by DC5-EXCH05.marvell.com (10.69.176.209) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.4; Wed, 26 Jun 2024 01:48:03 -0700 Received: from maili.marvell.com (10.69.176.80) by DC5-EXCH05.marvell.com (10.69.176.209) with Microsoft SMTP Server id 15.2.1544.4 via Frontend Transport; Wed, 26 Jun 2024 01:48:03 -0700 Received: from BG-LT91401.marvell.com (BG-LT91401.marvell.com [10.28.168.34]) by maili.marvell.com (Postfix) with ESMTP id 9C5083F707C; Wed, 26 Jun 2024 01:48:01 -0700 (PDT) From: Gowrishankar Muthukrishnan To: , Ciara Power , Akhil Goyal , Fan Zhang , Anoob Joseph CC: Gowrishankar Muthukrishnan , Subject: [PATCH v2 2/6] app/crypto-perf: remove redundant local varriable Date: Wed, 26 Jun 2024 14:17:41 +0530 Message-ID: <20240626084747.1595-3-gmuthukrishn@marvell.com> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20240626084747.1595-1-gmuthukrishn@marvell.com> References: <20240615115309.2678-1-gmuthukrishn@marvell.com> <20240626084747.1595-1-gmuthukrishn@marvell.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Proofpoint-ORIG-GUID: 9UxHSAkHoD96A3bcMJcz2mYSCqsCTft- X-Proofpoint-GUID: 9UxHSAkHoD96A3bcMJcz2mYSCqsCTft- X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1039,Hydra:6.0.680,FMLib:17.12.28.16 definitions=2024-06-26_03,2024-06-25_01,2024-05-17_01 X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: stable-bounces@dpdk.org Remove redundant local variable used for asym session. Fixes: a29bb248988 ("cryptodev: hide asymmetric session structure") Fixes: 2973dbf93b4 ("security: hide session structure") Cc: stable@dpdk.org Signed-off-by: Gowrishankar Muthukrishnan --- app/test-crypto-perf/cperf_ops.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/app/test-crypto-perf/cperf_ops.c b/app/test-crypto-perf/cperf_ops.c index 4ca001b721..a802281a71 100644 --- a/app/test-crypto-perf/cperf_ops.c +++ b/app/test-crypto-perf/cperf_ops.c @@ -21,7 +21,6 @@ cperf_set_ops_asym(struct rte_crypto_op **ops, uint64_t *tsc_start __rte_unused) { uint16_t i; - void *asym_sess = (void *)sess; for (i = 0; i < nb_ops; i++) { struct rte_crypto_asym_op *asym_op = ops[i]->asym; @@ -31,7 +30,7 @@ cperf_set_ops_asym(struct rte_crypto_op **ops, asym_op->modex.base.length = options->modex_data->base.len; asym_op->modex.result.data = options->modex_data->result.data; asym_op->modex.result.length = options->modex_data->result.len; - rte_crypto_op_attach_asym_session(ops[i], asym_sess); + rte_crypto_op_attach_asym_session(ops[i], sess); } } @@ -62,7 +61,6 @@ cperf_set_ops_security(struct rte_crypto_op **ops, for (i = 0; i < nb_ops; i++) { struct rte_crypto_sym_op *sym_op = ops[i]->sym; - void *sec_sess = (void *)sess; uint32_t buf_sz; uint32_t *per_pkt_hfn = rte_crypto_op_ctod_offset(ops[i], @@ -70,7 +68,7 @@ cperf_set_ops_security(struct rte_crypto_op **ops, *per_pkt_hfn = options->pdcp_ses_hfn_en ? 0 : PDCP_DEFAULT_HFN; ops[i]->status = RTE_CRYPTO_OP_STATUS_NOT_PROCESSED; - rte_security_attach_session(ops[i], sec_sess); + rte_security_attach_session(ops[i], sess); sym_op->m_src = (struct rte_mbuf *)((uint8_t *)ops[i] + src_buf_offset); @@ -127,7 +125,6 @@ cperf_set_ops_security_ipsec(struct rte_crypto_op **ops, uint16_t iv_offset __rte_unused, uint32_t *imix_idx, uint64_t *tsc_start) { - void *sec_sess = sess; const uint32_t test_buffer_size = options->test_buffer_size; uint64_t tsc_start_temp, tsc_end_temp; uint16_t i = 0; @@ -140,7 +137,7 @@ cperf_set_ops_security_ipsec(struct rte_crypto_op **ops, uint32_t offset = test_buffer_size; ops[i]->status = RTE_CRYPTO_OP_STATUS_NOT_PROCESSED; - rte_security_attach_session(ops[i], sec_sess); + rte_security_attach_session(ops[i], sess); sym_op->m_src = (struct rte_mbuf *)((uint8_t *)ops[i] + src_buf_offset); sym_op->m_src->pkt_len = test_buffer_size; -- 2.25.1