app/testpmd: fix reconfig flag for all ports
authorYong Liu <yong.liu@intel.com>
Fri, 13 Mar 2015 02:38:23 +0000 (10:38 +0800)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Fri, 20 Mar 2015 23:21:56 +0000 (00:21 +0100)
commit6ae9bee6c6c17a2c685557181d50adf575b1d880
treea6478217e1a5091add0202e5096423c4001c0829
parent857af048ac59d7a73735ef3a707c94e1dcc49f5d
app/testpmd: fix reconfig flag for all ports

When port id is RTE_PORT_ALL, port_id_is_invalid will also return zero.
So this function will only set ports[255] need_reconfig flag, other ports will
be skipped.

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

Signed-off-by: Marvin Liu <yong.liu@intel.com>
Acked-by: Changchun Ouyang <changchun.ouyang@intel.com>
app/test-pmd/cmdline.c