]> git.droids-corp.org - dpdk.git/blobdiff - lib/eal/linux/eal_vfio_mp_sync.c
examples/l3fwd: merge l3fwd-acl example
[dpdk.git] / lib / eal / linux / eal_vfio_mp_sync.c
index a2accfab3a3853c968208f7688b00b229002be30..4e2678194841d3629e275e69e270e944fe00420b 100644 (file)
@@ -5,7 +5,6 @@
 #include <unistd.h>
 #include <string.h>
 
-#include <rte_compat.h>
 #include <rte_errno.h>
 #include <rte_log.h>
 #include <rte_vfio.h>
@@ -120,4 +119,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