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: Dariusz 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: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Ben Walker <benjamin.walker@intel.com> Reviewed-by: Jim Harris <james.r.harris@intel.com>
This commit is contained in:
parent
d891b398a3
commit
b36f34bd4c
@ -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) {
|
if (opts->num_pci_addr) {
|
||||||
size_t i;
|
size_t i;
|
||||||
char bdf[32];
|
char bdf[32];
|
||||||
|
Loading…
Reference in New Issue
Block a user