]> git.droids-corp.org - dpdk.git/blobdiff - lib/eal/common/malloc_mp.c
ip_frag: add IPv4 options fragment
[dpdk.git] / lib / eal / common / malloc_mp.c
index 2e597a17a2f25313743987e925957d70ad8997d8..207b90847ed5f062bbb7168a2177818e17020319 100644 (file)
@@ -5,7 +5,6 @@
 #include <string.h>
 #include <sys/time.h>
 
-#include <rte_alarm.h>
 #include <rte_errno.h>
 #include <rte_string_fns.h>
 
@@ -806,3 +805,15 @@ register_mp_requests(void)
        }
        return 0;
 }
+
+void
+unregister_mp_requests(void)
+{
+       if (rte_eal_process_type() == RTE_PROC_PRIMARY) {
+               rte_mp_action_unregister(MP_ACTION_REQUEST);
+       } else {
+               rte_mp_action_unregister(MP_ACTION_SYNC);
+               rte_mp_action_unregister(MP_ACTION_ROLLBACK);
+               rte_mp_action_unregister(MP_ACTION_RESPONSE);
+       }
+}