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 59DF3A0C50; Fri, 16 Jul 2021 10:06:43 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 1DE7940151; Fri, 16 Jul 2021 10:06:43 +0200 (CEST) Received: from mx0b-0016f401.pphosted.com (mx0a-0016f401.pphosted.com [67.231.148.174]) by mails.dpdk.org (Postfix) with ESMTP id A1EA84014D for ; Fri, 16 Jul 2021 10:06:41 +0200 (CEST) Received: from pps.filterd (m0045849.ppops.net [127.0.0.1]) by mx0a-0016f401.pphosted.com (8.16.0.43/8.16.0.43) with SMTP id 16G81G2g013917; Fri, 16 Jul 2021 01:06:40 -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=9GYbyoV7+lSBmM0bpacNrWcFmDB2Rz4zHVdg0b36weA=; b=DleslKUvQDoY+DascMr6Cacp+S0eYpif1G8h3HosPr1ZMvkw+3mROxbxhBf3CJCsWvhx yLiniDAADAlWmMOnXRHRwfzgR/CsFlga/z5P47vePUwitIfcE0w/dtHov8oIu6WtH7Ym Q9Qp+CshBYNcU38lDpoWYWEGMvTmHXnjbyrsiY1FDE6OcvzlqqxJ45iUOpCmNferdzXj //2qVYM0aEGPCMHVPhahTW98jfdhlcoYSzKeqpzaClscJ7AnkdWLLOyKIvqlCo9dF+Sa Ffxg163QTqqMtFcQLDjSuBeahEgmTq7ISKzYmNf80Q39AyUhGEUR2347Piai6S2jP6jb Uw== Received: from dc5-exch02.marvell.com ([199.233.59.182]) by mx0a-0016f401.pphosted.com with ESMTP id 39tw30hv4t-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Fri, 16 Jul 2021 01:06:40 -0700 Received: from DC5-EXCH01.marvell.com (10.69.176.38) by DC5-EXCH02.marvell.com (10.69.176.39) with Microsoft SMTP Server (TLS) id 15.0.1497.18; Fri, 16 Jul 2021 01:06:39 -0700 Received: from maili.marvell.com (10.69.176.80) by DC5-EXCH01.marvell.com (10.69.176.38) with Microsoft SMTP Server id 15.0.1497.18 via Frontend Transport; Fri, 16 Jul 2021 01:06:39 -0700 Received: from hyd1554T5810.caveonetworks.com.com (unknown [10.29.57.11]) by maili.marvell.com (Postfix) with ESMTP id 2B7385B6921; Fri, 16 Jul 2021 01:06:36 -0700 (PDT) From: Tejasree Kondoj To: Akhil Goyal , Radu Nicolau CC: Tejasree Kondoj , Anoob Joseph , Ankur Dwivedi , Date: Fri, 16 Jul 2021 14:31:31 +0530 Message-ID: <20210716090131.13114-1-ktejasree@marvell.com> X-Mailer: git-send-email 2.27.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Proofpoint-ORIG-GUID: M-WeHyoIhlfagNikAPb3yS540w109EXW X-Proofpoint-GUID: M-WeHyoIhlfagNikAPb3yS540w109EXW X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.391, 18.0.790 definitions=2021-07-16_02:2021-07-16, 2021-07-16 signatures=0 Subject: [dpdk-dev] [PATCH] crypto/octeontx2: fix lookaside IPsec IV pointer 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" Fixing IV pointer population in lookaside IPsec outbound instruction. Fixes: fab634eb87ca ("crypto/octeontx2: support security session data path") Signed-off-by: Tejasree Kondoj --- drivers/crypto/octeontx2/otx2_ipsec_po_ops.h | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/drivers/crypto/octeontx2/otx2_ipsec_po_ops.h b/drivers/crypto/octeontx2/otx2_ipsec_po_ops.h index 58b199f4f3..03331f4723 100644 --- a/drivers/crypto/octeontx2/otx2_ipsec_po_ops.h +++ b/drivers/crypto/octeontx2/otx2_ipsec_po_ops.h @@ -107,14 +107,8 @@ process_outb_sa(struct rte_crypto_op *cop, hdr = (struct otx2_ipsec_po_out_hdr *)rte_pktmbuf_adj(m_src, RTE_ETHER_HDR_LEN); - if (ctl_wrd->enc_type == OTX2_IPSEC_FP_SA_ENC_AES_GCM) { - memcpy(&hdr->iv[0], &sa->iv.gcm.nonce, 4); - memcpy(&hdr->iv[4], rte_crypto_op_ctod_offset(cop, uint8_t *, - sess->iv_offset), sess->iv_length); - } else if (ctl_wrd->auth_type == OTX2_IPSEC_PO_SA_AUTH_SHA1) { - memcpy(&hdr->iv[0], rte_crypto_op_ctod_offset(cop, uint8_t *, - sess->iv_offset), sess->iv_length); - } + memcpy(&hdr->iv[0], rte_crypto_op_ctod_offset(cop, uint8_t *, + sess->iv_offset), sess->iv_length); /* Prepare CPT instruction */ word0.u64 = sess->ucmd_w0; -- 2.27.0