From ce643e0efe00ac41c533d5748e1b971b67e99461 Mon Sep 17 00:00:00 2001 From: Dariusz Stojaczyk Date: Tue, 14 Aug 2018 10:41:02 +0200 Subject: [PATCH] env/dpdk: enable dynamic memory allocation for DPDK >= 18.08 DPDK 18.08 includes the fixes we proposed and we're now ready to make the switch. Change-Id: Ie5abf25480d2449cb2c8e23de10c8090fc7b14fb Signed-off-by: Dariusz Stojaczyk Reviewed-on: https://review.gerrithub.io/422240 Tested-by: SPDK CI Jenkins Chandler-Test-Pool: SPDK Automated Test System Reviewed-by: Jim Harris Reviewed-by: Ben Walker --- lib/env_dpdk/init.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/env_dpdk/init.c b/lib/env_dpdk/init.c index c6a2a43530..7b2bef00c6 100644 --- a/lib/env_dpdk/init.c +++ b/lib/env_dpdk/init.c @@ -286,7 +286,7 @@ spdk_build_eal_cmdline(const struct spdk_env_opts *opts) } } -#if RTE_VERSION >= RTE_VERSION_NUM(18, 05, 0, 0) +#if RTE_VERSION >= RTE_VERSION_NUM(18, 05, 0, 0) && RTE_VERSION < RTE_VERSION_NUM(18, 8, 0, 0) /* SPDK holds off with using the new memory management model just yet */ args = spdk_push_arg(args, &argcount, _sprintf_alloc("--legacy-mem")); if (args == NULL) {