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 C315DA0351; Fri, 4 Mar 2022 07:27:05 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 9B4ED40150; Fri, 4 Mar 2022 07:27:05 +0100 (CET) Received: from szxga02-in.huawei.com (szxga02-in.huawei.com [45.249.212.188]) by mails.dpdk.org (Postfix) with ESMTP id 2EF7C4013F; Fri, 4 Mar 2022 07:27:02 +0100 (CET) Received: from dggeme756-chm.china.huawei.com (unknown [172.30.72.57]) by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4K8yXK0bN3zdfmG; Fri, 4 Mar 2022 14:25:37 +0800 (CST) Received: from localhost.localdomain (10.69.192.56) by dggeme756-chm.china.huawei.com (10.3.19.102) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2308.21; Fri, 4 Mar 2022 14:26:55 +0800 From: "Min Hu (Connor)" To: CC: Huisong Li , , Min Hu , Xiaoyun Li , Aman Singh , Yuying Zhang , Ajit Khaparde , Andrew Rybchenko , Ferruh Yigit Subject: [PATCH v5] app/testpmd: add help messages for multi-process Date: Fri, 4 Mar 2022 14:26:42 +0800 Message-ID: <20220304062642.54725-1-humin29@huawei.com> X-Mailer: git-send-email 2.33.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.69.192.56] X-ClientProxiedBy: dggems705-chm.china.huawei.com (10.3.19.182) To dggeme756-chm.china.huawei.com (10.3.19.102) 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 , 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 , 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 Signed-off-by: Min Hu (Connor) --- 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