app/testpmd: fix hotplug removal
authorPaulis Gributs <paulis.gributs@intel.com>
Wed, 28 Jul 2021 13:48:48 +0000 (13:48 +0000)
committerThomas Monjalon <thomas@monjalon.net>
Fri, 30 Jul 2021 12:27:01 +0000 (14:27 +0200)
commite1d38504e16cdc7fbb977d9fc750a93cc784d37e
treec0f02c99c0d369894dfa43a51ccd628cad9a9c37
parentb2a9e4a855d0e5b4e3fdba5b126bcf00aa8f0ada
app/testpmd: fix hotplug removal

After removing rte_eth_devices from testpmd the vm_hotplug no longer
recovered after removal of a device, because the port was closed
before querying it.

Fixes: 0a0821bcf312 ("app/testpmd: remove most uses of internal ethdev array")

Signed-off-by: Paulis Gributs <paulis.gributs@intel.com>
Acked-by: Xiaoyun Li <xiaoyun.li@intel.com>
app/test-pmd/testpmd.c