git.droids-corp.org
/
dpdk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
vfio: cleanup the multiprocess sync handle
[dpdk.git]
/
lib
/
eal
/
linux
/
eal_vfio_mp_sync.c
diff --git
a/lib/eal/linux/eal_vfio_mp_sync.c
b/lib/eal/linux/eal_vfio_mp_sync.c
index
a2accfa
..
d12bbae
100644
(file)
--- a/
lib/eal/linux/eal_vfio_mp_sync.c
+++ b/
lib/eal/linux/eal_vfio_mp_sync.c
@@
-120,4
+120,12
@@
vfio_mp_sync_setup(void)
return 0;
}
+void
+vfio_mp_sync_cleanup(void)
+{
+ if (rte_eal_process_type() != RTE_PROC_PRIMARY)
+ return;
+
+ rte_mp_action_unregister(EAL_VFIO_MP);
+}
#endif