cryptodev: expose driver interface as internal
The rte_cryptodev_pmd.* files are for drivers only and should be private to DPDK, and not installed for app use. Signed-off-by: Akhil Goyal <gakhil@marvell.com> Acked-by: Matan Azrad <matan@nvidia.com> Acked-by: Fan Zhang <roy.fan.zhang@intel.com> Acked-by: Hemant Agrawal <hemant.agrawal@nxp.com>
This commit is contained in:
parent
74645f64ad
commit
af668035f7
@ -223,9 +223,6 @@ Deprecation Notices
|
||||
session and the private data of session. An opaque pointer can be exposed
|
||||
directly to application which can be attached to the ``rte_crypto_op``.
|
||||
|
||||
* cryptodev: The interface between library and drivers will be marked
|
||||
as internal in DPDK 21.11.
|
||||
|
||||
* security: Hide structure ``rte_security_session`` and expose an opaque
|
||||
pointer for the private data to the application which can be attached
|
||||
to the packet while enqueuing.
|
||||
|
@ -106,6 +106,10 @@ API Changes
|
||||
rte_cryptodev_is_valid_dev as it can be used by the application as
|
||||
well as PMD to check whether the device is valid or not.
|
||||
|
||||
* cryptodev: The rte_cryptodev_pmd.* files are renamed as cryptodev_pmd.*
|
||||
as it is for drivers only and should be private to DPDK, and not
|
||||
installed for app use.
|
||||
|
||||
|
||||
ABI Changes
|
||||
-----------
|
||||
|
@ -5,7 +5,7 @@
|
||||
#include <rte_common.h>
|
||||
#include <rte_hexdump.h>
|
||||
#include <rte_cryptodev.h>
|
||||
#include <rte_cryptodev_pmd.h>
|
||||
#include <cryptodev_pmd.h>
|
||||
#include <rte_bus_vdev.h>
|
||||
#include <rte_malloc.h>
|
||||
#include <rte_cpuflags.h>
|
||||
|
@ -6,7 +6,7 @@
|
||||
|
||||
#include <rte_common.h>
|
||||
#include <rte_malloc.h>
|
||||
#include <rte_cryptodev_pmd.h>
|
||||
#include <cryptodev_pmd.h>
|
||||
|
||||
#include "aesni_gcm_pmd_private.h"
|
||||
|
||||
|
@ -7,7 +7,7 @@
|
||||
#include <rte_common.h>
|
||||
#include <rte_hexdump.h>
|
||||
#include <rte_cryptodev.h>
|
||||
#include <rte_cryptodev_pmd.h>
|
||||
#include <cryptodev_pmd.h>
|
||||
#include <rte_bus_vdev.h>
|
||||
#include <rte_malloc.h>
|
||||
#include <rte_cpuflags.h>
|
||||
|
@ -8,7 +8,7 @@
|
||||
#include <rte_common.h>
|
||||
#include <rte_malloc.h>
|
||||
#include <rte_ether.h>
|
||||
#include <rte_cryptodev_pmd.h>
|
||||
#include <cryptodev_pmd.h>
|
||||
|
||||
#include "aesni_mb_pmd_private.h"
|
||||
|
||||
|
@ -7,7 +7,7 @@
|
||||
#include <rte_common.h>
|
||||
#include <rte_hexdump.h>
|
||||
#include <rte_cryptodev.h>
|
||||
#include <rte_cryptodev_pmd.h>
|
||||
#include <cryptodev_pmd.h>
|
||||
#include <rte_bus_vdev.h>
|
||||
#include <rte_malloc.h>
|
||||
#include <rte_cpuflags.h>
|
||||
|
@ -6,7 +6,7 @@
|
||||
|
||||
#include <rte_common.h>
|
||||
#include <rte_malloc.h>
|
||||
#include <rte_cryptodev_pmd.h>
|
||||
#include <cryptodev_pmd.h>
|
||||
|
||||
#include "armv8_pmd_private.h"
|
||||
|
||||
|
@ -7,7 +7,7 @@
|
||||
#include <rte_dev.h>
|
||||
#include <rte_errno.h>
|
||||
#include <rte_malloc.h>
|
||||
#include <rte_cryptodev_pmd.h>
|
||||
#include <cryptodev_pmd.h>
|
||||
|
||||
#include "bcmfs_device.h"
|
||||
#include "bcmfs_logs.h"
|
||||
|
@ -8,7 +8,7 @@
|
||||
|
||||
#include <stdbool.h>
|
||||
#include <rte_crypto.h>
|
||||
#include <rte_cryptodev_pmd.h>
|
||||
#include <cryptodev_pmd.h>
|
||||
|
||||
#include "bcmfs_sym_defs.h"
|
||||
#include "bcmfs_sym_req.h"
|
||||
|
@ -9,7 +9,7 @@
|
||||
|
||||
#include <rte_byteorder.h>
|
||||
#include <rte_common.h>
|
||||
#include <rte_cryptodev_pmd.h>
|
||||
#include <cryptodev_pmd.h>
|
||||
#include <rte_crypto.h>
|
||||
#include <rte_cryptodev.h>
|
||||
#include <rte_bus_vdev.h>
|
||||
|
@ -20,7 +20,7 @@
|
||||
#include <rte_memory.h>
|
||||
#include <rte_spinlock.h>
|
||||
#include <rte_string_fns.h>
|
||||
#include <rte_cryptodev_pmd.h>
|
||||
#include <cryptodev_pmd.h>
|
||||
|
||||
#include "ccp_dev.h"
|
||||
#include "ccp_crypto.h"
|
||||
|
@ -5,7 +5,7 @@
|
||||
#include <string.h>
|
||||
|
||||
#include <rte_common.h>
|
||||
#include <rte_cryptodev_pmd.h>
|
||||
#include <cryptodev_pmd.h>
|
||||
#include <rte_malloc.h>
|
||||
|
||||
#include "ccp_pmd_private.h"
|
||||
|
@ -7,7 +7,7 @@
|
||||
#include <rte_bus_vdev.h>
|
||||
#include <rte_common.h>
|
||||
#include <rte_cryptodev.h>
|
||||
#include <rte_cryptodev_pmd.h>
|
||||
#include <cryptodev_pmd.h>
|
||||
#include <rte_pci.h>
|
||||
#include <rte_dev.h>
|
||||
#include <rte_malloc.h>
|
||||
|
@ -6,7 +6,7 @@
|
||||
#include <rte_common.h>
|
||||
#include <rte_crypto.h>
|
||||
#include <rte_cryptodev.h>
|
||||
#include <rte_cryptodev_pmd.h>
|
||||
#include <cryptodev_pmd.h>
|
||||
#include <rte_dev.h>
|
||||
#include <rte_pci.h>
|
||||
|
||||
|
@ -3,7 +3,7 @@
|
||||
*/
|
||||
|
||||
#include <rte_cryptodev.h>
|
||||
#include <rte_cryptodev_pmd.h>
|
||||
#include <cryptodev_pmd.h>
|
||||
#include <rte_event_crypto_adapter.h>
|
||||
#include <rte_ip.h>
|
||||
|
||||
|
@ -6,7 +6,7 @@
|
||||
#define _CN10K_CRYPTODEV_OPS_H_
|
||||
|
||||
#include <rte_cryptodev.h>
|
||||
#include <rte_cryptodev_pmd.h>
|
||||
#include <cryptodev_pmd.h>
|
||||
|
||||
extern struct rte_cryptodev_ops cn10k_cpt_ops;
|
||||
|
||||
|
@ -6,7 +6,7 @@
|
||||
#include <rte_common.h>
|
||||
#include <rte_crypto.h>
|
||||
#include <rte_cryptodev.h>
|
||||
#include <rte_cryptodev_pmd.h>
|
||||
#include <cryptodev_pmd.h>
|
||||
#include <rte_dev.h>
|
||||
#include <rte_pci.h>
|
||||
|
||||
|
@ -3,7 +3,7 @@
|
||||
*/
|
||||
|
||||
#include <rte_cryptodev.h>
|
||||
#include <rte_cryptodev_pmd.h>
|
||||
#include <cryptodev_pmd.h>
|
||||
#include <rte_event_crypto_adapter.h>
|
||||
#include <rte_ip.h>
|
||||
#include <rte_vect.h>
|
||||
|
@ -5,7 +5,7 @@
|
||||
#ifndef _CN9K_CRYPTODEV_OPS_H_
|
||||
#define _CN9K_CRYPTODEV_OPS_H_
|
||||
|
||||
#include <rte_cryptodev_pmd.h>
|
||||
#include <cryptodev_pmd.h>
|
||||
|
||||
extern struct rte_cryptodev_ops cn9k_cpt_ops;
|
||||
|
||||
|
@ -3,7 +3,7 @@
|
||||
*/
|
||||
|
||||
#include <rte_cryptodev.h>
|
||||
#include <rte_cryptodev_pmd.h>
|
||||
#include <cryptodev_pmd.h>
|
||||
#include <rte_errno.h>
|
||||
|
||||
#include "roc_cpt.h"
|
||||
|
@ -18,7 +18,7 @@
|
||||
#include <rte_cycles.h>
|
||||
#include <rte_kvargs.h>
|
||||
#include <rte_dev.h>
|
||||
#include <rte_cryptodev_pmd.h>
|
||||
#include <cryptodev_pmd.h>
|
||||
#include <rte_common.h>
|
||||
#include <rte_fslmc.h>
|
||||
#include <fslmc_vfio.h>
|
||||
|
@ -12,7 +12,7 @@
|
||||
|
||||
#include <rte_byteorder.h>
|
||||
#include <rte_common.h>
|
||||
#include <rte_cryptodev_pmd.h>
|
||||
#include <cryptodev_pmd.h>
|
||||
#include <rte_crypto.h>
|
||||
#include <rte_cryptodev.h>
|
||||
#ifdef RTE_LIB_SECURITY
|
||||
|
@ -5,7 +5,7 @@
|
||||
#include <rte_common.h>
|
||||
#include <rte_hexdump.h>
|
||||
#include <rte_cryptodev.h>
|
||||
#include <rte_cryptodev_pmd.h>
|
||||
#include <cryptodev_pmd.h>
|
||||
#include <rte_bus_vdev.h>
|
||||
#include <rte_malloc.h>
|
||||
#include <rte_cpuflags.h>
|
||||
|
@ -6,7 +6,7 @@
|
||||
|
||||
#include <rte_common.h>
|
||||
#include <rte_malloc.h>
|
||||
#include <rte_cryptodev_pmd.h>
|
||||
#include <cryptodev_pmd.h>
|
||||
|
||||
#include "kasumi_pmd_private.h"
|
||||
|
||||
|
@ -8,7 +8,7 @@
|
||||
#include <stdbool.h>
|
||||
|
||||
#include <rte_cryptodev.h>
|
||||
#include <rte_cryptodev_pmd.h>
|
||||
#include <cryptodev_pmd.h>
|
||||
|
||||
#include <mlx5_common_utils.h>
|
||||
#include <mlx5_common_devx.h>
|
||||
|
@ -7,7 +7,7 @@
|
||||
#include <rte_common.h>
|
||||
#include <rte_hexdump.h>
|
||||
#include <rte_cryptodev.h>
|
||||
#include <rte_cryptodev_pmd.h>
|
||||
#include <cryptodev_pmd.h>
|
||||
#include <rte_security_driver.h>
|
||||
#include <rte_bus_vdev.h>
|
||||
#include <rte_malloc.h>
|
||||
|
@ -8,7 +8,7 @@
|
||||
|
||||
#include <rte_common.h>
|
||||
#include <rte_malloc.h>
|
||||
#include <rte_cryptodev_pmd.h>
|
||||
#include <cryptodev_pmd.h>
|
||||
#include <rte_security_driver.h>
|
||||
|
||||
#include "mrvl_pmd_private.h"
|
||||
|
@ -4,7 +4,7 @@
|
||||
|
||||
#include <stdbool.h>
|
||||
|
||||
#include <rte_cryptodev_pmd.h>
|
||||
#include <cryptodev_pmd.h>
|
||||
#include <rte_crypto.h>
|
||||
|
||||
#include "nitrox_sym.h"
|
||||
|
@ -3,7 +3,7 @@
|
||||
*/
|
||||
|
||||
#include <rte_common.h>
|
||||
#include <rte_cryptodev_pmd.h>
|
||||
#include <cryptodev_pmd.h>
|
||||
#include <rte_bus_vdev.h>
|
||||
#include <rte_malloc.h>
|
||||
|
||||
|
@ -6,7 +6,7 @@
|
||||
|
||||
#include <rte_common.h>
|
||||
#include <rte_malloc.h>
|
||||
#include <rte_cryptodev_pmd.h>
|
||||
#include <cryptodev_pmd.h>
|
||||
|
||||
#include "null_crypto_pmd_private.h"
|
||||
|
||||
|
@ -5,7 +5,7 @@
|
||||
#include <rte_bus_pci.h>
|
||||
#include <rte_common.h>
|
||||
#include <rte_cryptodev.h>
|
||||
#include <rte_cryptodev_pmd.h>
|
||||
#include <cryptodev_pmd.h>
|
||||
#include <rte_log.h>
|
||||
#include <rte_pci.h>
|
||||
|
||||
|
@ -5,7 +5,7 @@
|
||||
#include <rte_alarm.h>
|
||||
#include <rte_bus_pci.h>
|
||||
#include <rte_cryptodev.h>
|
||||
#include <rte_cryptodev_pmd.h>
|
||||
#include <cryptodev_pmd.h>
|
||||
#include <rte_eventdev.h>
|
||||
#include <rte_event_crypto_adapter.h>
|
||||
#include <rte_errno.h>
|
||||
|
@ -6,7 +6,7 @@
|
||||
#include <rte_common.h>
|
||||
#include <rte_crypto.h>
|
||||
#include <rte_cryptodev.h>
|
||||
#include <rte_cryptodev_pmd.h>
|
||||
#include <cryptodev_pmd.h>
|
||||
#include <rte_dev.h>
|
||||
#include <rte_errno.h>
|
||||
#include <rte_mempool.h>
|
||||
|
@ -4,7 +4,7 @@
|
||||
|
||||
#include <unistd.h>
|
||||
|
||||
#include <rte_cryptodev_pmd.h>
|
||||
#include <cryptodev_pmd.h>
|
||||
#include <rte_errno.h>
|
||||
#include <rte_ethdev.h>
|
||||
#include <rte_event_crypto_adapter.h>
|
||||
|
@ -5,7 +5,7 @@
|
||||
#ifndef _OTX2_CRYPTODEV_OPS_H_
|
||||
#define _OTX2_CRYPTODEV_OPS_H_
|
||||
|
||||
#include <rte_cryptodev_pmd.h>
|
||||
#include <cryptodev_pmd.h>
|
||||
|
||||
#define OTX2_CPT_MIN_HEADROOM_REQ 24
|
||||
#define OTX2_CPT_MIN_TAILROOM_REQ 8
|
||||
|
@ -5,7 +5,7 @@
|
||||
#include <rte_common.h>
|
||||
#include <rte_hexdump.h>
|
||||
#include <rte_cryptodev.h>
|
||||
#include <rte_cryptodev_pmd.h>
|
||||
#include <cryptodev_pmd.h>
|
||||
#include <rte_bus_vdev.h>
|
||||
#include <rte_malloc.h>
|
||||
#include <rte_cpuflags.h>
|
||||
|
@ -6,7 +6,7 @@
|
||||
|
||||
#include <rte_common.h>
|
||||
#include <rte_malloc.h>
|
||||
#include <rte_cryptodev_pmd.h>
|
||||
#include <cryptodev_pmd.h>
|
||||
|
||||
#include "openssl_pmd_private.h"
|
||||
#include "compat.h"
|
||||
|
@ -5,7 +5,7 @@
|
||||
#ifndef _QAT_ASYM_H_
|
||||
#define _QAT_ASYM_H_
|
||||
|
||||
#include <rte_cryptodev_pmd.h>
|
||||
#include <cryptodev_pmd.h>
|
||||
#include <rte_crypto_asym.h>
|
||||
#include "icp_qat_fw_pke.h"
|
||||
#include "qat_common.h"
|
||||
|
@ -2,7 +2,7 @@
|
||||
* Copyright(c) 2019 Intel Corporation
|
||||
*/
|
||||
|
||||
#include <rte_cryptodev_pmd.h>
|
||||
#include <cryptodev_pmd.h>
|
||||
|
||||
#include "qat_logs.h"
|
||||
|
||||
|
@ -5,7 +5,7 @@
|
||||
#ifndef _QAT_SYM_H_
|
||||
#define _QAT_SYM_H_
|
||||
|
||||
#include <rte_cryptodev_pmd.h>
|
||||
#include <cryptodev_pmd.h>
|
||||
#ifdef RTE_LIB_SECURITY
|
||||
#include <rte_net_crc.h>
|
||||
#endif
|
||||
|
@ -2,7 +2,7 @@
|
||||
* Copyright(c) 2020 Intel Corporation
|
||||
*/
|
||||
|
||||
#include <rte_cryptodev_pmd.h>
|
||||
#include <cryptodev_pmd.h>
|
||||
|
||||
#include "adf_transport_access_macros.h"
|
||||
#include "icp_qat_fw.h"
|
||||
|
@ -7,7 +7,7 @@
|
||||
#include <rte_dev.h>
|
||||
#include <rte_malloc.h>
|
||||
#include <rte_pci.h>
|
||||
#include <rte_cryptodev_pmd.h>
|
||||
#include <cryptodev_pmd.h>
|
||||
#ifdef RTE_LIB_SECURITY
|
||||
#include <rte_security_driver.h>
|
||||
#endif
|
||||
|
@ -5,7 +5,7 @@
|
||||
#define _QAT_SYM_SESSION_H_
|
||||
|
||||
#include <rte_crypto.h>
|
||||
#include <rte_cryptodev_pmd.h>
|
||||
#include <cryptodev_pmd.h>
|
||||
#ifdef RTE_LIB_SECURITY
|
||||
#include <rte_security.h>
|
||||
#endif
|
||||
|
@ -4,7 +4,7 @@
|
||||
#include <rte_string_fns.h>
|
||||
#include <rte_reorder.h>
|
||||
#include <rte_cryptodev.h>
|
||||
#include <rte_cryptodev_pmd.h>
|
||||
#include <cryptodev_pmd.h>
|
||||
#include <rte_malloc.h>
|
||||
|
||||
#include "rte_cryptodev_scheduler.h"
|
||||
|
@ -4,7 +4,7 @@
|
||||
#include <rte_common.h>
|
||||
#include <rte_hexdump.h>
|
||||
#include <rte_cryptodev.h>
|
||||
#include <rte_cryptodev_pmd.h>
|
||||
#include <cryptodev_pmd.h>
|
||||
#include <rte_bus_vdev.h>
|
||||
#include <rte_malloc.h>
|
||||
#include <rte_cpuflags.h>
|
||||
|
@ -7,7 +7,7 @@
|
||||
#include <rte_malloc.h>
|
||||
#include <rte_dev.h>
|
||||
#include <rte_cryptodev.h>
|
||||
#include <rte_cryptodev_pmd.h>
|
||||
#include <cryptodev_pmd.h>
|
||||
#include <rte_reorder.h>
|
||||
|
||||
#include "scheduler_pmd_private.h"
|
||||
|
@ -5,7 +5,7 @@
|
||||
#include <rte_common.h>
|
||||
#include <rte_hexdump.h>
|
||||
#include <rte_cryptodev.h>
|
||||
#include <rte_cryptodev_pmd.h>
|
||||
#include <cryptodev_pmd.h>
|
||||
#include <rte_bus_vdev.h>
|
||||
#include <rte_malloc.h>
|
||||
#include <rte_cpuflags.h>
|
||||
|
@ -6,7 +6,7 @@
|
||||
|
||||
#include <rte_common.h>
|
||||
#include <rte_malloc.h>
|
||||
#include <rte_cryptodev_pmd.h>
|
||||
#include <cryptodev_pmd.h>
|
||||
|
||||
#include "snow3g_pmd_private.h"
|
||||
|
||||
|
@ -9,7 +9,7 @@
|
||||
#include <rte_pci.h>
|
||||
#include <rte_bus_pci.h>
|
||||
#include <rte_cryptodev.h>
|
||||
#include <rte_cryptodev_pmd.h>
|
||||
#include <cryptodev_pmd.h>
|
||||
#include <rte_eal.h>
|
||||
|
||||
#include "virtio_cryptodev.h"
|
||||
|
@ -1,7 +1,7 @@
|
||||
/* SPDX-License-Identifier: BSD-3-Clause
|
||||
* Copyright(c) 2018 HUAWEI TECHNOLOGIES CO., LTD.
|
||||
*/
|
||||
#include <rte_cryptodev_pmd.h>
|
||||
#include <cryptodev_pmd.h>
|
||||
|
||||
#include "virtqueue.h"
|
||||
#include "virtio_cryptodev.h"
|
||||
|
@ -5,7 +5,7 @@
|
||||
#include <rte_common.h>
|
||||
#include <rte_hexdump.h>
|
||||
#include <rte_cryptodev.h>
|
||||
#include <rte_cryptodev_pmd.h>
|
||||
#include <cryptodev_pmd.h>
|
||||
#include <rte_bus_vdev.h>
|
||||
#include <rte_malloc.h>
|
||||
#include <rte_cpuflags.h>
|
||||
|
@ -6,7 +6,7 @@
|
||||
|
||||
#include <rte_common.h>
|
||||
#include <rte_malloc.h>
|
||||
#include <rte_cryptodev_pmd.h>
|
||||
#include <cryptodev_pmd.h>
|
||||
|
||||
#include "zuc_pmd_private.h"
|
||||
|
||||
|
@ -6,7 +6,7 @@
|
||||
#define _OTX2_EVDEV_CRYPTO_ADPTR_RX_H_
|
||||
|
||||
#include <rte_cryptodev.h>
|
||||
#include <rte_cryptodev_pmd.h>
|
||||
#include <cryptodev_pmd.h>
|
||||
#include <rte_eventdev.h>
|
||||
|
||||
#include "cpt_pmd_logs.h"
|
||||
|
@ -6,7 +6,7 @@
|
||||
#define _OTX2_EVDEV_CRYPTO_ADPTR_TX_H_
|
||||
|
||||
#include <rte_cryptodev.h>
|
||||
#include <rte_cryptodev_pmd.h>
|
||||
#include <cryptodev_pmd.h>
|
||||
#include <rte_event_crypto_adapter.h>
|
||||
#include <rte_eventdev.h>
|
||||
|
||||
|
@ -6,7 +6,7 @@
|
||||
#include <stdio.h>
|
||||
|
||||
#include <rte_cryptodev.h>
|
||||
#include <rte_cryptodev_pmd.h>
|
||||
#include <cryptodev_pmd.h>
|
||||
#include <rte_string_fns.h>
|
||||
|
||||
#include "rte_eth_softnic_internals.h"
|
||||
|
@ -5,7 +5,7 @@
|
||||
#include <rte_string_fns.h>
|
||||
#include <rte_malloc.h>
|
||||
|
||||
#include "rte_cryptodev_pmd.h"
|
||||
#include "cryptodev_pmd.h"
|
||||
|
||||
/**
|
||||
* Parse name from argument
|
@ -2,8 +2,8 @@
|
||||
* Copyright(c) 2015-2020 Intel Corporation.
|
||||
*/
|
||||
|
||||
#ifndef _RTE_CRYPTODEV_PMD_H_
|
||||
#define _RTE_CRYPTODEV_PMD_H_
|
||||
#ifndef _CRYPTODEV_PMD_H_
|
||||
#define _CRYPTODEV_PMD_H_
|
||||
|
||||
/** @file
|
||||
* RTE Crypto PMD APIs
|
||||
@ -80,6 +80,7 @@ struct cryptodev_driver {
|
||||
* @return
|
||||
* - The rte_cryptodev structure pointer for the given device ID.
|
||||
*/
|
||||
__rte_internal
|
||||
struct rte_cryptodev *
|
||||
rte_cryptodev_pmd_get_dev(uint8_t dev_id);
|
||||
|
||||
@ -91,6 +92,7 @@ rte_cryptodev_pmd_get_dev(uint8_t dev_id);
|
||||
* @return
|
||||
* - The rte_cryptodev structure pointer for the given device ID.
|
||||
*/
|
||||
__rte_internal
|
||||
struct rte_cryptodev *
|
||||
rte_cryptodev_pmd_get_named_dev(const char *name);
|
||||
|
||||
@ -401,6 +403,7 @@ struct rte_cryptodev_ops {
|
||||
* @return
|
||||
* - Slot in the rte_dev_devices array for a new device;
|
||||
*/
|
||||
__rte_internal
|
||||
struct rte_cryptodev *
|
||||
rte_cryptodev_pmd_allocate(const char *name, int socket_id);
|
||||
|
||||
@ -414,6 +417,7 @@ rte_cryptodev_pmd_allocate(const char *name, int socket_id);
|
||||
* @return
|
||||
* - 0 on success, negative on error
|
||||
*/
|
||||
__rte_internal
|
||||
extern int
|
||||
rte_cryptodev_pmd_release_device(struct rte_cryptodev *cryptodev);
|
||||
|
||||
@ -435,6 +439,7 @@ rte_cryptodev_pmd_release_device(struct rte_cryptodev *cryptodev);
|
||||
* - 0 on success
|
||||
* - errno on failure
|
||||
*/
|
||||
__rte_internal
|
||||
int
|
||||
rte_cryptodev_pmd_parse_input_args(
|
||||
struct rte_cryptodev_pmd_init_params *params,
|
||||
@ -454,6 +459,7 @@ rte_cryptodev_pmd_parse_input_args(
|
||||
* - crypto device instance on success
|
||||
* - NULL on creation failure
|
||||
*/
|
||||
__rte_internal
|
||||
struct rte_cryptodev *
|
||||
rte_cryptodev_pmd_create(const char *name,
|
||||
struct rte_device *device,
|
||||
@ -471,6 +477,7 @@ rte_cryptodev_pmd_create(const char *name,
|
||||
* - 0 on success
|
||||
* - errno on failure
|
||||
*/
|
||||
__rte_internal
|
||||
int
|
||||
rte_cryptodev_pmd_destroy(struct rte_cryptodev *cryptodev);
|
||||
|
||||
@ -484,6 +491,7 @@ rte_cryptodev_pmd_destroy(struct rte_cryptodev *cryptodev);
|
||||
* @return
|
||||
* void
|
||||
*/
|
||||
__rte_internal
|
||||
void rte_cryptodev_pmd_callback_process(struct rte_cryptodev *dev,
|
||||
enum rte_cryptodev_event_type event);
|
||||
|
||||
@ -491,6 +499,7 @@ void rte_cryptodev_pmd_callback_process(struct rte_cryptodev *dev,
|
||||
* @internal
|
||||
* Create unique device name
|
||||
*/
|
||||
__rte_internal
|
||||
int
|
||||
rte_cryptodev_pmd_create_dev_name(char *name, const char *dev_name_prefix);
|
||||
|
||||
@ -506,6 +515,7 @@ rte_cryptodev_pmd_create_dev_name(char *name, const char *dev_name_prefix);
|
||||
* @return
|
||||
* The driver type identifier
|
||||
*/
|
||||
__rte_internal
|
||||
uint8_t rte_cryptodev_allocate_driver(struct cryptodev_driver *crypto_drv,
|
||||
const struct rte_driver *drv);
|
||||
|
||||
@ -555,4 +565,4 @@ set_asym_session_private_data(struct rte_cryptodev_asym_session *sess,
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif /* _RTE_CRYPTODEV_PMD_H_ */
|
||||
#endif /* _CRYPTODEV_PMD_H_ */
|
@ -1,12 +1,22 @@
|
||||
# SPDX-License-Identifier: BSD-3-Clause
|
||||
# Copyright(c) 2017-2019 Intel Corporation
|
||||
|
||||
sources = files('rte_cryptodev.c', 'rte_cryptodev_pmd.c', 'cryptodev_trace_points.c')
|
||||
headers = files('rte_cryptodev.h',
|
||||
'rte_cryptodev_pmd.h',
|
||||
sources = files(
|
||||
'cryptodev_pmd.c',
|
||||
'cryptodev_trace_points.c',
|
||||
'rte_cryptodev.c',
|
||||
)
|
||||
headers = files(
|
||||
'rte_cryptodev.h',
|
||||
'rte_cryptodev_trace.h',
|
||||
'rte_cryptodev_trace_fp.h',
|
||||
'rte_crypto.h',
|
||||
'rte_crypto_sym.h',
|
||||
'rte_crypto_asym.h')
|
||||
'rte_crypto_asym.h',
|
||||
)
|
||||
|
||||
driver_sdk_headers += files(
|
||||
'cryptodev_pmd.h',
|
||||
)
|
||||
|
||||
deps += ['kvargs', 'mbuf', 'rcu']
|
||||
|
@ -39,7 +39,7 @@
|
||||
|
||||
#include "rte_crypto.h"
|
||||
#include "rte_cryptodev.h"
|
||||
#include "rte_cryptodev_pmd.h"
|
||||
#include "cryptodev_pmd.h"
|
||||
#include "rte_cryptodev_trace.h"
|
||||
|
||||
static uint8_t nb_drivers;
|
||||
|
@ -8,7 +8,6 @@ DPDK_22 {
|
||||
rte_crypto_cipher_algorithm_strings;
|
||||
rte_crypto_cipher_operation_strings;
|
||||
rte_crypto_op_pool_create;
|
||||
rte_cryptodev_allocate_driver;
|
||||
rte_cryptodev_callback_register;
|
||||
rte_cryptodev_callback_unregister;
|
||||
rte_cryptodev_close;
|
||||
@ -27,15 +26,6 @@ DPDK_22 {
|
||||
rte_cryptodev_info_get;
|
||||
rte_cryptodev_is_valid_dev;
|
||||
rte_cryptodev_name_get;
|
||||
rte_cryptodev_pmd_allocate;
|
||||
rte_cryptodev_pmd_callback_process;
|
||||
rte_cryptodev_pmd_create;
|
||||
rte_cryptodev_pmd_create_dev_name;
|
||||
rte_cryptodev_pmd_destroy;
|
||||
rte_cryptodev_pmd_get_dev;
|
||||
rte_cryptodev_pmd_get_named_dev;
|
||||
rte_cryptodev_pmd_parse_input_args;
|
||||
rte_cryptodev_pmd_release_device;
|
||||
rte_cryptodev_queue_pair_count;
|
||||
rte_cryptodev_queue_pair_setup;
|
||||
rte_cryptodev_socket_id;
|
||||
@ -117,3 +107,18 @@ EXPERIMENTAL {
|
||||
rte_cryptodev_remove_enq_callback;
|
||||
|
||||
};
|
||||
|
||||
INTERNAL {
|
||||
global:
|
||||
|
||||
rte_cryptodev_allocate_driver;
|
||||
rte_cryptodev_pmd_allocate;
|
||||
rte_cryptodev_pmd_callback_process;
|
||||
rte_cryptodev_pmd_create;
|
||||
rte_cryptodev_pmd_create_dev_name;
|
||||
rte_cryptodev_pmd_destroy;
|
||||
rte_cryptodev_pmd_get_dev;
|
||||
rte_cryptodev_pmd_get_named_dev;
|
||||
rte_cryptodev_pmd_parse_input_args;
|
||||
rte_cryptodev_pmd_release_device;
|
||||
};
|
||||
|
@ -9,7 +9,7 @@
|
||||
#include <rte_dev.h>
|
||||
#include <rte_errno.h>
|
||||
#include <rte_cryptodev.h>
|
||||
#include <rte_cryptodev_pmd.h>
|
||||
#include <cryptodev_pmd.h>
|
||||
#include <rte_log.h>
|
||||
#include <rte_malloc.h>
|
||||
#include <rte_service_component.h>
|
||||
|
@ -31,7 +31,7 @@
|
||||
#include <rte_errno.h>
|
||||
#include <rte_ethdev.h>
|
||||
#include <rte_cryptodev.h>
|
||||
#include <rte_cryptodev_pmd.h>
|
||||
#include <cryptodev_pmd.h>
|
||||
#include <rte_telemetry.h>
|
||||
|
||||
#include "rte_eventdev.h"
|
||||
|
@ -16,7 +16,7 @@
|
||||
#include <rte_udp.h>
|
||||
#include <rte_vxlan.h>
|
||||
#include <rte_cryptodev.h>
|
||||
#include <rte_cryptodev_pmd.h>
|
||||
#include <cryptodev_pmd.h>
|
||||
|
||||
#include "rte_table_action.h"
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user