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 F1536A0547; Thu, 28 Oct 2021 18:53:18 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 2ABF64114D; Thu, 28 Oct 2021 18:52:58 +0200 (CEST) Received: from mx0b-0016f401.pphosted.com (mx0a-0016f401.pphosted.com [67.231.148.174]) by mails.dpdk.org (Postfix) with ESMTP id 1207141100 for ; Thu, 28 Oct 2021 18:52:54 +0200 (CEST) Received: from pps.filterd (m0045849.ppops.net [127.0.0.1]) by mx0a-0016f401.pphosted.com (8.16.1.2/8.16.1.2) with SMTP id 19SA4Nvj027066 for ; Thu, 28 Oct 2021 09:52: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=UvieenXUAQHwgbK/CL8lr5xuYi25zqfakUtPHQilzJk=; b=CynXkct0PfTFBizptUzSWaQhGWoG8l7y3GaRs8Gdz+btNwEGAiZV8szLwr5oAr0kkP1+ em0qhzcAdbEe4zbfofkE+EkwJLvQkdXT7iATKUuNG8Nmjg/Nkaf7eyTLORRegDrOSX0k PGrA2bl/QqcmV4tAqq0TIVkTzuY4avpT2O6rfkZHGBv3EoJ9ZcAoeiMeB71+CRwsDkyM c8HZ63WJmRThZkmo6X+J55q9v/r3hRLJw28l2PnHJDlHNrJ8d+u3TUcrCl3zAJXBTxSH 37Ji9AYges25VIfy4uk2xIYw/lWUAG0Qn9Z+1wSb56EaVt1DjR77vb+QCqQzxF292Jv4 Lg== Received: from dc5-exch02.marvell.com ([199.233.59.182]) by mx0a-0016f401.pphosted.com with ESMTP id 3byrpg262d-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT) for ; Thu, 28 Oct 2021 09:52:54 -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; Thu, 28 Oct 2021 09:52:52 -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; Thu, 28 Oct 2021 09:52:52 -0700 Received: from hyd1409.caveonetworks.com.com (unknown [10.29.45.15]) by maili.marvell.com (Postfix) with ESMTP id 357603F705F; Thu, 28 Oct 2021 09:52:49 -0700 (PDT) From: Archana Muniganti To: CC: Archana Muniganti , , , , Date: Thu, 28 Oct 2021 22:22:28 +0530 Message-ID: <20211028165228.14603-7-marchana@marvell.com> X-Mailer: git-send-email 2.22.0 In-Reply-To: <20211028165228.14603-1-marchana@marvell.com> References: <20211028165228.14603-1-marchana@marvell.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Proofpoint-ORIG-GUID: KCdpOz8WSx1HGb4toc1CvDGIJpNrv_MI X-Proofpoint-GUID: KCdpOz8WSx1HGb4toc1CvDGIJpNrv_MI X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.182.1,Aquarius:18.0.790,Hydra:6.0.425,FMLib:17.0.607.475 definitions=2021-10-28_04,2021-10-26_01,2020-04-07_01 Subject: [dpdk-dev] [PATCH 6/6] crypto/cnxk: support IPv6 mixed tunnel mode 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" Adds IPv6 mixed tunnel mode support for cn9k. Signed-off-by: Archana Muniganti --- drivers/crypto/cnxk/cn9k_ipsec.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/crypto/cnxk/cn9k_ipsec.c b/drivers/crypto/cnxk/cn9k_ipsec.c index ca26d9289c..a81130b244 100644 --- a/drivers/crypto/cnxk/cn9k_ipsec.c +++ b/drivers/crypto/cnxk/cn9k_ipsec.c @@ -407,7 +407,8 @@ cn9k_ipsec_outb_sa_create(struct cnxk_cpt_qp *qp, w4.u64 = 0; w4.s.opcode_major = ROC_IE_ON_MAJOR_OP_PROCESS_OUTBOUND_IPSEC; w4.s.opcode_minor = ctx_len >> 3; - w4.s.param1 = ROC_IE_ON_PER_PKT_IV; + w4.s.param1 = BIT(9); + w4.s.param1 |= ROC_IE_ON_PER_PKT_IV; inst_tmpl->w4 = w4.u64; w7.u64 = 0; @@ -477,6 +478,7 @@ cn9k_ipsec_inb_sa_create(struct cnxk_cpt_qp *qp, w4.u64 = 0; w4.s.opcode_major = ROC_IE_ON_MAJOR_OP_PROCESS_INBOUND_IPSEC; w4.s.opcode_minor = ctx_len >> 3; + w4.s.param2 = BIT(12); inst_tmpl->w4 = w4.u64; w7.u64 = 0; -- 2.22.0