From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <dev-bounces@dpdk.org>
Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124])
	by inbox.dpdk.org (Postfix) with ESMTP id 0B606A034C;
	Mon,  8 Aug 2022 10:07:32 +0200 (CEST)
Received: from [217.70.189.124] (localhost [127.0.0.1])
	by mails.dpdk.org (Postfix) with ESMTP id 0A8F142C74;
	Mon,  8 Aug 2022 10:06:41 +0200 (CEST)
Received: from mx0b-0016f401.pphosted.com (mx0b-0016f401.pphosted.com
 [67.231.156.173])
 by mails.dpdk.org (Postfix) with ESMTP id A838042C71
 for <dev@dpdk.org>; Mon,  8 Aug 2022 10:06:39 +0200 (CEST)
Received: from pps.filterd (m0045851.ppops.net [127.0.0.1])
 by mx0b-0016f401.pphosted.com (8.17.1.5/8.17.1.5) with ESMTP id 277N0ebZ006022
 for <dev@dpdk.org>; Mon, 8 Aug 2022 01:06:39 -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=OyJlisHp/7Db/uIC/1g5/cgClk4uBkEjjF8SfU1F8gI=;
 b=VtDkyxZCA/hMYcrdXOviY0GQ2Lfsg7vBA13n0UlKgLoiwt4pbJmUK0yJ5IjJeTNNFY9Y
 NdBnDVcdX/5GMszEVbJqmTEqKRKb39b6mB8Djp7gPJJlg2duY/8mDtcFdLfIzH3fvrE0
 wGRbCUYLpCg1JxAU5r2Ap7RuuEgtvvTKC4viEEb2jxJsoU9amKNpZZ7AQPx7PBzxGfiE
 6utl00z/EltSVKkLNX4tmE4LeGYbq0TD1eixbZ1MgEhNpppe4i0qOBoGOs2uNZWGocQh
 +brFMmRwrVaJe+G+Qjs640+fmWpyb5p3suu9LE1e+XX/RWNsc8+JBMpoVz1rFSBqHWGD QQ== 
Received: from dc5-exch01.marvell.com ([199.233.59.181])
 by mx0b-0016f401.pphosted.com (PPS) with ESMTPS id 3hsqtmmxew-1
 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT)
 for <dev@dpdk.org>; Mon, 08 Aug 2022 01:06:39 -0700
Received: from DC5-EXCH01.marvell.com (10.69.176.38) by DC5-EXCH01.marvell.com
 (10.69.176.38) with Microsoft SMTP Server (TLS) id 15.0.1497.2;
 Mon, 8 Aug 2022 01:06:37 -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.2 via Frontend
 Transport; Mon, 8 Aug 2022 01:06:37 -0700
Received: from BG-LT92004.corp.innovium.com (unknown [10.28.160.62])
 by maili.marvell.com (Postfix) with ESMTP id 31D233F7051;
 Mon,  8 Aug 2022 01:06:34 -0700 (PDT)
From: Anoob Joseph <anoobj@marvell.com>
To: Akhil Goyal <gakhil@marvell.com>, Jerin Jacob <jerinj@marvell.com>
CC: Archana Muniganti <marchana@marvell.com>, Tejasree Kondoj
 <ktejasree@marvell.com>, <dev@dpdk.org>
Subject: [PATCH 12/18] crypto/cnxk: remove auth iv from kasumi cipher
Date: Mon, 8 Aug 2022 13:36:00 +0530
Message-ID: <20220808080606.220-13-anoobj@marvell.com>
X-Mailer: git-send-email 2.25.1
In-Reply-To: <20220808080606.220-1-anoobj@marvell.com>
References: <20220808080606.220-1-anoobj@marvell.com>
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
Content-Type: text/plain
X-Proofpoint-GUID: z0LUsmQwr1zToQo0TWoDS0ziEyYsvJAr
X-Proofpoint-ORIG-GUID: z0LUsmQwr1zToQo0TWoDS0ziEyYsvJAr
X-Proofpoint-Virus-Version: vendor=baseguard
 engine=ICAP:2.0.205,Aquarius:18.0.883,Hydra:6.0.517,FMLib:17.11.122.1
 definitions=2022-08-08_05,2022-08-05_01,2022-06-22_01
X-BeenThere: dev@dpdk.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: DPDK patches and discussions <dev.dpdk.org>
List-Unsubscribe: <https://mails.dpdk.org/options/dev>,
 <mailto:dev-request@dpdk.org?subject=unsubscribe>
List-Archive: <http://mails.dpdk.org/archives/dev/>
List-Post: <mailto:dev@dpdk.org>
List-Help: <mailto:dev-request@dpdk.org?subject=help>
List-Subscribe: <https://mails.dpdk.org/listinfo/dev>,
 <mailto:dev-request@dpdk.org?subject=subscribe>
Errors-To: dev-bounces@dpdk.org

Auth IV is not applicable for kasumi cipher operation. Remove the same.

Signed-off-by: Anoob Joseph <anoobj@marvell.com>
---
 drivers/crypto/cnxk/cnxk_se.h | 10 ++++------
 1 file changed, 4 insertions(+), 6 deletions(-)

diff --git a/drivers/crypto/cnxk/cnxk_se.h b/drivers/crypto/cnxk/cnxk_se.h
index 55f411d50c..3de9718f8b 100644
--- a/drivers/crypto/cnxk/cnxk_se.h
+++ b/drivers/crypto/cnxk/cnxk_se.h
@@ -2409,13 +2409,11 @@ fill_fc_params(struct rte_crypto_op *cop, struct cnxk_se_sess *sess,
 		}
 	}
 
-	/* Kasumi would need auth IV */
-	if (is_kasumi && sess->zsk_flag) {
-		fc_params.auth_iv_len = sess->auth_iv_length;
-		if (sess->auth_iv_length)
-			fc_params.auth_iv_buf =
-				rte_crypto_op_ctod_offset(cop, uint8_t *, sess->auth_iv_offset);
+	/* Kasumi would need SG mode */
+	if (is_kasumi) {
 		inplace = 0;
+		fc_params.mac_buf.vaddr = NULL;
+		fc_params.mac_buf.size = 0;
 	}
 
 	m_src = sym_op->m_src;
-- 
2.25.1