From 2f10ea11db17968a91481bcb1384b55632f901ef Mon Sep 17 00:00:00 2001 From: Daniel Verkamp Date: Wed, 8 Mar 2017 11:08:03 -0700 Subject: [PATCH] env_dpdk: only set proc-type and base-virtaddr for multiprocess These options are only necessary for applications that intend to be used in a multi-process configuration. Change-Id: I3e1fa0682611d92267d0ad1b3f2016dc926b96b6 Signed-off-by: Daniel Verkamp --- lib/env_dpdk/init.c | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/lib/env_dpdk/init.c b/lib/env_dpdk/init.c index 79f86904f..a2259036e 100644 --- a/lib/env_dpdk/init.c +++ b/lib/env_dpdk/init.c @@ -253,18 +253,18 @@ spdk_build_eal_cmdline(const struct spdk_env_opts *opts, char **out[]) if (args == NULL) { return -1; } - } - /* set the base virtual address */ - args = spdk_push_arg(args, &argcount, _sprintf_alloc("--base-virtaddr=0x1000000000")); - if (args == NULL) { - return -1; - } + /* set the base virtual address */ + args = spdk_push_arg(args, &argcount, _sprintf_alloc("--base-virtaddr=0x1000000000")); + if (args == NULL) { + return -1; + } - /* set the process type */ - args = spdk_push_arg(args, &argcount, _sprintf_alloc("--proc-type=auto")); - if (args == NULL) { - return -1; + /* set the process type */ + args = spdk_push_arg(args, &argcount, _sprintf_alloc("--proc-type=auto")); + if (args == NULL) { + return -1; + } } #endif