app/testpmd: fix incorrect port number check
authorYong Liu <yong.liu@intel.com>
Wed, 11 Mar 2015 07:23:10 +0000 (15:23 +0800)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Wed, 11 Mar 2015 14:59:56 +0000 (15:59 +0100)
commit0a530f0d58b0304d3f7515bb14f81fd2b6e6931e
treed6850b60d48fc1c24efbda3934aa2f4f304f3396
parentefa2084a840fb83fd9be83adca57e5f23d3fa9fe
app/testpmd: fix incorrect port number check

testpmd parameter "nb-port" mean the number of forwarding port.
It's incorrect to use function port_id_is_invalid to check number of ports.

Fixes: edab33b1c01d ("app/testpmd: support port hotplug")

Signed-off-by: Yong Liu <yong.liu@intel.com>
Acked-by: Thomas Monjalon <thomas.monjalon@6wind.com>
app/test-pmd/parameters.c