crypto: change cryptodev with new cryptodev API
Type: feature This patch updateds cryptodev engine uses new DPDK Cryptodev API planned to be upstreamed in DPDK 20.11. Signed-off-by: Fan Zhang <roy.fan.zhang@intel.com> Signed-off-by: Piotr Bronowski <piotrX.bronowski@intel.com> Change-Id: I8dd1a8ac643f1e952deb787e466b76ea7aa5f420
This commit is contained in:
1606
build/external/patches/dpdk_20.08/0001-cryptodev-add-symmetric-crypto-data-path-APIs.patch
vendored
Normal file
1606
build/external/patches/dpdk_20.08/0001-cryptodev-add-symmetric-crypto-data-path-APIs.patch
vendored
Normal file
File diff suppressed because it is too large
Load Diff
@ -113,6 +113,8 @@ endif()
|
||||
##############################################################################
|
||||
# DPDK plugin
|
||||
##############################################################################
|
||||
|
||||
if (${DPDK_VERSION} VERSION_LESS "20.8.0")
|
||||
add_vpp_plugin(dpdk
|
||||
SOURCES
|
||||
buffer.c
|
||||
@ -154,3 +156,46 @@ add_vpp_plugin(dpdk
|
||||
vpp-plugin-dpdk
|
||||
)
|
||||
|
||||
else ()
|
||||
add_vpp_plugin(dpdk
|
||||
SOURCES
|
||||
buffer.c
|
||||
main.c
|
||||
thread.c
|
||||
device/cli.c
|
||||
device/common.c
|
||||
device/device.c
|
||||
device/flow.c
|
||||
device/format.c
|
||||
device/init.c
|
||||
device/node.c
|
||||
ipsec/cli.c
|
||||
ipsec/crypto_node.c
|
||||
ipsec/esp_decrypt.c
|
||||
ipsec/esp_encrypt.c
|
||||
ipsec/ipsec.c
|
||||
cryptodev/cryptodev_dp_api.c
|
||||
|
||||
MULTIARCH_SOURCES
|
||||
buffer.c
|
||||
device/device.c
|
||||
device/node.c
|
||||
ipsec/crypto_node.c
|
||||
ipsec/esp_decrypt.c
|
||||
ipsec/esp_encrypt.c
|
||||
|
||||
INSTALL_HEADERS
|
||||
device/dpdk.h
|
||||
ipsec/ipsec.h
|
||||
|
||||
LINK_FLAGS
|
||||
"${DPDK_LINK_FLAGS}"
|
||||
|
||||
LINK_LIBRARIES
|
||||
${DPDK_LINK_LIBRARIES}
|
||||
|
||||
COMPONENT
|
||||
vpp-plugin-dpdk
|
||||
)
|
||||
|
||||
endif ()
|
1536
src/plugins/dpdk/cryptodev/cryptodev_dp_api.c
Normal file
1536
src/plugins/dpdk/cryptodev/cryptodev_dp_api.c
Normal file
File diff suppressed because it is too large
Load Diff
@ -710,7 +710,7 @@ vnet_crypto_init (vlib_main_t * vm)
|
||||
cm->async_alg_index_by_name = hash_create_string (0, sizeof (uword));
|
||||
vec_validate_aligned (cm->threads, tm->n_vlib_mains, CLIB_CACHE_LINE_BYTES);
|
||||
vec_foreach (ct, cm->threads)
|
||||
pool_alloc_aligned (ct->frame_pool, 256, CLIB_CACHE_LINE_BYTES);
|
||||
pool_alloc_aligned (ct->frame_pool, 1024, CLIB_CACHE_LINE_BYTES);
|
||||
vec_validate (cm->algs, VNET_CRYPTO_N_ALGS);
|
||||
vec_validate (cm->async_algs, VNET_CRYPTO_N_ASYNC_ALGS);
|
||||
clib_bitmap_validate (cm->async_active_ids, VNET_CRYPTO_ASYNC_OP_N_IDS - 1);
|
||||
|
Reference in New Issue
Block a user