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 D2FDE4546C; Sat, 15 Jun 2024 13:53:47 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id B8AB3427E2; Sat, 15 Jun 2024 13:53:45 +0200 (CEST) Received: from mx0b-0016f401.pphosted.com (mx0b-0016f401.pphosted.com [67.231.156.173]) by mails.dpdk.org (Postfix) with ESMTP id 13BBF427B4 for ; Sat, 15 Jun 2024 13:53:43 +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 45FBqqWj008250; Sat, 15 Jun 2024 04:53:43 -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=b iPlrA5OKUarLDTIBqOZ3dv4i1n9tKNhcxkjS7WypK8=; b=LPmazMw9i+0rlwXZg Es7qRCrGD6GakDIINGYEhDvNFXt+8Os2Wn9PD6nEGxLhSLwVRgNgmWJ6QTfgW3eN 8MI1Umvcq83VLG3hMsH7n+tda7UGdoC2H0ii4HZUuZte7Fpi2e762aUaRyC14RR+ dL7L13vHmMc7IBPIPn5YLjo0UvJsmh3pio8QkRELg8IUxgjpLekNf204TbQeTCsk VTaJfsiyIlfDIYEsZqEBpAeIIxacJhM+KcTH8XL1M5CpxmOuJftzahRKSFfAvRSo jKcY4JzGTxEv5IPT/T1iCP/4Kla2+/Ou8oWBTUzMLhjxeUtkZq4XZmTYYTv6849M 5Q6kA== Received: from dc6wp-exch02.marvell.com ([4.21.29.225]) by mx0b-0016f401.pphosted.com (PPS) with ESMTPS id 3ysafh002w-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Sat, 15 Jun 2024 04:53:43 -0700 (PDT) Received: from DC6WP-EXCH02.marvell.com (10.76.176.209) by DC6WP-EXCH02.marvell.com (10.76.176.209) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.4; Sat, 15 Jun 2024 04:53:42 -0700 Received: from maili.marvell.com (10.69.176.80) by DC6WP-EXCH02.marvell.com (10.76.176.209) with Microsoft SMTP Server id 15.2.1544.4 via Frontend Transport; Sat, 15 Jun 2024 04:53:42 -0700 Received: from BG-LT91401.marvell.com (unknown [10.28.168.34]) by maili.marvell.com (Postfix) with ESMTP id 85F935B6944; Sat, 15 Jun 2024 04:53:40 -0700 (PDT) From: Gowrishankar Muthukrishnan To: , Ciara Power , Anoob Joseph , Fan Zhang , Akhil Goyal CC: Gowrishankar Muthukrishnan Subject: [PATCH v1 2/6] app/crypto-perf: remove redundant local varriable Date: Sat, 15 Jun 2024 17:23:03 +0530 Message-ID: <20240615115309.2678-3-gmuthukrishn@marvell.com> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20240615115309.2678-1-gmuthukrishn@marvell.com> References: <20240615115309.2678-1-gmuthukrishn@marvell.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Proofpoint-ORIG-GUID: 9BWTo2EjtEK9bBgWItcIkyEEmNufA59C X-Proofpoint-GUID: 9BWTo2EjtEK9bBgWItcIkyEEmNufA59C 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-15_08,2024-06-14_03,2024-05-17_01 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 Remove redundant local variable used for asym session. Fixes: a29bb248988 ("cryptodev: hide asymmetric session structure") Fixes: 2973dbf93b4 ("security: hide session structure") 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