Re: [PATCH v3 5/9] eal: define the EAL parameters in argparse format

2025-07-21 Thread Bruce Richardson
On Mon, Jul 21, 2025 at 10:05:23AM +0100, Bruce Richardson wrote: > On Mon, Jul 21, 2025 at 10:41:33AM +0200, David Marchand wrote: > > On Fri, Jul 18, 2025 at 4:34 PM Bruce Richardson > > wrote: > > > +struct eal_init_args { > > > + /* define a struct member for each EAL option, member name

Re: [PATCH v3 5/9] eal: define the EAL parameters in argparse format

2025-07-21 Thread Bruce Richardson
On Mon, Jul 21, 2025 at 10:41:33AM +0200, David Marchand wrote: > On Fri, Jul 18, 2025 at 4:34 PM Bruce Richardson > wrote: > > +struct eal_init_args { > > + /* define a struct member for each EAL option, member name is the > > same as option name. > > +* Parameters that take an arg

Re: [PATCH v3 5/9] eal: define the EAL parameters in argparse format

2025-07-21 Thread David Marchand
On Fri, Jul 18, 2025 at 4:34 PM Bruce Richardson wrote: > +struct eal_init_args { > + /* define a struct member for each EAL option, member name is the > same as option name. > +* Parameters that take an argument e.g. -l, are char *, > +* parameters that take no options e.g.

[PATCH v3 5/9] eal: define the EAL parameters in argparse format

2025-07-18 Thread Bruce Richardson
This table should allow us to parse all the eal args into a single structure for later parsing in a fixed-order field basis. For those elements that take multiple values, define a TAILQ and a callback to process those elements. Signed-off-by: Bruce Richardson --- lib/eal/common/eal_common_option