From 8a2fc789f24d7495ff47cd7bbb8718a29b5122af Mon Sep 17 00:00:00 2001 From: Yuriy Umanets Date: Mon, 4 Apr 2022 12:37:47 +0300 Subject: [PATCH] configure: Enable MLX5 AES_XTS on DPDK >= 21.11.0 Tested MLX5 AES_XTS on DPDK 21.11.0, it works fine and this version of DPDK can be used as the minimal required version for MLX5 AES_XTS. Signed-off-by: Yuriy Umanets Change-Id: Ib7fd57695c51f3e10f5ec443ade06091e741414a Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/12147 Community-CI: Broadcom CI Community-CI: Mellanox Build Bot Reviewed-by: Aleksey Marchuk Reviewed-by: Ben Walker Reviewed-by: Shuhei Matsumoto Tested-by: SPDK CI Jenkins --- autobuild.sh | 4 ++-- configure | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/autobuild.sh b/autobuild.sh index 4b8a55370..664c771de 100755 --- a/autobuild.sh +++ b/autobuild.sh @@ -142,8 +142,8 @@ function build_native_dpdk() { DPDK_DRIVERS+=("crypto/qat") DPDK_DRIVERS+=("compress/qat") DPDK_DRIVERS+=("common/qat") - # 22.03.0 is version of DPDK with stable support for mlx5 crypto. - if ge "$dpdk_ver" 22.03.0; then + # 21.11.0 is version of DPDK with stable support for mlx5 crypto. + if ge "$dpdk_ver" 21.11.0; then # SPDK enables CRYPTO_MLX in case supported version of DPDK is detected # so make sure proper libs are built. DPDK_DRIVERS+=("bus/auxiliary") diff --git a/configure b/configure index 8974820dc..0ca5c9c4c 100755 --- a/configure +++ b/configure @@ -957,8 +957,8 @@ if [[ "${CONFIG[CRYPTO]}" = "y" ]]; then if [[ $dpdk_ver = "none" ]]; then echo "Cannot get DPDK version, so disabling DPDK mlx5_pci crypto PMD" CONFIG[CRYPTO_MLX5]="n" - elif [[ -n $dpdk_ver ]] && lt "$dpdk_ver" 22.03.0; then - # mlx5_pci for crypto is supported by DPDK >- 22.03.0 + elif [[ -n $dpdk_ver ]] && lt "$dpdk_ver" 21.11.0; then + # mlx5_pci for crypto is supported by DPDK >- 21.11.0 echo "DPDK version ${dpdk_ver} doesn't support mlx5_pci crypto PMD" CONFIG[CRYPTO_MLX5]="n" elif [[ -n ${CONFIG[DPDK_LIB_DIR]} ]] && [ ! -f "${CONFIG[DPDK_LIB_DIR]}"/librte_crypto_mlx5.so ]; then