app/pdump: fix vdev cleanup
authorReshma Pattan <reshma.pattan@intel.com>
Tue, 15 Jan 2019 13:45:04 +0000 (13:45 +0000)
committerThomas Monjalon <thomas@monjalon.net>
Thu, 17 Jan 2019 20:27:37 +0000 (21:27 +0100)
commit35cb223ab7be6791fa68698c05b94b843b8a5fda
tree0b603ca7ea156418b9704da79a8fc19acbac81d3
parent7c06d9258ab8a33b4d5a6604726ebeae90d8537e
app/pdump: fix vdev cleanup

Virtual devices added in pdump application
using rte_eal_hotplug_add should be removed explicitly
while exiting the pdump application, otherwise the
subsequent run of the pdump application will fail with the reason
that virtual devices with the same name already exists in primary.

Fixes: 6362f362a2 ("app/pdump: use EAL hotplug instead of ethdev attach")
Cc: stable@dpdk.org
Signed-off-by: Reshma Pattan <reshma.pattan@intel.com>
Tested-by: Ferruh Yigit <ferruh.yigit@intel.com>
app/pdump/main.c