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 1BE88A0C46; Mon, 16 Aug 2021 08:00:38 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 95E8B4113D; Mon, 16 Aug 2021 08:00:36 +0200 (CEST) Received: from mx0b-0016f401.pphosted.com (mx0b-0016f401.pphosted.com [67.231.156.173]) by mails.dpdk.org (Postfix) with ESMTP id F2BB14113C for ; Mon, 16 Aug 2021 08:00:33 +0200 (CEST) Received: from pps.filterd (m0045851.ppops.net [127.0.0.1]) by mx0b-0016f401.pphosted.com (8.16.1.2/8.16.0.43) with SMTP id 17FNDFIp012575; Sun, 15 Aug 2021 23:00:32 -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=i5szvklGPm89wd75GItJoZLno2FmHKviKfxa4t1oAK8=; b=fk/k0zC6rfvVuklmkT1XaZ+gWSMUx+aAYftQfvmuEINKRdAbSrdAdVrqHzilGfXGb632 g0kVvzhxz1O8AHxGe8hl7/jbtwJYZrhh0/uoLy1ka/wn3sTD7dbgbc0I4cpkxv8JNvb0 3041mhqGMhr0IjcDP51DLitcMuO/Pvwi1ECuX1bifLftrHpWSDgaaGnHOfJWl8duZqrc xvbMjLFqb0SEDdVe9BeP+g/kCFudf94vzeonLXdVsdH4xqazzIw8LRwtqdGVdgMwWOiW 0MBvGK3hlx8H3TlTMkGp5BW55hlVuJBqSN/3nbJsapqXJ7PsHdS2POlofec0+bmCMbes rg== Received: from dc5-exch01.marvell.com ([199.233.59.181]) by mx0b-0016f401.pphosted.com with ESMTP id 3afcasgrt1-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Sun, 15 Aug 2021 23:00:32 -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.18; Sun, 15 Aug 2021 23:00:29 -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; Sun, 15 Aug 2021 23:00:29 -0700 Received: from HY-LT1002.marvell.com (unknown [10.193.36.215]) by maili.marvell.com (Postfix) with ESMTP id B974B5E686C; Sun, 15 Aug 2021 23:00:23 -0700 (PDT) From: Anoob Joseph To: Akhil Goyal , Declan Doherty , Fan Zhang , "Konstantin Ananyev" CC: Anoob Joseph , Jerin Jacob , Archana Muniganti , Tejasree Kondoj , Hemant Agrawal , "Radu Nicolau" , Ciara Power , Date: Mon, 16 Aug 2021 11:29:48 +0530 Message-ID: <1629093590-115-2-git-send-email-anoobj@marvell.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1629093590-115-1-git-send-email-anoobj@marvell.com> References: <1629093590-115-1-git-send-email-anoobj@marvell.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Proofpoint-ORIG-GUID: pCnKvmH2HKXgcedWoaBYBdVwWFX9h-Jr X-Proofpoint-GUID: pCnKvmH2HKXgcedWoaBYBdVwWFX9h-Jr 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-16_02,2021-08-13_02,2020-04-07_01 Subject: [dpdk-dev] [PATCH 1/3] security: support user specified IV 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" Enable user to provide IV to be used per security operation. This would be used with lookaside protocol offload for comparing against known vectors. By default, PMD would generate IV internally and would be random. Signed-off-by: Anoob Joseph Signed-off-by: Tejasree Kondoj --- lib/security/rte_security.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/lib/security/rte_security.h b/lib/security/rte_security.h index 88d31de..b4b6776 100644 --- a/lib/security/rte_security.h +++ b/lib/security/rte_security.h @@ -181,6 +181,20 @@ struct rte_security_ipsec_sa_options { * * 0: Disable per session security statistics collection for this SA. */ uint32_t stats : 1; + + /** Disable IV generation in PMD + * + * * 1: Disable IV generation in PMD. When disabled, IV provided in + * rte_crypto_op will be used by the PMD. + * + * * 0: Enable IV generation in PMD. When enabled, PMD generated random + * value would be used and application is not required to provide + * IV. + * + * Note: For inline cases, IV generation would always need to be handled + * by the PMD. + */ + uint32_t iv_gen_disable : 1; }; /** IPSec security association direction */ -- 2.7.4