examples/l3fwd: merge l3fwd-acl example
[dpdk.git] / lib / eal / linux / eal_vfio_mp_sync.c
index a2accfa..4e26781 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