app/dumpcap: allow help/version without primary process
Checks
Commit Message
Currently dumpcap tries to initialize dpdk before parsing command line
arguments, this makes it impossible to check version or help without
having the primary process running already.
Signed-off-by: Ben Magistro <koncept1@gmail.com>
---
app/dumpcap/main.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Comments
25/01/2022 04:25, Ben Magistro:
> Currently dumpcap tries to initialize dpdk before parsing command line
> arguments, this makes it impossible to check version or help without
> having the primary process running already.
>
> Signed-off-by: Ben Magistro <koncept1@gmail.com>
> ---
> --- a/app/dumpcap/main.c
> +++ b/app/dumpcap/main.c
> @@ -781,8 +781,8 @@ int main(int argc, char **argv)
>
> progname = argv[0];
>
> - dpdk_init();
> parse_opts(argc, argv);
> + dpdk_init();
Stephen, Reshma, any comment?
22/02/2022 11:03, Thomas Monjalon:
> 25/01/2022 04:25, Ben Magistro:
> > Currently dumpcap tries to initialize dpdk before parsing command line
> > arguments, this makes it impossible to check version or help without
> > having the primary process running already.
> >
> > Signed-off-by: Ben Magistro <koncept1@gmail.com>
> > ---
> > --- a/app/dumpcap/main.c
> > +++ b/app/dumpcap/main.c
> > @@ -781,8 +781,8 @@ int main(int argc, char **argv)
> >
> > progname = argv[0];
> >
> > - dpdk_init();
> > parse_opts(argc, argv);
> > + dpdk_init();
>
> Stephen, Reshma, any comment?
Applied, thanks.
@@ -781,8 +781,8 @@ int main(int argc, char **argv)
progname = argv[0];
- dpdk_init();
parse_opts(argc, argv);
+ dpdk_init();
if (filter_str)
compile_filter();