* [PATCH] eal_common_options.c: set create_uio_dev option to no argument
@ 2015-03-23 8:11 gaohaifeng
[not found] ` <1427098299-20876-1-git-send-email-gaohaifeng.gao-hv44wF8Li93QT0dZR+AlfA@public.gmane.org>
0 siblings, 1 reply; 3+ messages in thread
From: gaohaifeng @ 2015-03-23 8:11 UTC (permalink / raw)
To: jerry.lilijun-hv44wF8Li93QT0dZR+AlfA,
olivier.matz-pdR9zngts4EAvxtiuMwx3w,
thomas.monjalon-pdR9zngts4EAvxtiuMwx3w, dev-VfR2kkLFssw
From: Haifeng Gao <gaohaifeng.gao-hv44wF8Li93QT0dZR+AlfA@public.gmane.org>
eal options OPT_CREATE_UIO_DEV does not need argument so set it to zero.
It needs to reset create_uio_dev explicitly.
Signed-off-by: Haifeng Gao <gaohaifeng.gao-hv44wF8Li93QT0dZR+AlfA@public.gmane.org>
---
lib/librte_eal/common/eal_common_options.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/lib/librte_eal/common/eal_common_options.c b/lib/librte_eal/common/eal_common_options.c
index 4319549..8fcb1ab 100644
--- a/lib/librte_eal/common/eal_common_options.c
+++ b/lib/librte_eal/common/eal_common_options.c
@@ -70,7 +70,7 @@ eal_short_options[] =
const struct option
eal_long_options[] = {
{OPT_BASE_VIRTADDR, 1, NULL, OPT_BASE_VIRTADDR_NUM },
- {OPT_CREATE_UIO_DEV, 1, NULL, OPT_CREATE_UIO_DEV_NUM },
+ {OPT_CREATE_UIO_DEV, 0, NULL, OPT_CREATE_UIO_DEV_NUM },
{OPT_FILE_PREFIX, 1, NULL, OPT_FILE_PREFIX_NUM },
{OPT_HELP, 0, NULL, OPT_HELP_NUM },
{OPT_HUGE_DIR, 1, NULL, OPT_HUGE_DIR_NUM },
@@ -131,6 +131,7 @@ eal_reset_internal_config(struct internal_config *internal_cfg)
internal_cfg->no_hpet = 1;
#endif
internal_cfg->vmware_tsc_map = 0;
+ internal_cfg->create_uio_dev = 0;
}
/*
--
1.7.12.4
^ permalink raw reply related [flat|nested] 3+ messages in thread
end of thread, other threads:[~2015-03-23 16:37 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-03-23 8:11 [PATCH] eal_common_options.c: set create_uio_dev option to no argument gaohaifeng
[not found] ` <1427098299-20876-1-git-send-email-gaohaifeng.gao-hv44wF8Li93QT0dZR+AlfA@public.gmane.org>
2015-03-23 16:13 ` Olivier MATZ
[not found] ` <55103BC4.5030600-pdR9zngts4EAvxtiuMwx3w@public.gmane.org>
2015-03-23 16:37 ` Thomas Monjalon
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).