app/testpmd: add help messages for multi-process
authorHuisong Li <lihuisong@huawei.com>
Thu, 9 Jun 2022 08:52:34 +0000 (16:52 +0800)
committerFerruh Yigit <ferruh.yigit@xilinx.com>
Thu, 9 Jun 2022 14:56:41 +0000 (16:56 +0200)
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>
app/test-pmd/parameters.c

index 641c9c7..e3c9757 100644 (file)
@@ -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 "