From f48130c97efea62ee50e73376f562b16f551b07c Mon Sep 17 00:00:00 2001 From: Yuriy Umanets Date: Wed, 19 Jan 2022 15:45:46 +0200 Subject: [PATCH] lib/env_dpdk: Fixed using rte_compress_isal When using --with-dpdk=dpdk/install option, we need to check if the librte_compress_isal was built in DPDK before adding it to the list of libs. rte_compress_isal is not built by DPDK if libisal is not installed in the system. Signed-off-by: Yuriy Umanets Change-Id: Iceb4ebb8cee81aa4254e0a878653c8a8dd50cac6 Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/11618 Community-CI: Broadcom CI Community-CI: Mellanox Build Bot Tested-by: SPDK CI Jenkins Reviewed-by: Ben Walker Reviewed-by: Shuhei Matsumoto Reviewed-by: Aleksey Marchuk --- lib/env_dpdk/env.mk | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/env_dpdk/env.mk b/lib/env_dpdk/env.mk index 4620f58f0..29c42db19 100644 --- a/lib/env_dpdk/env.mk +++ b/lib/env_dpdk/env.mk @@ -86,7 +86,9 @@ endif ifeq ($(CONFIG_REDUCE),y) DPDK_FRAMEWORK=y +ifneq (, $(wildcard $(DPDK_LIB_DIR)/librte_compress_isal.*)) DPDK_LIB_LIST += rte_compress_isal +endif ifeq ($(CONFIG_REDUCE_MLX5),y) DPDK_LIB_LIST += rte_common_mlx5 rte_compress_mlx5 # Introduced in DPDK 21.08