Commit 173892cb authored by Benjamin Saunders's avatar Benjamin Saunders Committed by Ben Walker
Browse files

env_dpdk: fix compatibility with DPDK 17.11



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

Signed-off-by: default avatarBenjamin Saunders <bsaunders@google.com>
Change-Id: Id6db73dd48ac01aa1b05eca4c920c5753e8cc6f0
Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/467703


Reviewed-by: default avatarJim Harris <james.r.harris@intel.com>
Reviewed-by: default avatarBen Walker <benjamin.walker@intel.com>
Reviewed-by: default avatarShuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com>
Tested-by: default avatarSPDK CI Jenkins <sys_sgci@intel.com>
parent 59e34aa8
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -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));