app/testpmd: fix invalid port id parameters
authorLi Han <han.li1@zte.com.cn>
Tue, 22 Aug 2017 05:03:42 +0000 (13:03 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Thu, 12 Oct 2017 00:36:58 +0000 (01:36 +0100)
commitd1f1a0fd8a0b3e5b090e64a8d7d895479e959143
treed6087d35601bf74c5841ed7f8800c690c5ebe79b
parentce6e3f816d847153299e597467a0f104a493cb82
app/testpmd: fix invalid port id parameters

in parse_ringnuma_config/parse_portnuma_config functions, port_id
should be less than RTE_MAX_ETHPORTS, but port_id_is_invalid check
assumes that port_id may be RTE_PORT_ALL (65535).

Also fix port_id storage size.

Fixes: 4468635fdd04 ("app/testpmd: forbid actions on invalid port")
Cc: stable@dpdk.org
Signed-off-by: Li Han <han.li1@zte.com.cn>
Reviewed-by: Ferruh Yigit <ferruh.yigit@intel.com>
app/test-pmd/parameters.c