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 14B82A00C3; Fri, 25 Mar 2022 12:16:33 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 2B7324284F; Fri, 25 Mar 2022 12:16:31 +0100 (CET) Received: from mx0b-0016f401.pphosted.com (mx0a-0016f401.pphosted.com [67.231.148.174]) by mails.dpdk.org (Postfix) with ESMTP id E373C40140 for ; Fri, 25 Mar 2022 12:16:28 +0100 (CET) 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 ESMTP id 22P4Ya5b022105 for ; Fri, 25 Mar 2022 04:16:28 -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=CmkGlkicRawy80MYzeW6rAoTcS1M8+yIy/tKPeUBZZ8=; b=S2/x/jKwI2dsRlopJFCk/r4cjaCCTxPSBXsKt2yjQhGh2VS26g8bYx5ErwS+Uxt122Ff 2+w4bEW8OS9sUi9N+BFJdNu8JVtrlA/MplN+QozKxhU4GJtoR8VMI44311NWrizWgD+9 3QJ2GNhbgv6YO3aEhabp2CR8TyC04h7IlpiGzLuA/VGI6Y88Xf8JucwIziegmICrbQAm KH90id0aMRPhulBywcnydkrb38qwSosOjZj1L7YntlbNwa41s/n2Svh4Dr2sDqMSBvDi JVL4Gy35eHT0tSX9MfgvS0yOm4olMRQQbbyFerCynsqZg4hDeb56Ze4fcgUNYgAR+IQ8 hQ== Received: from dc5-exch02.marvell.com ([199.233.59.182]) by mx0a-0016f401.pphosted.com (PPS) with ESMTPS id 3f0mn6x5re-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT) for ; Fri, 25 Mar 2022 04:16:27 -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; Fri, 25 Mar 2022 04:16:26 -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; Fri, 25 Mar 2022 04:16:26 -0700 Received: from localhost.localdomain (unknown [10.28.34.39]) by maili.marvell.com (Postfix) with ESMTP id 9B6173F704C; Fri, 25 Mar 2022 04:16:24 -0700 (PDT) From: Volodymyr Fialko To: , Ankur Dwivedi , Anoob Joseph , Tejasree Kondoj CC: , Volodymyr Fialko Subject: [PATCH 2/2] crypto/cnxk: support for security session enqueue Date: Fri, 25 Mar 2022 12:16:15 +0100 Message-ID: <20220325111615.1118946-3-vfialko@marvell.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220325111615.1118946-1-vfialko@marvell.com> References: <20220325111615.1118946-1-vfialko@marvell.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Proofpoint-GUID: NadgG0XTEoAqs-lhnq7X_zGW-_WaP1xF X-Proofpoint-ORIG-GUID: NadgG0XTEoAqs-lhnq7X_zGW-_WaP1xF X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.850,Hydra:6.0.425,FMLib:17.11.64.514 definitions=2022-03-25_02,2022-03-24_01,2022-02-23_01 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 Add support for enqueue security session to event crypto adapter. Event metadata is used to store request/response information that is needed to enqueue an event after the crypto operation completed. Signed-off-by: Volodymyr Fialko --- drivers/crypto/cnxk/cnxk_cryptodev_ops.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/drivers/crypto/cnxk/cnxk_cryptodev_ops.h b/drivers/crypto/cnxk/cnxk_cryptodev_ops.h index 1c58254bef..857fe95e1c 100644 --- a/drivers/crypto/cnxk/cnxk_cryptodev_ops.h +++ b/drivers/crypto/cnxk/cnxk_cryptodev_ops.h @@ -7,6 +7,7 @@ #include #include +#include #include "roc_api.h" @@ -142,6 +143,10 @@ cnxk_event_crypto_mdata_get(struct rte_crypto_op *op) op->private_data_offset) ec_mdata = (union rte_event_crypto_metadata *)((uint8_t *)op + op->private_data_offset); + else if (op->sess_type == RTE_CRYPTO_OP_SECURITY_SESSION && + op->type == RTE_CRYPTO_OP_TYPE_SYMMETRIC) + ec_mdata = rte_security_session_get_event_mdata( + op->sym->sec_session); else return NULL; -- 2.25.1