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 A76B1A0C47; Tue, 7 Sep 2021 21:00:40 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 7133E410FC; Tue, 7 Sep 2021 21:00:40 +0200 (CEST) Received: from mx0b-0016f401.pphosted.com (mx0b-0016f401.pphosted.com [67.231.156.173]) by mails.dpdk.org (Postfix) with ESMTP id EB8CA410EB for ; Tue, 7 Sep 2021 21:00:38 +0200 (CEST) Received: from pps.filterd (m0045851.ppops.net [127.0.0.1]) by mx0b-0016f401.pphosted.com (8.16.1.2/8.16.1.2) with SMTP id 187HaXD4018286; Tue, 7 Sep 2021 12:00:30 -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=KIGSlBo2Bpw0OAHOgBAk0FDQ2neyC5d0FjYPnhnZg6k=; b=g802oRRyltDdGcBRXVeKXbOyU5bW+Qx4O4jRod4Xd+4cg7xsZjN8RX2yPN1R3JbfS3kt oXfdNWjbVPheUroFX5mn3rcEb7qPWBUztZ4Gz4fLxOaBjXuvzU43aU1s6eUhSYTSGecY 7NJvigkXrs0XO33P+aHsxuTMXzoYYpEO/8LYUzzz2Y9kFfi1zgkWQWbOkBXoyyEGEtf8 aEBPJyU51JIigyp/+fHkHV1ioPhu2tT9zCVi7w0v2WYip40U+iIusJQ0Wj/MwzuiUJ7M GQvunsh+VSMHOXitvFvJAxcym1ZOhz3wvtvzzZaKT3qfFbH2Y8FwTyhe6/lmqDs6SoxV ig== Received: from dc5-exch01.marvell.com ([199.233.59.181]) by mx0b-0016f401.pphosted.com with ESMTP id 3axcmj8a71-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Tue, 07 Sep 2021 12:00:30 -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.18; Tue, 7 Sep 2021 12:00:28 -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; Tue, 7 Sep 2021 12:00:28 -0700 Received: from localhost.localdomain (unknown [10.28.36.185]) by maili.marvell.com (Postfix) with ESMTP id 770133F7091; Tue, 7 Sep 2021 12:00:23 -0700 (PDT) From: Akhil Goyal To: CC: , , , , , , , , , , , , , , , , , Akhil Goyal Date: Wed, 8 Sep 2021 00:30:16 +0530 Message-ID: <20210907190020.2968234-1-gakhil@marvell.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210810195020.1423013-1-gakhil@marvell.com> References: <20210810195020.1423013-1-gakhil@marvell.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Proofpoint-GUID: E9j-sqK7FS-qaStwC4t3_tPZO4jhp1Q4 X-Proofpoint-ORIG-GUID: E9j-sqK7FS-qaStwC4t3_tPZO4jhp1Q4 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-09-07_07,2021-09-07_02,2020-04-07_01 Subject: [dpdk-dev] [PATCH v3 0/4] cryptodev: expose driver interface as internal 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" rte_cryptodev_pmd.* files are meant to be used for DPDK internal usage only, but it was used illegally by applications. There is one API which can be used by applications to check if the dev_id has a valid device or not. This API is exposed and modified as rte_cryptodev_is_valid_dev() from rte_cryptodev_pmd_is_valid_dev(). Changes in v3: Added release notes. changes in v2: rebase over 21.08 release tag. Akhil Goyal (4): test/crypto: remove illegal header include cryptodev: change valid dev API examples/fips_validation: remove illegal usage of APIs cryptodev: expose driver interface as internal app/test/test_cryptodev.c | 1 - app/test/test_cryptodev_asym.c | 1 - app/test/test_cryptodev_blockcipher.c | 1 - app/test/test_cryptodev_security_pdcp.c | 1 - app/test/test_ipsec.c | 1 - doc/guides/rel_notes/release_21_11.rst | 8 +++ drivers/crypto/aesni_gcm/aesni_gcm_pmd.c | 2 +- drivers/crypto/aesni_gcm/aesni_gcm_pmd_ops.c | 2 +- drivers/crypto/aesni_mb/rte_aesni_mb_pmd.c | 2 +- .../crypto/aesni_mb/rte_aesni_mb_pmd_ops.c | 2 +- drivers/crypto/armv8/rte_armv8_pmd.c | 2 +- drivers/crypto/armv8/rte_armv8_pmd_ops.c | 2 +- drivers/crypto/bcmfs/bcmfs_sym_pmd.c | 2 +- drivers/crypto/bcmfs/bcmfs_sym_session.h | 2 +- drivers/crypto/caam_jr/caam_jr.c | 2 +- drivers/crypto/ccp/ccp_crypto.c | 2 +- drivers/crypto/ccp/ccp_pmd_ops.c | 2 +- drivers/crypto/ccp/rte_ccp_pmd.c | 2 +- drivers/crypto/cnxk/cn10k_cryptodev.c | 2 +- drivers/crypto/cnxk/cn10k_cryptodev_ops.c | 2 +- drivers/crypto/cnxk/cn10k_cryptodev_ops.h | 2 +- drivers/crypto/cnxk/cn9k_cryptodev.c | 2 +- drivers/crypto/cnxk/cn9k_cryptodev_ops.c | 2 +- drivers/crypto/cnxk/cn9k_cryptodev_ops.h | 2 +- drivers/crypto/cnxk/cnxk_cryptodev_ops.c | 2 +- drivers/crypto/dpaa2_sec/dpaa2_sec_dpseci.c | 2 +- drivers/crypto/dpaa_sec/dpaa_sec.c | 2 +- drivers/crypto/kasumi/rte_kasumi_pmd.c | 2 +- drivers/crypto/kasumi/rte_kasumi_pmd_ops.c | 2 +- drivers/crypto/mlx5/mlx5_crypto.h | 2 +- drivers/crypto/mvsam/rte_mrvl_pmd.c | 2 +- drivers/crypto/mvsam/rte_mrvl_pmd_ops.c | 2 +- drivers/crypto/nitrox/nitrox_sym.c | 2 +- drivers/crypto/null/null_crypto_pmd.c | 2 +- drivers/crypto/null/null_crypto_pmd_ops.c | 2 +- drivers/crypto/octeontx/otx_cryptodev.c | 2 +- drivers/crypto/octeontx/otx_cryptodev_ops.c | 2 +- drivers/crypto/octeontx2/otx2_cryptodev.c | 2 +- drivers/crypto/octeontx2/otx2_cryptodev_ops.c | 2 +- drivers/crypto/octeontx2/otx2_cryptodev_ops.h | 2 +- drivers/crypto/openssl/rte_openssl_pmd.c | 2 +- drivers/crypto/openssl/rte_openssl_pmd_ops.c | 2 +- drivers/crypto/qat/qat_asym.h | 2 +- drivers/crypto/qat/qat_asym_pmd.c | 2 +- drivers/crypto/qat/qat_sym.h | 2 +- drivers/crypto/qat/qat_sym_hw_dp.c | 2 +- drivers/crypto/qat/qat_sym_pmd.c | 2 +- drivers/crypto/qat/qat_sym_session.h | 2 +- .../scheduler/rte_cryptodev_scheduler.c | 2 +- drivers/crypto/scheduler/scheduler_pmd.c | 2 +- drivers/crypto/scheduler/scheduler_pmd_ops.c | 2 +- drivers/crypto/snow3g/rte_snow3g_pmd.c | 2 +- drivers/crypto/snow3g/rte_snow3g_pmd_ops.c | 2 +- drivers/crypto/virtio/virtio_cryptodev.c | 2 +- drivers/crypto/virtio/virtio_rxtx.c | 2 +- drivers/crypto/zuc/rte_zuc_pmd.c | 2 +- drivers/crypto/zuc/rte_zuc_pmd_ops.c | 2 +- .../octeontx2/otx2_evdev_crypto_adptr_rx.h | 2 +- .../octeontx2/otx2_evdev_crypto_adptr_tx.h | 2 +- .../net/softnic/rte_eth_softnic_cryptodev.c | 4 +- examples/fips_validation/fips_dev_self_test.c | 19 +------ examples/fips_validation/main.c | 9 ++-- examples/ip_pipeline/cryptodev.c | 3 +- .../{rte_cryptodev_pmd.c => cryptodev_pmd.c} | 2 +- .../{rte_cryptodev_pmd.h => cryptodev_pmd.h} | 27 +++++----- lib/cryptodev/meson.build | 18 +++++-- lib/cryptodev/rte_cryptodev.c | 52 +++++++++---------- lib/cryptodev/rte_cryptodev.h | 11 ++++ lib/cryptodev/version.map | 27 ++++++---- lib/eventdev/rte_event_crypto_adapter.c | 6 +-- lib/eventdev/rte_eventdev.c | 4 +- lib/pipeline/rte_table_action.c | 4 +- 72 files changed, 157 insertions(+), 148 deletions(-) rename lib/cryptodev/{rte_cryptodev_pmd.c => cryptodev_pmd.c} (99%) rename lib/cryptodev/{rte_cryptodev_pmd.h => cryptodev_pmd.h} (97%) -- 2.25.1