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 391544257C; Tue, 12 Sep 2023 12:42:24 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 0FF7A402AC; Tue, 12 Sep 2023 12:42:24 +0200 (CEST) Received: from mx0b-0016f401.pphosted.com (mx0a-0016f401.pphosted.com [67.231.148.174]) by mails.dpdk.org (Postfix) with ESMTP id 0ADEA402A3 for ; Tue, 12 Sep 2023 12:42:22 +0200 (CEST) Received: from pps.filterd (m0045849.ppops.net [127.0.0.1]) by mx0a-0016f401.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 38C7JxcL031886; Tue, 12 Sep 2023 03:42:22 -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=SpC27f12vJ3e3VJs7fYbUesZEOrB+3fODrDJPooGq90=; b=aowg2qfBEenQtpaMwWVzueS6eX5qqCE+QQUSF2ht2iKcFRjIgCQ2uT06Eh9binI4tTWu KNAQ0XoHEldU0K0jmlDljJw9diiV7R/x1Oa+g+my4Rgib6b1v+sydnqKsVRe9+Zsd11f Vw1p9JbDPGZauGR5fLIggRXNpJoPh9OUoEdH3zVGRkJB1gmsQ/gTjByz994Q3OukcqBH nXVg6m7HheoITF10roCykEgS5VKf9jO6y2WjJOpB5hx/rEAPZaXW9zMrcmDYDIcOTuV3 Dv52Ct5UDE9Hizx9l5rPXFlgvbHS2n3tIv6Owy3gcUmac31NUBPEcDYLWPgFEK607nxk 1g== Received: from dc5-exch01.marvell.com ([199.233.59.181]) by mx0a-0016f401.pphosted.com (PPS) with ESMTPS id 3t2kgerr4y-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Tue, 12 Sep 2023 03:42:21 -0700 Received: from DC5-EXCH02.marvell.com (10.69.176.39) by DC5-EXCH01.marvell.com (10.69.176.38) with Microsoft SMTP Server (TLS) id 15.0.1497.48; Tue, 12 Sep 2023 03:42:20 -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.48 via Frontend Transport; Tue, 12 Sep 2023 03:42:20 -0700 Received: from BG-LT92004.corp.innovium.com (unknown [10.193.72.130]) by maili.marvell.com (Postfix) with ESMTP id A42BA3F70F0; Tue, 12 Sep 2023 03:42:15 -0700 (PDT) From: Anoob Joseph To: Akhil Goyal , Thomas Monjalon CC: Jerin Jacob , Subject: [PATCH v2] cryptodev: add missing doc Date: Tue, 12 Sep 2023 16:12:14 +0530 Message-ID: <20230912104214.204-1-anoobj@marvell.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230907130037.208-1-anoobj@marvell.com> References: <20230907130037.208-1-anoobj@marvell.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Proofpoint-GUID: XLSKUVqPmLdH18peuofDpMS5ZUYcpuYP X-Proofpoint-ORIG-GUID: XLSKUVqPmLdH18peuofDpMS5ZUYcpuYP X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.267,Aquarius:18.0.957,Hydra:6.0.601,FMLib:17.11.176.26 definitions=2023-09-12_08,2023-09-05_01,2023-05-22_02 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 Description for rte_cryptodev_get_sec_ctx is missing. Add the same. Fixes: eadb4fa1e1fe ("cryptodev: support security APIs") Signed-off-by: Anoob Joseph --- lib/cryptodev/rte_cryptodev.h | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/lib/cryptodev/rte_cryptodev.h b/lib/cryptodev/rte_cryptodev.h index 9246df90ef..9017a56cd0 100644 --- a/lib/cryptodev/rte_cryptodev.h +++ b/lib/cryptodev/rte_cryptodev.h @@ -971,6 +971,15 @@ struct rte_cryptodev_cb_rcu { /**< RCU QSBR variable per queue pair */ }; +/** + * Get the security context for the cryptodev. + * + * @param dev_id + * The device identifier. + * @return + * - NULL on error. + * - Pointer to security context on success. + */ void * rte_cryptodev_get_sec_ctx(uint8_t dev_id); -- 2.25.1