[PATCH v3] app/testpmd: add help messages for multi-process
Ajit Khaparde
ajit.khaparde at broadcom.com
Thu Mar 3 15:59:34 CET 2022
On Thu, Mar 3, 2022 at 4:09 AM Ferruh Yigit <ferruh.yigit at intel.com> wrote:
>
> On 3/1/2022 9:16 AM, Min Hu (Connor) wrote:
> > From: Huisong Li <lihuisong at huawei.com>
> >
> > This patch adds help messages for multi-process.
> >
> > Fixes: a550baf24af9 ("app/testpmd: support multi-process")
> > Cc: stable at dpdk.org
> >
> > Signed-off-by: Huisong Li <lihuisong at huawei.com>
> > ---
> > v3,v2:
> > * adjust the position of parameters.
> > ---
> > app/test-pmd/parameters.c | 2 ++
> > 1 file changed, 2 insertions(+)
> >
> > diff --git a/app/test-pmd/parameters.c b/app/test-pmd/parameters.c
> > index daf6a31b2b..44698046b4 100644
> > --- a/app/test-pmd/parameters.c
> > +++ b/app/test-pmd/parameters.c
> > @@ -61,6 +61,8 @@ usage(char* progname)
> > "extended statistics to show. Used with --stats-period "
> > "specified or interactive commands that show Rx/Tx statistics "
> > "(i.e. 'show port stats').\n");
> > + printf(" --num-procs: the number of processes which will be used\n");
> > + printf(" --proc-id : the id of the current process (id < num-procs)\n");
>
> Hi Connor,
>
> For people new to dpdk/test-pmd, it may be hard to figure out these two
> parameter is related to multi-process support. What do you think updating
> the description to clarify these are for multi-process support?
+1 not just for this but in general.
Group them and add a comment.
Or add that in the help text.
>
> > printf(" --nb-cores=N: set the number of forwarding cores "
> > "(1 <= N <= %d).\n", nb_lcores);
> > printf(" --nb-ports=N: set the number of forwarding ports "
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 4218 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://mails.dpdk.org/archives/dev/attachments/20220303/f1959730/attachment.bin>
More information about the dev
mailing list