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 97D81A052A; Mon, 25 Jan 2021 15:52:33 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 64C6F140F64; Mon, 25 Jan 2021 15:52:33 +0100 (CET) Received: from mx0b-0016f401.pphosted.com (mx0a-0016f401.pphosted.com [67.231.148.174]) by mails.dpdk.org (Postfix) with ESMTP id 25257140F63 for ; Mon, 25 Jan 2021 15:52:31 +0100 (CET) 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 10PEjXTK021278; Mon, 25 Jan 2021 06:52:31 -0800 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=btADSrj6QrqS4Cs1aWbbK+d1Gt66cpymo7zUVJXD10w=; b=DavjrjBFs7KcT8RzT3ytYhW70WiHN9kWxnyslItgKgcOiIUcQ0RCn8kSMV9sHvRD9YBG T2lam3VO3G7GZLIP+DtSWBZiVSlV9ZYTIiClEDhafmgMGX0bzwxY/y0hyG191fueEXzw HqW/WaMWSX6S8WBRMGD9fRugW8nFLj4KwtAjVyTYysN5BE+Jcg/U+xOiUSytK7wIBeX4 BDQQtQBp77lAotQlsuLc42UOBLcV0abOeRuvIkdC0/7FKGgSOAlRepN6yxVE7gs675HX VAABcav7L6kGFUJbZr2ubEB8byegvtLuUXY7k8KhGMju59louzv2FRjJgDEDarDGgjUz rQ== Received: from dc5-exch01.marvell.com ([199.233.59.181]) by mx0a-0016f401.pphosted.com with ESMTP id 368j1u4rww-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Mon, 25 Jan 2021 06:52:31 -0800 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, 25 Jan 2021 06:52:29 -0800 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, 25 Jan 2021 06:52:29 -0800 Received: from hyd1554T5810.caveonetworks.com.com (unknown [10.29.57.11]) by maili.marvell.com (Postfix) with ESMTP id EA46B3F703F; Mon, 25 Jan 2021 06:52:27 -0800 (PST) From: Tejasree Kondoj To: Akhil Goyal , Radu Nicolau CC: Tejasree Kondoj , Anoob Joseph , Ankur Dwivedi , Date: Mon, 25 Jan 2021 21:17:55 +0530 Message-ID: <20210125154757.23654-2-ktejasree@marvell.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20210125154757.23654-1-ktejasree@marvell.com> References: <20210125154757.23654-1-ktejasree@marvell.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.343, 18.0.737 definitions=2021-01-25_05:2021-01-25, 2021-01-25 signatures=0 Subject: [dpdk-dev] [PATCH v2 1/3] cryptodev: add feature flag for SSL/TLS order 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" Added device feature flag for SSL/TLS way of cipher-auth operations support i.e. auth generation followed by encryption and decryption followed by auth verify so that SSL/TLS tests are skipped if the device doesn't support the feature. Signed-off-by: Tejasree Kondoj --- doc/guides/cryptodevs/features/default.ini | 1 + doc/guides/rel_notes/release_21_02.rst | 7 +++++++ lib/librte_cryptodev/rte_cryptodev.h | 2 ++ 3 files changed, 10 insertions(+) diff --git a/doc/guides/cryptodevs/features/default.ini b/doc/guides/cryptodevs/features/default.ini index 17b177fc45..cd5f75d8f6 100644 --- a/doc/guides/cryptodevs/features/default.ini +++ b/doc/guides/cryptodevs/features/default.ini @@ -31,6 +31,7 @@ CPU crypto = Symmetric sessionless = Non-Byte aligned data = Sym raw data path API = +SSL way of chaining = ; ; Supported crypto algorithms of a default crypto driver. diff --git a/doc/guides/rel_notes/release_21_02.rst b/doc/guides/rel_notes/release_21_02.rst index e72a582b1b..45854d5d33 100644 --- a/doc/guides/rel_notes/release_21_02.rst +++ b/doc/guides/rel_notes/release_21_02.rst @@ -82,6 +82,13 @@ New Features enable applications to add/remove user callbacks which gets called for every enqueue/dequeue operation. +* **Added feature flag in cryptodev library.** + + Added device feature flag for SSL/TLS way of cipher-auth operations support + i.e. auth generation followed by encryption and decryption followed by + auth verify in cryptodev library so that SSL/TLS tests are skipped if the + device doesn't support the feature. + * **Updated the OCTEON TX2 crypto PMD.** * Updated the OCTEON TX2 crypto PMD lookaside protocol offload for IPsec with diff --git a/lib/librte_cryptodev/rte_cryptodev.h b/lib/librte_cryptodev/rte_cryptodev.h index ae34f33f69..6ee3f33c06 100644 --- a/lib/librte_cryptodev/rte_cryptodev.h +++ b/lib/librte_cryptodev/rte_cryptodev.h @@ -461,6 +461,8 @@ rte_cryptodev_asym_get_xform_enum(enum rte_crypto_asym_xform_type *xform_enum, /**< Support operations on data which is not byte aligned */ #define RTE_CRYPTODEV_FF_SYM_RAW_DP (1ULL << 24) /**< Support accelerator specific symmetric raw data-path APIs */ +#define RTE_CRYPTODEV_FF_SSL_ORDER (1ULL << 25) +/**< Support SSL order of cipher-auth xforms chaining */ /** * Get the name of a crypto device feature flag -- 2.27.0