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 5A1DEA0C46; Tue, 31 Aug 2021 15:08:14 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id AE01340E01; Tue, 31 Aug 2021 15:08:11 +0200 (CEST) Received: from mx0b-0016f401.pphosted.com (mx0b-0016f401.pphosted.com [67.231.156.173]) by mails.dpdk.org (Postfix) with ESMTP id 937DF410DC for ; Tue, 31 Aug 2021 15:08:10 +0200 (CEST) Received: from pps.filterd (m0045851.ppops.net [127.0.0.1]) by mx0b-0016f401.pphosted.com (8.16.1.2/8.16.1.2) with SMTP id 17VCLwrq027724 for ; Tue, 31 Aug 2021 06:08:10 -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=eSkurbTdT1a01c32PjhFv/LO+Gwf0X2hD93zz5c5UEo=; b=iknRQlv/v5nzf/YrULvd/Owgwz6z0V6Y7Gd2yJMp5TDsy78UckPQdX5oDeggF46SezwJ 0ETkDK1CMk1V6bKNHLYdILWxpsdLkkJ8lEYjVWvdiYSTY2OJeehOY+iWvb+MCb9gPf2f IIieot6aLUdksUCnMtkgJAes0hsYJPIQRBwadOaG5seZmozgX68n2XCZYlC+d9KkH19H VVFi+1I7wXCmJg93+6WLZDqJfZp00/sox4wBd0jO8nWLc5X8uyKQA8gI6dAvKVdBokAa l2St20FQDoVJ6wiLK6zX3siwq3dC8UE8H+ekCtNfGNmAgUSDmlo2+z79GKWFdWT9sdUs qA== Received: from dc5-exch02.marvell.com ([199.233.59.182]) by mx0b-0016f401.pphosted.com with ESMTP id 3asf15hhjm-2 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT) for ; Tue, 31 Aug 2021 06:08:09 -0700 Received: from DC5-EXCH02.marvell.com (10.69.176.39) by DC5-EXCH02.marvell.com (10.69.176.39) with Microsoft SMTP Server (TLS) id 15.0.1497.18; Tue, 31 Aug 2021 06:08:07 -0700 Received: from maili.marvell.com (10.69.176.80) by DC5-EXCH02.marvell.com (10.69.176.39) with Microsoft SMTP Server id 15.0.1497.18 via Frontend Transport; Tue, 31 Aug 2021 06:08:07 -0700 Received: from hyd1554T5810.caveonetworks.com.com (unknown [10.29.57.11]) by maili.marvell.com (Postfix) with ESMTP id 0B5ED5B6922; Tue, 31 Aug 2021 06:08:03 -0700 (PDT) From: Tejasree Kondoj To: Akhil Goyal CC: Tejasree Kondoj , Anoob Joseph , Ankur Dwivedi , Archana Muniganti , Srujana Challa , "Nithin Dabilpuram" , Jerin Jacob , Date: Tue, 31 Aug 2021 19:31:22 +0530 Message-ID: <20210831140127.31775-4-ktejasree@marvell.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20210831140127.31775-1-ktejasree@marvell.com> References: <20210831140127.31775-1-ktejasree@marvell.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Proofpoint-ORIG-GUID: 1or7O3itcg1BZgUz7b1I01MvNtjtZ4xM X-Proofpoint-GUID: 1or7O3itcg1BZgUz7b1I01MvNtjtZ4xM X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.182.1,Aquarius:18.0.790,Hydra:6.0.391,FMLib:17.0.607.475 definitions=2021-08-31_05,2021-08-31_01,2020-04-07_01 Subject: [dpdk-dev] [PATCH 3/8] crypto/cnxk: remove redundant code 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 Sender: "dev" Removing redundant code in cn10k lookaside IPsec. Signed-off-by: Tejasree Kondoj --- drivers/crypto/cnxk/cn10k_ipsec.c | 5 ----- drivers/crypto/cnxk/cn10k_ipsec.h | 2 -- drivers/crypto/cnxk/cnxk_cryptodev_capabilities.c | 2 -- 3 files changed, 9 deletions(-) diff --git a/drivers/crypto/cnxk/cn10k_ipsec.c b/drivers/crypto/cnxk/cn10k_ipsec.c index 408a682b21..944e0a7e3b 100644 --- a/drivers/crypto/cnxk/cn10k_ipsec.c +++ b/drivers/crypto/cnxk/cn10k_ipsec.c @@ -270,9 +270,6 @@ cn10k_sec_session_create(void *device, struct rte_security_session_conf *conf, if (conf->action_type != RTE_SECURITY_ACTION_TYPE_LOOKASIDE_PROTOCOL) return -EINVAL; - if (rte_security_dynfield_register() < 0) - return -ENOTSUP; - if (rte_mempool_get(mempool, (void **)&priv)) { plt_err("Could not allocate security session private data"); return -ENOMEM; @@ -280,8 +277,6 @@ cn10k_sec_session_create(void *device, struct rte_security_session_conf *conf, set_sec_session_private_data(sess, priv); - priv->userdata = conf->userdata; - if (conf->protocol != RTE_SECURITY_PROTOCOL_IPSEC) { ret = -ENOTSUP; goto mempool_put; diff --git a/drivers/crypto/cnxk/cn10k_ipsec.h b/drivers/crypto/cnxk/cn10k_ipsec.h index 668282f7aa..c30492e149 100644 --- a/drivers/crypto/cnxk/cn10k_ipsec.h +++ b/drivers/crypto/cnxk/cn10k_ipsec.h @@ -27,8 +27,6 @@ struct cn10k_ipsec_sa { struct cn10k_sec_session { struct cn10k_ipsec_sa sa; - void *userdata; - /**< Userdata registered by the application */ } __rte_cache_aligned; void cn10k_sec_ops_override(void); diff --git a/drivers/crypto/cnxk/cnxk_cryptodev_capabilities.c b/drivers/crypto/cnxk/cnxk_cryptodev_capabilities.c index 47274b2c24..9430ca5d00 100644 --- a/drivers/crypto/cnxk/cnxk_cryptodev_capabilities.c +++ b/drivers/crypto/cnxk/cnxk_cryptodev_capabilities.c @@ -810,7 +810,6 @@ static const struct rte_security_capability sec_caps_templ[] = { .options = { 0 } }, .crypto_capabilities = NULL, - .ol_flags = RTE_SECURITY_TX_OLOAD_NEED_MDATA }, { /* IPsec Lookaside Protocol ESP Tunnel Egress */ .action = RTE_SECURITY_ACTION_TYPE_LOOKASIDE_PROTOCOL, @@ -822,7 +821,6 @@ static const struct rte_security_capability sec_caps_templ[] = { .options = { 0 } }, .crypto_capabilities = NULL, - .ol_flags = RTE_SECURITY_TX_OLOAD_NEED_MDATA }, { .action = RTE_SECURITY_ACTION_TYPE_NONE -- 2.27.0