* [PATCH v3] app/testpmd: add help messages for multi-process
[not found] <20220228032617.46618-1-humin29@huawei.com>
@ 2022-03-01 9:16 ` Min Hu (Connor)
2022-03-03 12:09 ` Ferruh Yigit
[not found] ` <20220304012257.39247-1-humin29@huawei.com>
` (4 subsequent siblings)
5 siblings, 1 reply; 23+ messages in thread
From: Min Hu (Connor) @ 2022-03-01 9:16 UTC (permalink / raw)
To: dev
Cc: Huisong Li, stable, Xiaoyun Li, Aman Singh, Yuying Zhang,
Lijun Ou, Ajit Khaparde, Andrew Rybchenko
From: Huisong Li <lihuisong@huawei.com>
This patch adds help messages for multi-process.
Fixes: a550baf24af9 ("app/testpmd: support multi-process")
Cc: stable@dpdk.org
Signed-off-by: Huisong Li <lihuisong@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");
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 "
--
2.33.0
^ permalink raw reply [flat|nested] 23+ messages in thread
* Re: [PATCH v3] app/testpmd: add help messages for multi-process
2022-03-01 9:16 ` [PATCH v3] app/testpmd: add help messages for multi-process Min Hu (Connor)
@ 2022-03-03 12:09 ` Ferruh Yigit
2022-03-03 14:59 ` Ajit Khaparde
2022-03-04 1:28 ` Min Hu (Connor)
0 siblings, 2 replies; 23+ messages in thread
From: Ferruh Yigit @ 2022-03-03 12:09 UTC (permalink / raw)
To: Min Hu (Connor), dev
Cc: Huisong Li, stable, Xiaoyun Li, Aman Singh, Yuying Zhang,
Lijun Ou, Ajit Khaparde, Andrew Rybchenko
On 3/1/2022 9:16 AM, Min Hu (Connor) wrote:
> From: Huisong Li <lihuisong@huawei.com>
>
> This patch adds help messages for multi-process.
>
> Fixes: a550baf24af9 ("app/testpmd: support multi-process")
> Cc: stable@dpdk.org
>
> Signed-off-by: Huisong Li <lihuisong@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?
> 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 "
^ permalink raw reply [flat|nested] 23+ messages in thread
* Re: [PATCH v3] app/testpmd: add help messages for multi-process
2022-03-03 12:09 ` Ferruh Yigit
@ 2022-03-03 14:59 ` Ajit Khaparde
2022-03-04 1:28 ` Min Hu (Connor)
1 sibling, 0 replies; 23+ messages in thread
From: Ajit Khaparde @ 2022-03-03 14:59 UTC (permalink / raw)
To: Ferruh Yigit
Cc: Min Hu (Connor),
dpdk-dev, Huisong Li, dpdk stable, Xiaoyun Li, Aman Singh,
Yuying Zhang, Lijun Ou, Andrew Rybchenko
[-- Attachment #1: Type: text/plain, Size: 1646 bytes --]
On Thu, Mar 3, 2022 at 4:09 AM Ferruh Yigit <ferruh.yigit@intel.com> wrote:
>
> On 3/1/2022 9:16 AM, Min Hu (Connor) wrote:
> > From: Huisong Li <lihuisong@huawei.com>
> >
> > This patch adds help messages for multi-process.
> >
> > Fixes: a550baf24af9 ("app/testpmd: support multi-process")
> > Cc: stable@dpdk.org
> >
> > Signed-off-by: Huisong Li <lihuisong@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 "
>
[-- Attachment #2: S/MIME Cryptographic Signature --]
[-- Type: application/pkcs7-signature, Size: 4218 bytes --]
^ permalink raw reply [flat|nested] 23+ messages in thread
* Re: [PATCH v3] app/testpmd: add help messages for multi-process
2022-03-03 12:09 ` Ferruh Yigit
2022-03-03 14:59 ` Ajit Khaparde
@ 2022-03-04 1:28 ` Min Hu (Connor)
1 sibling, 0 replies; 23+ messages in thread
From: Min Hu (Connor) @ 2022-03-04 1:28 UTC (permalink / raw)
To: Ferruh Yigit, dev
Cc: Huisong Li, stable, Xiaoyun Li, Aman Singh, Yuying Zhang,
Lijun Ou, Ajit Khaparde, Andrew Rybchenko
Hi, Ferruh,
V4 has been sent to fix it, thanks.
在 2022/3/3 20:09, Ferruh Yigit 写道:
> On 3/1/2022 9:16 AM, Min Hu (Connor) wrote:
>> From: Huisong Li <lihuisong@huawei.com>
>>
>> This patch adds help messages for multi-process.
>>
>> Fixes: a550baf24af9 ("app/testpmd: support multi-process")
>> Cc: stable@dpdk.org
>>
>> Signed-off-by: Huisong Li <lihuisong@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?
>
>> 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 "
>
> .
^ permalink raw reply [flat|nested] 23+ messages in thread
[parent not found: <20220304012257.39247-1-humin29@huawei.com>]
* [PATCH] app/testpmd: add help messages for multi-process
[not found] ` <20220304012257.39247-1-humin29@huawei.com>
@ 2022-03-04 1:22 ` Min Hu (Connor)
2022-03-04 1:25 ` Min Hu (Connor)
0 siblings, 1 reply; 23+ messages in thread
From: Min Hu (Connor) @ 2022-03-04 1:22 UTC (permalink / raw)
To: dev
Cc: Huisong Li, stable, Xiaoyun Li, Aman Singh, Yuying Zhang,
Lijun Ou, Min Hu (Connor),
Ajit Khaparde
From: Huisong Li <lihuisong@huawei.com>
This patch adds help messages for multi-process.
Fixes: a550baf24af9 ("app/testpmd: support multi-process")
Cc: stable@dpdk.org
Signed-off-by: Huisong Li <lihuisong@huawei.com>
---
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 5251722d0f..6cc7afe15a 100644
--- a/app/test-pmd/parameters.c
+++ b/app/test-pmd/parameters.c
@@ -211,6 +211,8 @@ usage(char* progname)
printf(" --hairpin-mode=0xXX: bitmask set the hairpin port mode.\n"
" 0x10 - explicit Tx rule, 0x02 - hairpin ports paired\n"
" 0x01 - hairpin ports loop, 0x00 - hairpin port self\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");
}
#ifdef RTE_LIB_CMDLINE
--
2.33.0
^ permalink raw reply [flat|nested] 23+ messages in thread
* Re: [PATCH] app/testpmd: add help messages for multi-process
2022-03-04 1:22 ` [PATCH] " Min Hu (Connor)
@ 2022-03-04 1:25 ` Min Hu (Connor)
0 siblings, 0 replies; 23+ messages in thread
From: Min Hu (Connor) @ 2022-03-04 1:25 UTC (permalink / raw)
To: dev
Cc: Huisong Li, stable, Xiaoyun Li, Aman Singh, Yuying Zhang,
Lijun Ou, Ajit Khaparde
Sorry, this patch should be abandoned.
在 2022/3/4 9:22, Min Hu (Connor) 写道:
> From: Huisong Li <lihuisong@huawei.com>
>
> This patch adds help messages for multi-process.
>
> Fixes: a550baf24af9 ("app/testpmd: support multi-process")
> Cc: stable@dpdk.org
>
> Signed-off-by: Huisong Li <lihuisong@huawei.com>
> ---
> 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 5251722d0f..6cc7afe15a 100644
> --- a/app/test-pmd/parameters.c
> +++ b/app/test-pmd/parameters.c
> @@ -211,6 +211,8 @@ usage(char* progname)
> printf(" --hairpin-mode=0xXX: bitmask set the hairpin port mode.\n"
> " 0x10 - explicit Tx rule, 0x02 - hairpin ports paired\n"
> " 0x01 - hairpin ports loop, 0x00 - hairpin port self\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");
> }
>
> #ifdef RTE_LIB_CMDLINE
>
^ permalink raw reply [flat|nested] 23+ messages in thread
* [PATCH v4] app/testpmd: add help messages for multi-process
[not found] <20220228032617.46618-1-humin29@huawei.com>
2022-03-01 9:16 ` [PATCH v3] app/testpmd: add help messages for multi-process Min Hu (Connor)
[not found] ` <20220304012257.39247-1-humin29@huawei.com>
@ 2022-03-04 1:27 ` Min Hu (Connor)
2022-03-04 2:50 ` Zhang, Yuying
2022-03-04 6:26 ` [PATCH v5] " Min Hu (Connor)
` (2 subsequent siblings)
5 siblings, 1 reply; 23+ messages in thread
From: Min Hu (Connor) @ 2022-03-04 1:27 UTC (permalink / raw)
To: dev
Cc: Huisong Li, stable, Min Hu, Xiaoyun Li, Aman Singh, Yuying Zhang,
Ajit Khaparde, Andrew Rybchenko, Ferruh Yigit
From: Huisong Li <lihuisong@huawei.com>
This patch adds help messages for multi-process.
--num-procs <N>, where N is the total number of symmetric_mp instances
that will be run side-by-side to perform packet processing. This parameter
is used to configure the appropriate number of receive queues on each
network port.
--proc-id <n>, where n is a numeric value in the range 0 <= n < N (number
of processes, specified above). This identifies which symmetric_mp instance
is being run, so that each process can read a unique receive queue on each
network port.
Fixes: a550baf24af9 ("app/testpmd: support multi-process")
Cc: stable@dpdk.org
Signed-off-by: Huisong Li <lihuisong@huawei.com>
Signed-off-by: Min Hu (Connor) <humin29@huawei.com>
---
v4:
* update description for parameters.
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..908e8a15f5 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 total number of symmetric_mp instances that will be run side-by-side\n");
+ printf(" --proc-id : the id of the current process (id < num-procs) to identify which symmetric_mp instance is being run\n");
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 "
--
2.33.0
^ permalink raw reply [flat|nested] 23+ messages in thread
* RE: [PATCH v4] app/testpmd: add help messages for multi-process
2022-03-04 1:27 ` [PATCH v4] " Min Hu (Connor)
@ 2022-03-04 2:50 ` Zhang, Yuying
2022-03-04 6:29 ` Min Hu (Connor)
0 siblings, 1 reply; 23+ messages in thread
From: Zhang, Yuying @ 2022-03-04 2:50 UTC (permalink / raw)
To: Min Hu (Connor), dev
Cc: Huisong Li, stable, Li, Xiaoyun, Singh, Aman Deep, Ajit Khaparde,
Andrew Rybchenko, Yigit, Ferruh
Hi Connor,
> -----Original Message-----
> From: Min Hu (Connor) <humin29@huawei.com>
> Sent: Friday, March 4, 2022 9:28 AM
> To: dev@dpdk.org
> Cc: Huisong Li <lihuisong@huawei.com>; stable@dpdk.org; Min Hu
> <humin29@huawei.com>; Li, Xiaoyun <xiaoyun.li@intel.com>; Singh, Aman
> Deep <aman.deep.singh@intel.com>; Zhang, Yuying <yuying.zhang@intel.com>;
> Ajit Khaparde <ajit.khaparde@broadcom.com>; Andrew Rybchenko
> <andrew.rybchenko@oktetlabs.ru>; Yigit, Ferruh <ferruh.yigit@intel.com>
> Subject: [PATCH v4] app/testpmd: add help messages for multi-process
>
> From: Huisong Li <lihuisong@huawei.com>
>
> This patch adds help messages for multi-process.
> --num-procs <N>, where N is the total number of symmetric_mp instances that
> will be run side-by-side to perform packet processing. This parameter is used to
> configure the appropriate number of receive queues on each network port.
>
> --proc-id <n>, where n is a numeric value in the range 0 <= n < N (number of
> processes, specified above). This identifies which symmetric_mp instance is
> being run, so that each process can read a unique receive queue on each
> network port.
>
> Fixes: a550baf24af9 ("app/testpmd: support multi-process")
> Cc: stable@dpdk.org
>
> Signed-off-by: Huisong Li <lihuisong@huawei.com>
> Signed-off-by: Min Hu (Connor) <humin29@huawei.com>
> ---
> v4:
> * update description for parameters.
> 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..908e8a15f5 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 total number of symmetric_mp instances that
> will be run side-by-side\n");
> + printf(" --proc-id : the id of the current process (id < num-procs)
> +to identify which symmetric_mp instance is being run\n");
Could you delete the space before colon?
> 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 "
> --
> 2.33.0
^ permalink raw reply [flat|nested] 23+ messages in thread
* Re: [PATCH v4] app/testpmd: add help messages for multi-process
2022-03-04 2:50 ` Zhang, Yuying
@ 2022-03-04 6:29 ` Min Hu (Connor)
0 siblings, 0 replies; 23+ messages in thread
From: Min Hu (Connor) @ 2022-03-04 6:29 UTC (permalink / raw)
To: Zhang, Yuying, dev
Cc: Huisong Li, stable, Li, Xiaoyun, Singh, Aman Deep, Ajit Khaparde,
Andrew Rybchenko, Yigit, Ferruh
Hi,
在 2022/3/4 10:50, Zhang, Yuying 写道:
> Hi Connor,
>
>> -----Original Message-----
>> From: Min Hu (Connor) <humin29@huawei.com>
>> Sent: Friday, March 4, 2022 9:28 AM
>> To: dev@dpdk.org
>> Cc: Huisong Li <lihuisong@huawei.com>; stable@dpdk.org; Min Hu
>> <humin29@huawei.com>; Li, Xiaoyun <xiaoyun.li@intel.com>; Singh, Aman
>> Deep <aman.deep.singh@intel.com>; Zhang, Yuying <yuying.zhang@intel.com>;
>> Ajit Khaparde <ajit.khaparde@broadcom.com>; Andrew Rybchenko
>> <andrew.rybchenko@oktetlabs.ru>; Yigit, Ferruh <ferruh.yigit@intel.com>
>> Subject: [PATCH v4] app/testpmd: add help messages for multi-process
>>
>> From: Huisong Li <lihuisong@huawei.com>
>>
>> This patch adds help messages for multi-process.
>> --num-procs <N>, where N is the total number of symmetric_mp instances that
>> will be run side-by-side to perform packet processing. This parameter is used to
>> configure the appropriate number of receive queues on each network port.
>>
>> --proc-id <n>, where n is a numeric value in the range 0 <= n < N (number of
>> processes, specified above). This identifies which symmetric_mp instance is
>> being run, so that each process can read a unique receive queue on each
>> network port.
>>
>> Fixes: a550baf24af9 ("app/testpmd: support multi-process")
>> Cc: stable@dpdk.org
>>
>> Signed-off-by: Huisong Li <lihuisong@huawei.com>
>> Signed-off-by: Min Hu (Connor) <humin29@huawei.com>
>> ---
>> v4:
>> * update description for parameters.
>> 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..908e8a15f5 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 total number of symmetric_mp instances that
>> will be run side-by-side\n");
>> + printf(" --proc-id : the id of the current process (id < num-procs)
>> +to identify which symmetric_mp instance is being run\n");
>
> Could you delete the space before colon?
already delete the space in v5, thanks.
>
>> 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 "
>> --
>> 2.33.0
>
> .
>
^ permalink raw reply [flat|nested] 23+ messages in thread
* [PATCH v5] app/testpmd: add help messages for multi-process
[not found] <20220228032617.46618-1-humin29@huawei.com>
` (2 preceding siblings ...)
2022-03-04 1:27 ` [PATCH v4] " Min Hu (Connor)
@ 2022-03-04 6:26 ` Min Hu (Connor)
2022-03-04 9:11 ` Zhang, Yuying
2022-03-04 14:46 ` Ferruh Yigit
2022-03-07 1:04 ` Min Hu (Connor)
2022-06-09 8:52 ` [PATCH v6] " Dongdong Liu
5 siblings, 2 replies; 23+ messages in thread
From: Min Hu (Connor) @ 2022-03-04 6:26 UTC (permalink / raw)
To: dev
Cc: Huisong Li, stable, Min Hu, Xiaoyun Li, Aman Singh, Yuying Zhang,
Ajit Khaparde, Andrew Rybchenko, Ferruh Yigit
From: Huisong Li <lihuisong@huawei.com>
This patch adds help messages for multi-process.
--num-procs <N>, where N is the total number of symmetric_mp instances
that will be run side-by-side to perform packet processing. This parameter
is used to configure the appropriate number of receive queues on each
network port.
--proc-id <n>, where n is a numeric value in the range 0 <= n < N (number
of processes, specified above). This identifies which symmetric_mp instance
is being run, so that each process can read a unique receive queue on each
network port.
Fixes: a550baf24af9 ("app/testpmd: support multi-process")
Cc: stable@dpdk.org
Signed-off-by: Huisong Li <lihuisong@huawei.com>
Signed-off-by: Min Hu (Connor) <humin29@huawei.com>
---
v5:
* delete space
v4:
* update description for parameters.
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..6c4253ae61 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 total number of symmetric_mp instances that will be run side-by-side\n");
+ printf(" --proc-id: the id of the current process (id < num-procs) to identify which symmetric_mp instance is being run\n");
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 "
--
2.33.0
^ permalink raw reply [flat|nested] 23+ messages in thread
* RE: [PATCH v5] app/testpmd: add help messages for multi-process
2022-03-04 6:26 ` [PATCH v5] " Min Hu (Connor)
@ 2022-03-04 9:11 ` Zhang, Yuying
2022-03-04 15:35 ` Ferruh Yigit
2022-03-04 14:46 ` Ferruh Yigit
1 sibling, 1 reply; 23+ messages in thread
From: Zhang, Yuying @ 2022-03-04 9:11 UTC (permalink / raw)
To: Min Hu (Connor), dev
Cc: Huisong Li, stable, Li, Xiaoyun, Singh, Aman Deep, Ajit Khaparde,
Andrew Rybchenko, Yigit, Ferruh
Hi Minhu,
> -----Original Message-----
> From: Min Hu (Connor) <humin29@huawei.com>
> Sent: Friday, March 4, 2022 2:27 PM
> To: dev@dpdk.org
> Cc: Huisong Li <lihuisong@huawei.com>; stable@dpdk.org; Min Hu
> <humin29@huawei.com>; Li, Xiaoyun <xiaoyun.li@intel.com>; Singh, Aman
> Deep <aman.deep.singh@intel.com>; Zhang, Yuying
> <yuying.zhang@intel.com>; Ajit Khaparde <ajit.khaparde@broadcom.com>;
> Andrew Rybchenko <andrew.rybchenko@oktetlabs.ru>; Yigit, Ferruh
> <ferruh.yigit@intel.com>
> Subject: [PATCH v5] app/testpmd: add help messages for multi-process
>
> From: Huisong Li <lihuisong@huawei.com>
>
> This patch adds help messages for multi-process.
> --num-procs <N>, where N is the total number of symmetric_mp instances
> that will be run side-by-side to perform packet processing. This parameter is
> used to configure the appropriate number of receive queues on each
> network port.
>
> --proc-id <n>, where n is a numeric value in the range 0 <= n < N (number of
> processes, specified above). This identifies which symmetric_mp instance is
> being run, so that each process can read a unique receive queue on each
> network port.
>
> Fixes: a550baf24af9 ("app/testpmd: support multi-process")
> Cc: stable@dpdk.org
>
> Signed-off-by: Huisong Li <lihuisong@huawei.com>
> Signed-off-by: Min Hu (Connor) <humin29@huawei.com>
Acked-by: Yuying Zhang <yuying.zhang@intel.com>
> ---
> v5:
> * delete space
> v4:
> * update description for parameters.
> 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..6c4253ae61 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 total number of symmetric_mp instances
> that will be run side-by-side\n");
> + printf(" --proc-id: the id of the current process (id < num-procs) to
> +identify which symmetric_mp instance is being run\n");
> 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 "
> --
> 2.33.0
^ permalink raw reply [flat|nested] 23+ messages in thread
* Re: [PATCH v5] app/testpmd: add help messages for multi-process
2022-03-04 9:11 ` Zhang, Yuying
@ 2022-03-04 15:35 ` Ferruh Yigit
2022-03-06 22:52 ` Thomas Monjalon
0 siblings, 1 reply; 23+ messages in thread
From: Ferruh Yigit @ 2022-03-04 15:35 UTC (permalink / raw)
To: Zhang, Yuying, Min Hu (Connor), dev
Cc: Huisong Li, stable, Li, Xiaoyun, Singh, Aman Deep, Ajit Khaparde,
Andrew Rybchenko
On 3/4/2022 9:11 AM, Zhang, Yuying wrote:
> Hi Minhu,
>
>> -----Original Message-----
>> From: Min Hu (Connor) <humin29@huawei.com>
>> Sent: Friday, March 4, 2022 2:27 PM
>> To: dev@dpdk.org
>> Cc: Huisong Li <lihuisong@huawei.com>; stable@dpdk.org; Min Hu
>> <humin29@huawei.com>; Li, Xiaoyun <xiaoyun.li@intel.com>; Singh, Aman
>> Deep <aman.deep.singh@intel.com>; Zhang, Yuying
>> <yuying.zhang@intel.com>; Ajit Khaparde <ajit.khaparde@broadcom.com>;
>> Andrew Rybchenko <andrew.rybchenko@oktetlabs.ru>; Yigit, Ferruh
>> <ferruh.yigit@intel.com>
>> Subject: [PATCH v5] app/testpmd: add help messages for multi-process
>>
>> From: Huisong Li <lihuisong@huawei.com>
>>
>> This patch adds help messages for multi-process.
>> --num-procs <N>, where N is the total number of symmetric_mp instances
>> that will be run side-by-side to perform packet processing. This parameter is
>> used to configure the appropriate number of receive queues on each
>> network port.
>>
>> --proc-id <n>, where n is a numeric value in the range 0 <= n < N (number of
>> processes, specified above). This identifies which symmetric_mp instance is
>> being run, so that each process can read a unique receive queue on each
>> network port.
>>
>> Fixes: a550baf24af9 ("app/testpmd: support multi-process")
>> Cc: stable@dpdk.org
>>
>> Signed-off-by: Huisong Li <lihuisong@huawei.com>
>> Signed-off-by: Min Hu (Connor) <humin29@huawei.com>
>
> Acked-by: Yuying Zhang <yuying.zhang@intel.com>
>
Updated 'symmetric_mp' -> 'multi-process', with this change
Reviewed-by: Ferruh Yigit <ferruh.yigit@intel.com>
Applied to dpdk-next-net/main, thanks.
^ permalink raw reply [flat|nested] 23+ messages in thread
* Re: [PATCH v5] app/testpmd: add help messages for multi-process
2022-03-04 15:35 ` Ferruh Yigit
@ 2022-03-06 22:52 ` Thomas Monjalon
2022-03-07 1:05 ` Min Hu (Connor)
0 siblings, 1 reply; 23+ messages in thread
From: Thomas Monjalon @ 2022-03-06 22:52 UTC (permalink / raw)
To: Zhang, Yuying, Min Hu (Connor)
Cc: dev, Huisong Li, stable, Li, Xiaoyun, Singh, Aman Deep,
Ajit Khaparde, Andrew Rybchenko, Ferruh Yigit
04/03/2022 16:35, Ferruh Yigit:
> On 3/4/2022 9:11 AM, Zhang, Yuying wrote:
> > From: Min Hu (Connor) <humin29@huawei.com>
> >> From: Huisong Li <lihuisong@huawei.com>
> >>
> >> This patch adds help messages for multi-process.
> >> --num-procs <N>, where N is the total number of symmetric_mp instances
> >> that will be run side-by-side to perform packet processing. This parameter is
> >> used to configure the appropriate number of receive queues on each
> >> network port.
> >>
> >> --proc-id <n>, where n is a numeric value in the range 0 <= n < N (number of
> >> processes, specified above). This identifies which symmetric_mp instance is
> >> being run, so that each process can read a unique receive queue on each
> >> network port.
> >>
> >> Fixes: a550baf24af9 ("app/testpmd: support multi-process")
> >> Cc: stable@dpdk.org
> >>
> >> Signed-off-by: Huisong Li <lihuisong@huawei.com>
> >> Signed-off-by: Min Hu (Connor) <humin29@huawei.com>
> >
> > Acked-by: Yuying Zhang <yuying.zhang@intel.com>
> >
>
> Updated 'symmetric_mp' -> 'multi-process', with this change
> Reviewed-by: Ferruh Yigit <ferruh.yigit@intel.com>
>
> Applied to dpdk-next-net/main, thanks.
Why not reusing these defines?
#define PARAM_PROC_ID "proc-id"
#define PARAM_NUM_PROCS "num-procs"
Why not having "N" in the help messages like others?
I won't pull it in main.
Please rework and try to improve the description to make it shorter
and easier to understand.
^ permalink raw reply [flat|nested] 23+ messages in thread
* Re: [PATCH v5] app/testpmd: add help messages for multi-process
2022-03-06 22:52 ` Thomas Monjalon
@ 2022-03-07 1:05 ` Min Hu (Connor)
0 siblings, 0 replies; 23+ messages in thread
From: Min Hu (Connor) @ 2022-03-07 1:05 UTC (permalink / raw)
To: Thomas Monjalon, Zhang, Yuying
Cc: dev, Huisong Li, stable, Li, Xiaoyun, Singh, Aman Deep,
Ajit Khaparde, Andrew Rybchenko, Ferruh Yigit
Hi, Thomas,
v6 has been sent, thanks.
在 2022/3/7 6:52, Thomas Monjalon 写道:
> 04/03/2022 16:35, Ferruh Yigit:
>> On 3/4/2022 9:11 AM, Zhang, Yuying wrote:
>>> From: Min Hu (Connor) <humin29@huawei.com>
>>>> From: Huisong Li <lihuisong@huawei.com>
>>>>
>>>> This patch adds help messages for multi-process.
>>>> --num-procs <N>, where N is the total number of symmetric_mp instances
>>>> that will be run side-by-side to perform packet processing. This parameter is
>>>> used to configure the appropriate number of receive queues on each
>>>> network port.
>>>>
>>>> --proc-id <n>, where n is a numeric value in the range 0 <= n < N (number of
>>>> processes, specified above). This identifies which symmetric_mp instance is
>>>> being run, so that each process can read a unique receive queue on each
>>>> network port.
>>>>
>>>> Fixes: a550baf24af9 ("app/testpmd: support multi-process")
>>>> Cc: stable@dpdk.org
>>>>
>>>> Signed-off-by: Huisong Li <lihuisong@huawei.com>
>>>> Signed-off-by: Min Hu (Connor) <humin29@huawei.com>
>>>
>>> Acked-by: Yuying Zhang <yuying.zhang@intel.com>
>>>
>>
>> Updated 'symmetric_mp' -> 'multi-process', with this change
>> Reviewed-by: Ferruh Yigit <ferruh.yigit@intel.com>
>>
>> Applied to dpdk-next-net/main, thanks.
>
> Why not reusing these defines?
>
> #define PARAM_PROC_ID "proc-id"
> #define PARAM_NUM_PROCS "num-procs"
>
> Why not having "N" in the help messages like others?
>
> I won't pull it in main.
> Please rework and try to improve the description to make it shorter
> and easier to understand.
>
>
> .
>
^ permalink raw reply [flat|nested] 23+ messages in thread
* Re: [PATCH v5] app/testpmd: add help messages for multi-process
2022-03-04 6:26 ` [PATCH v5] " Min Hu (Connor)
2022-03-04 9:11 ` Zhang, Yuying
@ 2022-03-04 14:46 ` Ferruh Yigit
1 sibling, 0 replies; 23+ messages in thread
From: Ferruh Yigit @ 2022-03-04 14:46 UTC (permalink / raw)
To: Min Hu (Connor), dev
Cc: Huisong Li, stable, Xiaoyun Li, Aman Singh, Yuying Zhang,
Ajit Khaparde, Andrew Rybchenko
On 3/4/2022 6:26 AM, Min Hu (Connor) wrote:
> From: Huisong Li <lihuisong@huawei.com>
>
> This patch adds help messages for multi-process.
> --num-procs <N>, where N is the total number of symmetric_mp instances
> that will be run side-by-side to perform packet processing. This parameter
> is used to configure the appropriate number of receive queues on each
> network port.
>
> --proc-id <n>, where n is a numeric value in the range 0 <= n < N (number
> of processes, specified above). This identifies which symmetric_mp instance
> is being run, so that each process can read a unique receive queue on each
> network port.
>
> Fixes: a550baf24af9 ("app/testpmd: support multi-process")
> Cc: stable@dpdk.org
>
> Signed-off-by: Huisong Li <lihuisong@huawei.com>
> Signed-off-by: Min Hu (Connor) <humin29@huawei.com>
> ---
> v5:
> * delete space
> v4:
> * update description for parameters.
> 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..6c4253ae61 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 total number of symmetric_mp instances that will be run side-by-side\n");
I am not exactly sure what is 'symmetric' in 'symmetric_mp' here,
there is a sample application with this name but I guess 'symmetric'
is related to that sample functionality.
Would you mind if I change 'symmetric_mp' with 'multi-process'
while applying?
> + printf(" --proc-id: the id of the current process (id < num-procs) to identify which symmetric_mp instance is being run\n");
> 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 "
^ permalink raw reply [flat|nested] 23+ messages in thread
* [PATCH v5] app/testpmd: add help messages for multi-process
[not found] <20220228032617.46618-1-humin29@huawei.com>
` (3 preceding siblings ...)
2022-03-04 6:26 ` [PATCH v5] " Min Hu (Connor)
@ 2022-03-07 1:04 ` Min Hu (Connor)
2022-04-25 6:51 ` Min Hu (Connor)
2022-06-02 2:24 ` Min Hu (Connor)
2022-06-09 8:52 ` [PATCH v6] " Dongdong Liu
5 siblings, 2 replies; 23+ messages in thread
From: Min Hu (Connor) @ 2022-03-07 1:04 UTC (permalink / raw)
To: dev
Cc: Huisong Li, stable, Min Hu, Xiaoyun Li, Aman Singh, Yuying Zhang,
Lijun Ou, Ajit Khaparde, Ferruh Yigit
From: Huisong Li <lihuisong@huawei.com>
This patch adds help messages for multi-process.
--num-procs=N: set the total number of multi-process instances
--proc-id=id: set the id of the current process from multi-process
instances(0 <= id < num-procs)
Fixes: a550baf24af9 ("app/testpmd: support multi-process")
Cc: stable@dpdk.org
Signed-off-by: Huisong Li <lihuisong@huawei.com>
Signed-off-by: Min Hu (Connor) <humin29@huawei.com>
---
v6:
* fix comments.
v5:
* delete space
v4:
* update description for parameters.
v3,v2:
* adjust the position of parameters.
---
app/test-pmd/parameters.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/app/test-pmd/parameters.c b/app/test-pmd/parameters.c
index daf6a31b2b..2834e9e180 100644
--- a/app/test-pmd/parameters.c
+++ b/app/test-pmd/parameters.c
@@ -61,6 +61,9 @@ 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=N: set the total number of multi-process instances\n");
+ printf(" --proc-id=id: set the id of the current process from multi-process instances\n"
+ "(0 <= id < num-procs).\n");
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 "
--
2.33.0
^ permalink raw reply [flat|nested] 23+ messages in thread
* Re: [PATCH v5] app/testpmd: add help messages for multi-process
2022-03-07 1:04 ` Min Hu (Connor)
@ 2022-04-25 6:51 ` Min Hu (Connor)
2022-06-02 2:24 ` Min Hu (Connor)
1 sibling, 0 replies; 23+ messages in thread
From: Min Hu (Connor) @ 2022-04-25 6:51 UTC (permalink / raw)
To: dev
Cc: Huisong Li, stable, Xiaoyun Li, Aman Singh, Yuying Zhang,
Lijun Ou, Ajit Khaparde, Ferruh Yigit, ferruh.yigit
Hi, Ferruh,
what do you think of this patch?
在 2022/3/7 9:04, Min Hu (Connor) 写道:
> From: Huisong Li <lihuisong@huawei.com>
>
> This patch adds help messages for multi-process.
> --num-procs=N: set the total number of multi-process instances
> --proc-id=id: set the id of the current process from multi-process
> instances(0 <= id < num-procs)
>
> Fixes: a550baf24af9 ("app/testpmd: support multi-process")
> Cc: stable@dpdk.org
>
> Signed-off-by: Huisong Li <lihuisong@huawei.com>
> Signed-off-by: Min Hu (Connor) <humin29@huawei.com>
> ---
> v6:
> * fix comments.
> v5:
> * delete space
> v4:
> * update description for parameters.
> v3,v2:
> * adjust the position of parameters.
> ---
> app/test-pmd/parameters.c | 3 +++
> 1 file changed, 3 insertions(+)
>
> diff --git a/app/test-pmd/parameters.c b/app/test-pmd/parameters.c
> index daf6a31b2b..2834e9e180 100644
> --- a/app/test-pmd/parameters.c
> +++ b/app/test-pmd/parameters.c
> @@ -61,6 +61,9 @@ 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=N: set the total number of multi-process instances\n");
> + printf(" --proc-id=id: set the id of the current process from multi-process instances\n"
> + "(0 <= id < num-procs).\n");
> 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 "
>
^ permalink raw reply [flat|nested] 23+ messages in thread
* Re: [PATCH v5] app/testpmd: add help messages for multi-process
2022-03-07 1:04 ` Min Hu (Connor)
2022-04-25 6:51 ` Min Hu (Connor)
@ 2022-06-02 2:24 ` Min Hu (Connor)
2022-06-02 23:08 ` Ferruh Yigit
1 sibling, 1 reply; 23+ messages in thread
From: Min Hu (Connor) @ 2022-06-02 2:24 UTC (permalink / raw)
To: dev
Cc: Huisong Li, stable, Xiaoyun Li, Aman Singh, Yuying Zhang,
Lijun Ou, Ajit Khaparde, Ferruh Yigit
Hi, all,
any comments?
在 2022/3/7 9:04, Min Hu (Connor) 写道:
> From: Huisong Li <lihuisong@huawei.com>
>
> This patch adds help messages for multi-process.
> --num-procs=N: set the total number of multi-process instances
> --proc-id=id: set the id of the current process from multi-process
> instances(0 <= id < num-procs)
>
> Fixes: a550baf24af9 ("app/testpmd: support multi-process")
> Cc: stable@dpdk.org
>
> Signed-off-by: Huisong Li <lihuisong@huawei.com>
> Signed-off-by: Min Hu (Connor) <humin29@huawei.com>
> ---
> v6:
> * fix comments.
> v5:
> * delete space
> v4:
> * update description for parameters.
> v3,v2:
> * adjust the position of parameters.
> ---
> app/test-pmd/parameters.c | 3 +++
> 1 file changed, 3 insertions(+)
>
> diff --git a/app/test-pmd/parameters.c b/app/test-pmd/parameters.c
> index daf6a31b2b..2834e9e180 100644
> --- a/app/test-pmd/parameters.c
> +++ b/app/test-pmd/parameters.c
> @@ -61,6 +61,9 @@ 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=N: set the total number of multi-process instances\n");
> + printf(" --proc-id=id: set the id of the current process from multi-process instances\n"
> + "(0 <= id < num-procs).\n");
> 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 "
>
^ permalink raw reply [flat|nested] 23+ messages in thread
* Re: [PATCH v5] app/testpmd: add help messages for multi-process
2022-06-02 2:24 ` Min Hu (Connor)
@ 2022-06-02 23:08 ` Ferruh Yigit
2022-06-09 8:07 ` Dongdong Liu
0 siblings, 1 reply; 23+ messages in thread
From: Ferruh Yigit @ 2022-06-02 23:08 UTC (permalink / raw)
To: Min Hu (Connor), dev
Cc: Huisong Li, stable, Xiaoyun Li, Aman Singh, Yuying Zhang,
Lijun Ou, Ajit Khaparde
On 6/2/2022 3:24 AM, Min Hu (Connor) wrote:
> Hi, all,
> any comments?
>
> 在 2022/3/7 9:04, Min Hu (Connor) 写道:
>> From: Huisong Li <lihuisong@huawei.com>
>>
>> This patch adds help messages for multi-process.
>> --num-procs=N: set the total number of multi-process instances
>> --proc-id=id: set the id of the current process from multi-process
>> instances(0 <= id < num-procs)
>>
>> Fixes: a550baf24af9 ("app/testpmd: support multi-process")
>> Cc: stable@dpdk.org
>>
>> Signed-off-by: Huisong Li <lihuisong@huawei.com>
>> Signed-off-by: Min Hu (Connor) <humin29@huawei.com>
>> ---
>> v6:
>> * fix comments.
>> v5:
>> * delete space
>> v4:
>> * update description for parameters.
>> v3,v2:
>> * adjust the position of parameters.
>> ---
>> app/test-pmd/parameters.c | 3 +++
>> 1 file changed, 3 insertions(+)
>>
>> diff --git a/app/test-pmd/parameters.c b/app/test-pmd/parameters.c
>> index daf6a31b2b..2834e9e180 100644
>> --- a/app/test-pmd/parameters.c
>> +++ b/app/test-pmd/parameters.c
>> @@ -61,6 +61,9 @@ 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=N: set the total number of multi-process
>> instances\n");
>> + printf(" --proc-id=id: set the id of the current process from
>> multi-process instances\n"
>> + "(0 <= id < num-procs).\n");
>> 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 "
>>
Hi Connor,
output is as following [1], is "(0 <= id < num-procs)." part break into
next line intentionally? This breaks the output.
I assume the line is broken in source code to fit into line length, but
it doesn't have to break the line in output, what do you think?
[1]
...
--num-procs=N: set the total number of multi-process instances
--proc-id=id: set the id of the current process from multi-process ..
(0 <= id < num-procs).
--nb-cores=N: set the number of forwarding cores (1 <= N <= 55).
...
^ permalink raw reply [flat|nested] 23+ messages in thread
* Re: [PATCH v5] app/testpmd: add help messages for multi-process
2022-06-02 23:08 ` Ferruh Yigit
@ 2022-06-09 8:07 ` Dongdong Liu
0 siblings, 0 replies; 23+ messages in thread
From: Dongdong Liu @ 2022-06-09 8:07 UTC (permalink / raw)
To: Ferruh Yigit, Min Hu (Connor), dev
Cc: Huisong Li, stable, Xiaoyun Li, Aman Singh, Yuying Zhang,
Lijun Ou, Ajit Khaparde
Hi Ferruh
Many thanks for your review.
On 2022/6/3 7:08, Ferruh Yigit wrote:
> On 6/2/2022 3:24 AM, Min Hu (Connor) wrote:
>> Hi, all,
>> any comments?
>>
>> 在 2022/3/7 9:04, Min Hu (Connor) 写道:
>>> From: Huisong Li <lihuisong@huawei.com>
>>>
>>> This patch adds help messages for multi-process.
>>> --num-procs=N: set the total number of multi-process instances
>>> --proc-id=id: set the id of the current process from multi-process
>>> instances(0 <= id < num-procs)
>>>
>>> Fixes: a550baf24af9 ("app/testpmd: support multi-process")
>>> Cc: stable@dpdk.org
>>>
>>> Signed-off-by: Huisong Li <lihuisong@huawei.com>
>>> Signed-off-by: Min Hu (Connor) <humin29@huawei.com>
>>> ---
>>> v6:
>>> * fix comments.
>>> v5:
>>> * delete space
>>> v4:
>>> * update description for parameters.
>>> v3,v2:
>>> * adjust the position of parameters.
>>> ---
>>> app/test-pmd/parameters.c | 3 +++
>>> 1 file changed, 3 insertions(+)
>>>
>>> diff --git a/app/test-pmd/parameters.c b/app/test-pmd/parameters.c
>>> index daf6a31b2b..2834e9e180 100644
>>> --- a/app/test-pmd/parameters.c
>>> +++ b/app/test-pmd/parameters.c
>>> @@ -61,6 +61,9 @@ 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=N: set the total number of multi-process
>>> instances\n");
>>> + printf(" --proc-id=id: set the id of the current process from
>>> multi-process instances\n"
>>> + "(0 <= id < num-procs).\n");
>>> 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 "
>>>
>
> Hi Connor,
>
> output is as following [1], is "(0 <= id < num-procs)." part break into
> next line intentionally? This breaks the output.
>
> I assume the line is broken in source code to fit into line length, but
> it doesn't have to break the line in output, what do you think?
Thanks for pointing this, will fix.
Thanks,
Dongdong
>
>
> [1]
> ...
> --num-procs=N: set the total number of multi-process instances
> --proc-id=id: set the id of the current process from multi-process ..
> (0 <= id < num-procs).
> --nb-cores=N: set the number of forwarding cores (1 <= N <= 55).
> ...
> .
>
^ permalink raw reply [flat|nested] 23+ messages in thread
* [PATCH v6] app/testpmd: add help messages for multi-process
[not found] <20220228032617.46618-1-humin29@huawei.com>
` (4 preceding siblings ...)
2022-03-07 1:04 ` Min Hu (Connor)
@ 2022-06-09 8:52 ` Dongdong Liu
2022-06-09 14:06 ` Ferruh Yigit
5 siblings, 1 reply; 23+ messages in thread
From: Dongdong Liu @ 2022-06-09 8:52 UTC (permalink / raw)
To: dev
Cc: ferruh.yigit, thomas, yuying.zhang, stable, Huisong Li, Min Hu,
Dongdong Liu, Xiaoyun Li, Aman Singh, Ferruh Yigit,
Ajit Khaparde
From: Huisong Li <lihuisong@huawei.com>
This patch adds help messages for multi-process.
--num-procs=N: set the total number of multi-process instances.
--proc-id=id: set the id of the current process from multi-process
instances(0 <= id < num-procs).
Fixes: a550baf24af9 ("app/testpmd: support multi-process")
Cc: stable@dpdk.org
Signed-off-by: Huisong Li <lihuisong@huawei.com>
Signed-off-by: Min Hu (Connor) <humin29@huawei.com>
Signed-off-by: Dongdong Liu <liudongdong3@huawei.com>
---
v5->v6:
- Adjust the print information for multi-process.
---
app/test-pmd/parameters.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/app/test-pmd/parameters.c b/app/test-pmd/parameters.c
index 641c9c767e..0201382294 100644
--- a/app/test-pmd/parameters.c
+++ b/app/test-pmd/parameters.c
@@ -61,6 +61,9 @@ 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=N: set the total number of multi-process instances.\n");
+ printf(" --proc-id=id: set the id of the current process from "
+ "multi-process instances (0 <= id < num-procs).\n");
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 "
--
2.33.0
^ permalink raw reply [flat|nested] 23+ messages in thread
* Re: [PATCH v6] app/testpmd: add help messages for multi-process
2022-06-09 8:52 ` [PATCH v6] " Dongdong Liu
@ 2022-06-09 14:06 ` Ferruh Yigit
2022-06-09 14:58 ` Ferruh Yigit
0 siblings, 1 reply; 23+ messages in thread
From: Ferruh Yigit @ 2022-06-09 14:06 UTC (permalink / raw)
To: Dongdong Liu, dev
Cc: thomas, yuying.zhang, stable, Huisong Li, Min Hu, Xiaoyun Li,
Aman Singh, Ajit Khaparde
On 6/9/2022 9:52 AM, Dongdong Liu wrote:
>
> From: Huisong Li <lihuisong@huawei.com>
>
> This patch adds help messages for multi-process.
> --num-procs=N: set the total number of multi-process instances.
> --proc-id=id: set the id of the current process from multi-process
> instances(0 <= id < num-procs).
>
> Fixes: a550baf24af9 ("app/testpmd: support multi-process")
> Cc: stable@dpdk.org
>
> Signed-off-by: Huisong Li <lihuisong@huawei.com>
> Signed-off-by: Min Hu (Connor) <humin29@huawei.com>
> Signed-off-by: Dongdong Liu <liudongdong3@huawei.com>
> ---
> v5->v6:
> - Adjust the print information for multi-process.
> ---
> app/test-pmd/parameters.c | 3 +++
> 1 file changed, 3 insertions(+)
>
> diff --git a/app/test-pmd/parameters.c b/app/test-pmd/parameters.c
> index 641c9c767e..0201382294 100644
> --- a/app/test-pmd/parameters.c
> +++ b/app/test-pmd/parameters.c
> @@ -61,6 +61,9 @@ 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=N: set the total number of multi-process instances.\n");
> + printf(" --proc-id=id: set the id of the current process from "
there are double space after '--proc-id=id:', but I can fix it while
merging.
> + "multi-process instances (0 <= id < num-procs).\n");
> 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 "
> --
> 2.33.0
>
^ permalink raw reply [flat|nested] 23+ messages in thread
* Re: [PATCH v6] app/testpmd: add help messages for multi-process
2022-06-09 14:06 ` Ferruh Yigit
@ 2022-06-09 14:58 ` Ferruh Yigit
0 siblings, 0 replies; 23+ messages in thread
From: Ferruh Yigit @ 2022-06-09 14:58 UTC (permalink / raw)
To: Dongdong Liu, dev
Cc: thomas, yuying.zhang, stable, Huisong Li, Min Hu, Xiaoyun Li,
Aman Singh, Ajit Khaparde
On 6/9/2022 3:06 PM, Ferruh Yigit wrote:
> On 6/9/2022 9:52 AM, Dongdong Liu wrote:
>
>>
>> From: Huisong Li <lihuisong@huawei.com>
>>
>> This patch adds help messages for multi-process.
>> --num-procs=N: set the total number of multi-process instances.
>> --proc-id=id: set the id of the current process from multi-process
>> instances(0 <= id < num-procs).
>>
>> Fixes: a550baf24af9 ("app/testpmd: support multi-process")
>> Cc: stable@dpdk.org
>>
>> Signed-off-by: Huisong Li <lihuisong@huawei.com>
>> Signed-off-by: Min Hu (Connor) <humin29@huawei.com>
>> Signed-off-by: Dongdong Liu <liudongdong3@huawei.com>
Acked-by: Ferruh Yigit <ferruh.yigit@xilinx.com>
Applied to dpdk-next-net/main, thanks.
^ permalink raw reply [flat|nested] 23+ messages in thread