app/testpmd: add --portlist option
authorHariprasad Govindharajan <hariprasad.govindharajan@intel.com>
Wed, 12 Feb 2020 10:29:47 +0000 (10:29 +0000)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 14 Feb 2020 11:42:12 +0000 (12:42 +0100)
commit2df00d562d203fb1450261c26d0ffa47b8007089
tree99993ef5a9b30ceba69929c007d2fda446d46935
parent431f199883e5b7eeea87a2f9f0272daf3354c1da
app/testpmd: add --portlist option

In current version, we are setting the ports
using portmask. With portmask, we can use only
up to 64 ports. This portlist option enables the user
to use more than 64 ports.
Now we can specify the ports in 2 different ways
 - Using portmask (-p [0x]nnn): mask must be in hex format
 - Using portlist in the following format
 --portlist <p1>[-p2][,p3[-p4],...]

 --portmask 0x2 is same as --portlist 1
 --portmask 0x3 is same as --portlist 0-1

Signed-off-by: Hariprasad Govindharajan <hariprasad.govindharajan@intel.com>
Acked-by: Anatoly Burakov <anatoly.burakov@intel.com>
Reviewed-by: Ferruh Yigit <ferruh.yigit@intel.com>
Reviewed-by: Herakliusz Lipiec <herakliusz.lipiec@intel.com>
app/test-pmd/config.c
app/test-pmd/parameters.c
app/test-pmd/testpmd.h
doc/guides/testpmd_app_ug/run_app.rst