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 0B7A7A0C43; Mon, 18 Oct 2021 16:42:23 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id ED7B840142; Mon, 18 Oct 2021 16:42:22 +0200 (CEST) Received: from mx0b-0016f401.pphosted.com (mx0a-0016f401.pphosted.com [67.231.148.174]) by mails.dpdk.org (Postfix) with ESMTP id 0A0A940141 for ; Mon, 18 Oct 2021 16:42:20 +0200 (CEST) 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 SMTP id 19ICjTHT025462; Mon, 18 Oct 2021 07:42:13 -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=VQhZUvw40MZNBjuR4qEXjZjutFmx+hY+aP+PKssYvUc=; b=Q+kUtT/eluAu7R5XYMZNa0zLOOIj6L9A65Dlzr68N3/8VGcujLBSnU88vAJi0EdLiYbw 6S+gMwwxuDZFn+SU1uWouQ+UNhZHtKoirQSDOUGUVyXHV2pOcdS04VZp9HKdaeiupZ8j 7OB6kWKnTmMGMGktP/hjnriSnWu9UVGXqt4tWl98F5gvdysdMv/yazeig8u4jDEbd8YH xF7KhnGb8PlgmWTnPBr8oVwS3flTe9VPL6/bcncmLHpO5PkFtFUpqI/Ty/Ehq5Z6KLoJ uyn+hFoFAaR9cincYQsngf2sEzDMZ3EMObIeXXolkpimL98o6WFOYZEe5Os3h7gIKCKy yg== Received: from dc5-exch02.marvell.com ([199.233.59.182]) by mx0a-0016f401.pphosted.com with ESMTP id 3bs1bujc20-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Mon, 18 Oct 2021 07:42:13 -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; Mon, 18 Oct 2021 07:42:12 -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; Mon, 18 Oct 2021 07:42:12 -0700 Received: from localhost.localdomain (unknown [10.28.36.185]) by maili.marvell.com (Postfix) with ESMTP id BFAFF3F7041; Mon, 18 Oct 2021 07:42:04 -0700 (PDT) From: Akhil Goyal To: CC: , , , , , , , , , , , , , , , , , , , Akhil Goyal Date: Mon, 18 Oct 2021 20:11:54 +0530 Message-ID: <20211018144201.2028022-1-gakhil@marvell.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20211011124309.4066491-1-gakhil@marvell.com> References: <20211011124309.4066491-1-gakhil@marvell.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Proofpoint-GUID: ffDokko0R55I_Cyc6_D3RnH2FZqfH9wS X-Proofpoint-ORIG-GUID: ffDokko0R55I_Cyc6_D3RnH2FZqfH9wS X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.182.1,Aquarius:18.0.790,Hydra:6.0.425,FMLib:17.0.607.475 definitions=2021-10-18_06,2021-10-18_01,2020-04-07_01 Subject: [dpdk-dev] [PATCH v3 0/7] cryptodev: hide internal structures 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" Structures rte_cryptodev and rte_cryptodev_data are not supposed to be directly used by the application. These are made public as they are used by inline datapath public APIs. This patchset, creates a new rte_cryptodev_core.h file which helps in defining a data structure to hold datapath APIs in a flat array based on the device identifier which is filled by the PMD. Similar series for ethdev and eventdev are also floated on ML. https://patchwork.dpdk.org/project/dpdk/list/?series=19428 https://patchwork.dpdk.org/project/dpdk/list/?series=19405 changes in v3: fixed multiprocess and enq-deq callback handling. v2: align with the latest versions of above series. Akhil Goyal (7): cryptodev: separate out internal structures cryptodev: allocate max space for internal qp array cryptodev: move inline APIs into separate structure cryptodev: add PMD device probe finish API drivers/crypto: invoke probing finish function cryptodev: update fast path APIs to use new flat array cryptodev: move device specific structures drivers/crypto/armv8/rte_armv8_pmd.c | 2 + drivers/crypto/bcmfs/bcmfs_sym_pmd.c | 2 + drivers/crypto/caam_jr/caam_jr.c | 2 + drivers/crypto/ccp/ccp_dev.h | 2 +- drivers/crypto/ccp/rte_ccp_pmd.c | 2 + drivers/crypto/cnxk/cn10k_cryptodev.c | 2 + drivers/crypto/cnxk/cn10k_ipsec.c | 2 +- drivers/crypto/cnxk/cn9k_cryptodev.c | 2 + drivers/crypto/cnxk/cn9k_ipsec.c | 2 +- .../crypto/cnxk/cnxk_cryptodev_capabilities.c | 2 +- drivers/crypto/cnxk/cnxk_cryptodev_sec.c | 2 +- drivers/crypto/dpaa2_sec/dpaa2_sec_dpseci.c | 4 +- drivers/crypto/dpaa_sec/dpaa_sec.c | 4 +- drivers/crypto/ipsec_mb/ipsec_mb_private.c | 2 + drivers/crypto/mlx5/mlx5_crypto.c | 3 + drivers/crypto/mvsam/rte_mrvl_pmd.c | 2 + drivers/crypto/nitrox/nitrox_sym.c | 3 + drivers/crypto/nitrox/nitrox_sym_reqmgr.c | 2 +- drivers/crypto/null/null_crypto_pmd.c | 2 + drivers/crypto/octeontx/otx_cryptodev.c | 5 +- .../crypto/octeontx/otx_cryptodev_hw_access.c | 2 +- .../crypto/octeontx/otx_cryptodev_hw_access.h | 2 +- drivers/crypto/octeontx/otx_cryptodev_ops.h | 2 +- drivers/crypto/octeontx2/otx2_cryptodev.c | 2 + .../crypto/octeontx2/otx2_cryptodev_mbox.c | 2 +- drivers/crypto/openssl/rte_openssl_pmd.c | 2 + drivers/crypto/qat/qat_asym_pmd.c | 3 + drivers/crypto/qat/qat_sym_pmd.c | 2 + drivers/crypto/scheduler/scheduler_failover.c | 2 +- .../crypto/scheduler/scheduler_multicore.c | 2 +- .../scheduler/scheduler_pkt_size_distr.c | 2 +- drivers/crypto/scheduler/scheduler_pmd.c | 2 + .../crypto/scheduler/scheduler_roundrobin.c | 2 +- drivers/crypto/virtio/virtio_cryptodev.c | 2 + drivers/event/cnxk/cnxk_eventdev.h | 2 +- drivers/event/dpaa/dpaa_eventdev.c | 2 +- drivers/event/dpaa2/dpaa2_eventdev.c | 2 +- drivers/event/octeontx/ssovf_evdev.c | 2 +- .../event/octeontx2/otx2_evdev_crypto_adptr.c | 2 +- lib/cryptodev/cryptodev_pmd.c | 69 +++- lib/cryptodev/cryptodev_pmd.h | 95 ++++- lib/cryptodev/meson.build | 4 +- lib/cryptodev/rte_cryptodev.c | 40 +- lib/cryptodev/rte_cryptodev.h | 367 +++++++----------- lib/cryptodev/rte_cryptodev_core.h | 62 +++ lib/cryptodev/version.map | 8 +- 46 files changed, 465 insertions(+), 268 deletions(-) create mode 100644 lib/cryptodev/rte_cryptodev_core.h -- 2.25.1