diff options
author | Fan Zhang <roy.fan.zhang@intel.com> | 2021-03-30 17:31:38 +0100 |
---|---|---|
committer | Neale Ranns <neale@graphiant.com> | 2021-04-09 13:40:44 +0000 |
commit | e4db945e1cd960f94f3e3f3d1049fd98cfadbeb1 (patch) | |
tree | ca92d2b9e15bf4e18c92fcafbb80ed6f9947bcb1 /src/plugins/dpdk/CMakeLists.txt | |
parent | e39376e4d5aa66a5f8973f4f5470c736afeab4ed (diff) |
dpdk: selection of cryptodev engine data-path
Type: improvement
This patch combined cryptodev op and cryptodev raw API data
paths into one and makes the engine run-timely select which
data path is used: if all cryptodev devices support
RTE_CRYPTODEV_FF_SYM_RAW_DP feature flag, the raw data path
API is used, otherwise the traditional data path is used.
Signed-off-by: Fan Zhang <roy.fan.zhang@intel.com>
Change-Id: Ibbd7c4405288bd9a48a34878954fd3040df7b4ad
Diffstat (limited to 'src/plugins/dpdk/CMakeLists.txt')
-rw-r--r-- | src/plugins/dpdk/CMakeLists.txt | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/plugins/dpdk/CMakeLists.txt b/src/plugins/dpdk/CMakeLists.txt index b9633814867..9655daf8f8d 100644 --- a/src/plugins/dpdk/CMakeLists.txt +++ b/src/plugins/dpdk/CMakeLists.txt @@ -118,9 +118,7 @@ endif() ############################################################################## if (${DPDK_VERSION} VERSION_GREATER_EQUAL "20.8.0") - set(DPDK_CRYPTODEV_SOURCE cryptodev_dp_api) -else () - set(DPDK_CRYPTODEV_SOURCE cryptodev) + set(DPDK_CRYPTODEV_RAW_SOURCE cryptodev/cryptodev_raw_data_path.c) endif () add_vpp_plugin(dpdk @@ -135,7 +133,9 @@ add_vpp_plugin(dpdk device/format.c device/init.c device/node.c - cryptodev/${DPDK_CRYPTODEV_SOURCE}.c + cryptodev/cryptodev_op_data_path.c + cryptodev/cryptodev.c + ${DPDK_CRYPTODEV_RAW_SOURCE} MULTIARCH_SOURCES buffer.c |