env_dpdk: fix compatibility with DPDK 17.11

Support for these options was not introduced until DPDK commit
7f0bb634a1406b132ff15c9cd56a0a9f33e5f11d

Signed-off-by: Benjamin Saunders <bsaunders@google.com>
Change-Id: Id6db73dd48ac01aa1b05eca4c920c5753e8cc6f0
Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/467703
Reviewed-by: Jim Harris <james.r.harris@intel.com>
Reviewed-by: Ben Walker <benjamin.walker@intel.com>
Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com>
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
This commit is contained in:
Benjamin Saunders 2019-09-06 11:23:53 -07:00 committed by Ben Walker
parent 59e34aa865
commit 173892cbf8

View File

@ -298,6 +298,8 @@ spdk_build_eal_cmdline(const struct spdk_env_opts *opts)
}
}
/* The following log-level options are not understood by older DPDKs */
#if RTE_VERSION >= RTE_VERSION_NUM(18, 05, 0, 0)
/* Lower default EAL loglevel to RTE_LOG_NOTICE - normal, but significant messages.
* This can be overridden by specifying the same option in opts->env_context
*/
@ -323,6 +325,7 @@ spdk_build_eal_cmdline(const struct spdk_env_opts *opts)
if (args == NULL) {
return -1;
}
#endif
if (opts->env_context) {
args = spdk_push_arg(args, &argcount, strdup(opts->env_context));