dpdk: selection of cryptodev engine data-path 03/31703/7
authorFan Zhang <roy.fan.zhang@intel.com>
Tue, 30 Mar 2021 16:31:38 +0000 (17:31 +0100)
committerNeale Ranns <neale@graphiant.com>
Fri, 9 Apr 2021 13:40:44 +0000 (13:40 +0000)
commite4db945e1cd960f94f3e3f3d1049fd98cfadbeb1
treeca92d2b9e15bf4e18c92fcafbb80ed6f9947bcb1
parente39376e4d5aa66a5f8973f4f5470c736afeab4ed
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
src/plugins/dpdk/CMakeLists.txt
src/plugins/dpdk/cryptodev/cryptodev.c
src/plugins/dpdk/cryptodev/cryptodev.h
src/plugins/dpdk/cryptodev/cryptodev_dp_api.c [deleted file]
src/plugins/dpdk/cryptodev/cryptodev_op_data_path.c [new file with mode: 0644]
src/plugins/dpdk/cryptodev/cryptodev_raw_data_path.c [new file with mode: 0644]
src/vnet/crypto/crypto.c
src/vnet/crypto/crypto.h