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 1CCF3A0558; Thu, 9 Jun 2022 10:52:53 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 0D2C9427EC; Thu, 9 Jun 2022 10:52:52 +0200 (CEST) Received: from szxga02-in.huawei.com (szxga02-in.huawei.com [45.249.212.188]) by mails.dpdk.org (Postfix) with ESMTP id E0E21427EC; Thu, 9 Jun 2022 10:52:50 +0200 (CEST) Received: from kwepemi500017.china.huawei.com (unknown [172.30.72.54]) by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4LJd7h14CQzRhnD; Thu, 9 Jun 2022 16:49:36 +0800 (CST) Received: from localhost.localdomain (10.28.79.22) by kwepemi500017.china.huawei.com (7.221.188.110) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.24; Thu, 9 Jun 2022 16:52:48 +0800 From: Dongdong Liu To: CC: , , , , Huisong Li , Min Hu , Dongdong Liu , Xiaoyun Li , Aman Singh , Ferruh Yigit , Ajit Khaparde Subject: [PATCH v6] app/testpmd: add help messages for multi-process Date: Thu, 9 Jun 2022 16:52:34 +0800 Message-ID: <20220609085234.12801-1-liudongdong3@huawei.com> X-Mailer: git-send-email 2.22.0 In-Reply-To: <20220228032617.46618-1-humin29@huawei.com> References: <20220228032617.46618-1-humin29@huawei.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [10.28.79.22] X-ClientProxiedBy: dggems703-chm.china.huawei.com (10.3.19.180) To kwepemi500017.china.huawei.com (7.221.188.110) 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 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) Signed-off-by: Dongdong Liu --- 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