From e9bfc11043c54b0b1ee36aae9bdfbe9702c54271 Mon Sep 17 00:00:00 2001 From: Changpeng Liu Date: Wed, 3 May 2017 15:09:10 +0800 Subject: [PATCH] env/dpdk: additional library required for DPDK 17.05 ring based mempool Change-Id: I2ef4a330a5628c84657f516cb2e4fad609b6c6d8 Signed-off-by: Changpeng Liu --- lib/env_dpdk/env.mk | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/env_dpdk/env.mk b/lib/env_dpdk/env.mk index 8efffa9e9..3bfc925d0 100644 --- a/lib/env_dpdk/env.mk +++ b/lib/env_dpdk/env.mk @@ -63,6 +63,12 @@ endif DPDK_LIB_LIST = rte_eal rte_mempool rte_ring +# librte_mempool_ring was new added from DPDK 17.05. Link this library used for +# ring based mempool management API. +ifneq (, $(wildcard $(DPDK_ABS_DIR)/lib/librte_mempool_ring.*)) +DPDK_LIB_LIST += rte_mempool_ring +endif + # librte_malloc was removed after DPDK 2.1. Link this library conditionally based on its # existence to maintain backward compatibility. ifneq ($(wildcard $(DPDK_ABS_DIR)/lib/librte_malloc.*),)