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 A02B6A0C4B; Mon, 4 Oct 2021 08:54:11 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 25B37412D0; Mon, 4 Oct 2021 08:54: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 D4B51412CE for ; Mon, 4 Oct 2021 08:54:09 +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 193MsasA002324 for ; Sun, 3 Oct 2021 23:54:09 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com; h=from : to : cc : subject : date : message-id : mime-version : content-transfer-encoding : content-type; s=pfpt0220; bh=5HY8Q0GEc6STetELSw+2e5nCUPYZiVV9iVv70wCQALs=; b=MTYLUw232cvAO3YroJcTPuU5IpCTAFZnUKcpmlyJLmZ7dOeO0T11YWH14iK9+rXxHLSP 4SKGLpOfLIQNC8rarfhEZfaxBRWbyg/bnDV9FgYaX9ooPvkg5tHiAGkKYSnq59GkBVBQ o+Xb9f5HDrFZdFvN5WiJQT76+DyjceeSTmCfMbIuf8yfdu65TC8h+7a43J9IWNtlT2OW QPHzlUJSaW6TerA/2pnJtXrrVNEY/JZnwsDk3uou1x9GqwU0Q3YAo9TEqiJAzhXT9eXS 5Oys4sj5KEnoS3VCysMWyc9Mok+/xw56Nio6cWl8/f7+lnMwN5VX1naMN0gMxpVhoHhy sw== Received: from dc5-exch02.marvell.com ([199.233.59.182]) by mx0b-0016f401.pphosted.com with ESMTP id 3bfc9y9u4e-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT) for ; Sun, 03 Oct 2021 23:54: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; Sun, 3 Oct 2021 23:54: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; Sun, 3 Oct 2021 23:54:07 -0700 Received: from hyd1409.caveonetworks.com.com (unknown [10.29.45.15]) by maili.marvell.com (Postfix) with ESMTP id 1F34F3F707C; Sun, 3 Oct 2021 23:54:04 -0700 (PDT) From: Archana Muniganti To: CC: Archana Muniganti , , , , Date: Mon, 4 Oct 2021 12:23:53 +0530 Message-ID: <20211004065353.2850-1-marchana@marvell.com> X-Mailer: git-send-email 2.22.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Proofpoint-GUID: uO1CFiobL1FUy1_lzekXpKhQkrg_MXkn X-Proofpoint-ORIG-GUID: uO1CFiobL1FUy1_lzekXpKhQkrg_MXkn 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-10-04_02,2021-10-01_02,2020-04-07_01 Subject: [dpdk-dev] [PATCH] crypto/cnxk: use IE engine group for IPsec 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" Use IE engine group for cn9k IPsec. Signed-off-by: Archana Muniganti --- drivers/crypto/cnxk/cn9k_ipsec.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/drivers/crypto/cnxk/cn9k_ipsec.c b/drivers/crypto/cnxk/cn9k_ipsec.c index 63ae025030..9ca4d20c62 100644 --- a/drivers/crypto/cnxk/cn9k_ipsec.c +++ b/drivers/crypto/cnxk/cn9k_ipsec.c @@ -19,6 +19,7 @@ static inline int cn9k_cpt_enq_sa_write(struct cn9k_ipsec_sa *sa, struct cnxk_cpt_qp *qp, uint8_t opcode, size_t ctx_len) { + struct roc_cpt *roc_cpt = qp->lf.roc_cpt; uint64_t lmtline = qp->lmtline.lmt_base; uint64_t io_addr = qp->lmtline.io_addr; uint64_t lmt_status, time_out; @@ -41,7 +42,7 @@ cn9k_cpt_enq_sa_write(struct cn9k_ipsec_sa *sa, struct cnxk_cpt_qp *qp, inst.dptr = rte_mempool_virt2iova(sa); inst.rptr = 0; inst.w7.s.cptr = rte_mempool_virt2iova(sa); - inst.w7.s.egrp = ROC_CPT_DFLT_ENG_GRP_SE; + inst.w7.s.egrp = roc_cpt->eng_grp[CPT_ENG_TYPE_IE]; inst.w0.u64 = 0; inst.w2.u64 = 0; @@ -278,6 +279,7 @@ cn9k_ipsec_outb_sa_create(struct cnxk_cpt_qp *qp, { struct rte_crypto_sym_xform *auth_xform = crypto_xform->next; struct roc_ie_on_ip_template *template = NULL; + struct roc_cpt *roc_cpt = qp->lf.roc_cpt; struct cnxk_cpt_inst_tmpl *inst_tmpl; struct roc_ie_on_outb_sa *out_sa; struct cn9k_sec_session *sess; @@ -408,7 +410,7 @@ cn9k_ipsec_outb_sa_create(struct cnxk_cpt_qp *qp, inst_tmpl->w4 = w4.u64; w7.u64 = 0; - w7.s.egrp = ROC_CPT_DFLT_ENG_GRP_SE; + w7.s.egrp = roc_cpt->eng_grp[CPT_ENG_TYPE_IE]; w7.s.cptr = rte_mempool_virt2iova(out_sa); inst_tmpl->w7 = w7.u64; @@ -423,6 +425,7 @@ cn9k_ipsec_inb_sa_create(struct cnxk_cpt_qp *qp, struct rte_security_session *sec_sess) { struct rte_crypto_sym_xform *auth_xform = crypto_xform; + struct roc_cpt *roc_cpt = qp->lf.roc_cpt; struct cnxk_cpt_inst_tmpl *inst_tmpl; struct roc_ie_on_inb_sa *in_sa; struct cn9k_sec_session *sess; @@ -474,7 +477,7 @@ cn9k_ipsec_inb_sa_create(struct cnxk_cpt_qp *qp, inst_tmpl->w4 = w4.u64; w7.u64 = 0; - w7.s.egrp = ROC_CPT_DFLT_ENG_GRP_SE; + w7.s.egrp = roc_cpt->eng_grp[CPT_ENG_TYPE_IE]; w7.s.cptr = rte_mempool_virt2iova(in_sa); inst_tmpl->w7 = w7.u64; -- 2.22.0