Commit b36f34bd authored by Dariusz Stojaczyk's avatar Dariusz Stojaczyk Committed by Jim Harris
Browse files

env_dpdk: force legacy-mem mode for DPDK 18.05



SPDK holds off with using the new dynamic memory allocation
mode just yet.

Change-Id: I75541135a020c691d981d2b16e7c9509b1cc57b1
Signed-off-by: default avatarDariusz Stojaczyk <dariuszx.stojaczyk@intel.com>
Reviewed-on: https://review.gerrithub.io/419567


Chandler-Test-Pool: SPDK Automated Test System <sys_sgsw@intel.com>
Tested-by: default avatarSPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: default avatarBen Walker <benjamin.walker@intel.com>
Reviewed-by: default avatarJim Harris <james.r.harris@intel.com>
parent d891b398
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -258,6 +258,14 @@ spdk_build_eal_cmdline(const struct spdk_env_opts *opts)
		}
	}

#if RTE_VERSION >= RTE_VERSION_NUM(18, 05, 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) {
		return -1;
	}
#endif

	if (opts->num_pci_addr) {
		size_t i;
		char bdf[32];