env_dpdk: link dmadev if CONFIG_VHOST=y
rte_dmadev was introduced in DPDK 21.11, and rte_vhost
is now dependent on it. So link rte_dmadev if we find
it and if CONFIG_VHOST is enabled.
Fixes issue #2374.
Signed-off-by: Jim Harris <james.r.harris@intel.com>
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/11594 (master)
(cherry picked from commit 662678dfbe
)
Change-Id: Iccbf7cb897f51cbc9d545274d4d00a442b2fd353
Signed-off-by: Karol Latecki <karol.latecki@intel.com>
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/11637
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: Konrad Sztyber <konrad.sztyber@intel.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
This commit is contained in:
parent
89f2df2030
commit
bbb4826343
@ -105,6 +105,11 @@ LINK_HASH=n
|
||||
|
||||
ifeq ($(CONFIG_VHOST),y)
|
||||
DPDK_LIB_LIST += rte_vhost
|
||||
ifneq (, $(wildcard $(DPDK_LIB_DIR)/librte_dmadev.*))
|
||||
# Introduced in DPDK 21.11, and rte_vhost became dependent on
|
||||
# it shortly thereafter
|
||||
DPDK_LIB_LIST += rte_dmadev
|
||||
endif
|
||||
LINK_HASH=y
|
||||
ifneq ($(DPDK_FRAMEWORK),y)
|
||||
DPDK_LIB_LIST += rte_cryptodev
|
||||
@ -122,6 +127,7 @@ DPDK_LIB_LIST += rte_rcu
|
||||
endif
|
||||
endif
|
||||
|
||||
|
||||
DPDK_LIB_LIST_SORTED = $(sort $(DPDK_LIB_LIST))
|
||||
|
||||
DPDK_SHARED_LIB = $(DPDK_LIB_LIST_SORTED:%=$(DPDK_LIB_DIR)/lib%.so)
|
||||
|
Loading…
Reference in New Issue
Block a user