From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 0BE67A00BE; Mon, 25 Apr 2022 08:51:19 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id EFFFA41132; Mon, 25 Apr 2022 08:51:18 +0200 (CEST) Received: from szxga01-in.huawei.com (szxga01-in.huawei.com [45.249.212.187]) by mails.dpdk.org (Postfix) with ESMTP id 52463410E6; Mon, 25 Apr 2022 08:51:13 +0200 (CEST) Received: from kwepemi500012.china.huawei.com (unknown [172.30.72.56]) by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4Kmwcn2XgXzfb5G; Mon, 25 Apr 2022 14:50:17 +0800 (CST) Received: from [10.67.103.128] (10.67.103.128) by kwepemi500012.china.huawei.com (7.221.188.12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.24; Mon, 25 Apr 2022 14:51:07 +0800 Subject: Re: [PATCH v5] app/testpmd: add help messages for multi-process To: CC: Huisong Li , , Xiaoyun Li , Aman Singh , Yuying Zhang , Lijun Ou , Ajit Khaparde , Ferruh Yigit , References: <20220228032617.46618-1-humin29@huawei.com> <20220307010435.56784-1-humin29@huawei.com> From: "Min Hu (Connor)" Message-ID: <2ae2c502-1dfb-b548-bf17-722b611506d7@huawei.com> Date: Mon, 25 Apr 2022 14:51:06 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.3.1 MIME-Version: 1.0 In-Reply-To: <20220307010435.56784-1-humin29@huawei.com> Content-Type: text/plain; charset="gbk"; format=flowed Content-Transfer-Encoding: 8bit X-Originating-IP: [10.67.103.128] X-ClientProxiedBy: dggems702-chm.china.huawei.com (10.3.19.179) To kwepemi500012.china.huawei.com (7.221.188.12) X-CFilter-Loop: Reflected X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Hi, Ferruh, what do you think of this patch? ÔÚ 2022/3/7 9:04, Min Hu (Connor) дµÀ: > From: Huisong Li > > 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 > Signed-off-by: Min Hu (Connor) > --- > 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 " >