app/testpmd: support multi-process
authorMin Hu (Connor) <humin29@huawei.com>
Wed, 25 Aug 2021 02:06:38 +0000 (10:06 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 7 Sep 2021 13:29:03 +0000 (15:29 +0200)
commita550baf24af90f76354eab0d4f91165a78157d38
tree21a2bf5e05b215c6294a7b69693c7a51d28e518d
parent36a97cd23fc916ac475a0b827074b5645fff0cfe
app/testpmd: support multi-process

This patch adds multi-process support for testpmd.
For example the following commands run two testpmd
processes:

 * the primary process:

./dpdk-testpmd --proc-type=auto -l 0-1 -- -i \
   --rxq=4 --txq=4 --num-procs=2 --proc-id=0

 * the secondary process:

./dpdk-testpmd --proc-type=auto -l 2-3 -- -i \
   --rxq=4 --txq=4 --num-procs=2 --proc-id=1

Signed-off-by: Min Hu (Connor) <humin29@huawei.com>
Signed-off-by: Lijun Ou <oulijun@huawei.com>
Signed-off-by: Andrew Rybchenko <andrew.rybchenko@oktetlabs.ru>
Acked-by: Xiaoyun Li <xiaoyun.li@intel.com>
Acked-by: Ajit Khaparde <ajit.khaparde@broadcom.com>
Reviewed-by: Ferruh Yigit <ferruh.yigit@intel.com>
Acked-by: Aman Deep Singh <aman.deep.singh@intel.com>
app/test-pmd/cmdline.c
app/test-pmd/config.c
app/test-pmd/parameters.c
app/test-pmd/testpmd.c
app/test-pmd/testpmd.h
doc/guides/rel_notes/release_21_11.rst
doc/guides/testpmd_app_ug/run_app.rst