6ae9bee6c6
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>