eventdev: add crypto adapter implementation
This patch adds common code for the crypto adapter to support SW and HW based transfer mechanisms. The adapter uses an EAL service core function for SW based packet transfer and uses the eventdev PMD functions to configure HW based packet transfer between the crypto device and the event device. This patch also adds adapter to the meson build system & updates the necessary makefile & map file. Signed-off-by: Abhinandan Gujjar <abhinandan.gujjar@intel.com> Signed-off-by: Nikhil Rao <nikhil.rao@intel.com> Signed-off-by: Gage Eads <gage.eads@intel.com> Acked-by: Akhil Goyal <akhil.goyal@nxp.com>
This commit is contained in:
parent
9dc1bd7326
commit
7901eac340
@ -577,6 +577,7 @@ CONFIG_RTE_LIBRTE_EVENTDEV_DEBUG=n
|
||||
CONFIG_RTE_EVENT_MAX_DEVS=16
|
||||
CONFIG_RTE_EVENT_MAX_QUEUES_PER_DEV=64
|
||||
CONFIG_RTE_EVENT_TIMER_ADAPTER_NUM_MAX=32
|
||||
CONFIG_RTE_EVENT_CRYPTO_ADAPTER_MAX_INSTANCE=32
|
||||
|
||||
#
|
||||
# Compile PMD for skeleton event device
|
||||
|
@ -61,6 +61,7 @@
|
||||
#define RTE_EVENT_MAX_DEVS 16
|
||||
#define RTE_EVENT_MAX_QUEUES_PER_DEV 64
|
||||
#define RTE_EVENT_TIMER_ADAPTER_NUM_MAX 32
|
||||
#define RTE_EVENT_CRYPTO_ADAPTER_MAX_INSTANCE 32
|
||||
|
||||
/* rawdev defines */
|
||||
#define RTE_RAWDEV_MAX_DEVS 10
|
||||
|
@ -22,6 +22,7 @@ SRCS-y += rte_eventdev.c
|
||||
SRCS-y += rte_event_ring.c
|
||||
SRCS-y += rte_event_eth_rx_adapter.c
|
||||
SRCS-y += rte_event_timer_adapter.c
|
||||
SRCS-y += rte_event_crypto_adapter.c
|
||||
|
||||
# export include files
|
||||
SYMLINK-y-include += rte_eventdev.h
|
||||
@ -32,6 +33,7 @@ SYMLINK-y-include += rte_event_ring.h
|
||||
SYMLINK-y-include += rte_event_eth_rx_adapter.h
|
||||
SYMLINK-y-include += rte_event_timer_adapter.h
|
||||
SYMLINK-y-include += rte_event_timer_adapter_pmd.h
|
||||
SYMLINK-y-include += rte_event_crypto_adapter.h
|
||||
|
||||
# versioning export map
|
||||
EXPORT_MAP := rte_eventdev_version.map
|
||||
|
@ -6,7 +6,8 @@ allow_experimental_apis = true
|
||||
sources = files('rte_eventdev.c',
|
||||
'rte_event_ring.c',
|
||||
'rte_event_eth_rx_adapter.c',
|
||||
'rte_event_timer_adapter.c')
|
||||
'rte_event_timer_adapter.c',
|
||||
'rte_event_crypto_adapter.c')
|
||||
headers = files('rte_eventdev.h',
|
||||
'rte_eventdev_pmd.h',
|
||||
'rte_eventdev_pmd_pci.h',
|
||||
@ -14,5 +15,6 @@ headers = files('rte_eventdev.h',
|
||||
'rte_event_ring.h',
|
||||
'rte_event_eth_rx_adapter.h',
|
||||
'rte_event_timer_adapter.h',
|
||||
'rte_event_timer_adapter_pmd.h')
|
||||
'rte_event_timer_adapter_pmd.h',
|
||||
'rte_event_crypto_adapter.h')
|
||||
deps += ['ring', 'ethdev', 'hash', 'mempool', 'mbuf', 'timer', 'cryptodev']
|
||||
|
1128
lib/librte_eventdev/rte_event_crypto_adapter.c
Normal file
1128
lib/librte_eventdev/rte_event_crypto_adapter.c
Normal file
File diff suppressed because it is too large
Load Diff
@ -98,5 +98,16 @@ EXPERIMENTAL {
|
||||
rte_event_timer_arm_tmo_tick_burst;
|
||||
rte_event_timer_cancel_burst;
|
||||
rte_event_crypto_adapter_caps_get;
|
||||
rte_event_crypto_adapter_create;
|
||||
rte_event_crypto_adapter_create_ext;
|
||||
rte_event_crypto_adapter_event_port_get;
|
||||
rte_event_crypto_adapter_free;
|
||||
rte_event_crypto_adapter_queue_pair_add;
|
||||
rte_event_crypto_adapter_queue_pair_del;
|
||||
rte_event_crypto_adapter_service_id_get;
|
||||
rte_event_crypto_adapter_start;
|
||||
rte_event_crypto_adapter_stats_get;
|
||||
rte_event_crypto_adapter_stats_reset;
|
||||
rte_event_crypto_adapter_stop;
|
||||
|
||||
} DPDK_18.05;
|
||||
|
Loading…
Reference in New Issue
Block a user