From: Yajun Wu <yaj...@nvidia.com> Add calling rte_dev_remove in vDPA example application exit. Otherwise rte_dev_remove never get called.
Fixes: edbed86d1cc ("examples/vdpa: introduce a new sample for vDPA") Cc: sta...@dpdk.org Signed-off-by: Yajun Wu <yaj...@nvidia.com> --- examples/vdpa/main.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/examples/vdpa/main.c b/examples/vdpa/main.c index 7e11ef4e26..534f1e9715 100644 --- a/examples/vdpa/main.c +++ b/examples/vdpa/main.c @@ -632,6 +632,10 @@ main(int argc, char *argv[]) vdpa_sample_quit(); } + RTE_DEV_FOREACH(dev, "class=vdpa", &dev_iter) { + rte_dev_remove(dev); + } + /* clean up the EAL */ rte_eal_cleanup(); -- 2.31.1