aboutsummaryrefslogtreecommitdiff
path: root/platform/linux-dpdk
diff options
context:
space:
mode:
authorZoltan Kiss <zoltan.kiss@linaro.org>2016-01-14 17:32:04 +0000
committerZoltan Kiss <zoltan.kiss@linaro.org>2016-01-14 17:32:04 +0000
commitd1e6e2c9fde01a0be11712656c44fe095c02cb75 (patch)
treec7533209c033f8136ee88bfb9335c82465dc8354 /platform/linux-dpdk
parent4c8fb99fc92b9b766751278c5626bd9f072b9656 (diff)
linux-dpdk: init: don't save optind
DPDK now takes care of this global variable, no need to save and reset here as well. Signed-off-by: Zoltan Kiss <zoltan.kiss@linaro.org>
Diffstat (limited to 'platform/linux-dpdk')
-rw-r--r--platform/linux-dpdk/odp_init.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/platform/linux-dpdk/odp_init.c b/platform/linux-dpdk/odp_init.c
index 2a79e2f51..3f1328dfa 100644
--- a/platform/linux-dpdk/odp_init.c
+++ b/platform/linux-dpdk/odp_init.c
@@ -138,7 +138,7 @@ static void print_dpdk_env_help(void)
char prgname[] = "odpdpdk";
char help_str[] = "--help";
char *dpdk_argv[] = {prgname, help_str};
- int save_optind, dpdk_argc = 2;
+ int dpdk_argc = 2;
ODP_ERR("Neither (char *)platform_params were provided to "
"odp_init_global(),\n");
@@ -147,10 +147,7 @@ static void print_dpdk_env_help(void)
ODP_ERR("A string of DPDK command line arguments should be provided");
ODP_ERR("Example: export ODP_PLATFORM_PARAMS=\"-n 4 --no-huge\"\n");
ODP_ERR("Note: -c argument substitutes automatically from odp coremask\n");
- save_optind = optind;
- optind = 1;
rte_eal_init(dpdk_argc, dpdk_argv);
- optind = save_optind;
}