eal: hide internal hotplug function
[dpdk.git] / lib / librte_eal / linux / eal / eal.c
index dfbbedd..8a0b387 100644 (file)
@@ -59,6 +59,7 @@
 #include "eal_hugepages.h"
 #include "eal_options.h"
 #include "eal_vfio.h"
+#include "hotplug_mp.h"
 
 #define MEMSIZE_IF_NO_HUGE_PAGE (64ULL * 1024ULL * 1024ULL)
 
@@ -1062,7 +1063,7 @@ rte_eal_init(int argc, char **argv)
        }
 
        /* register multi-process action callbacks for hotplug */
-       if (rte_mp_dev_hotplug_init() < 0) {
+       if (eal_mp_dev_hotplug_init() < 0) {
                rte_eal_init_alert("failed to register mp callback for hotplug");
                return -1;
        }
@@ -1122,8 +1123,6 @@ rte_eal_init(int argc, char **argv)
 #endif
        }
 
-       rte_srand(rte_rdtsc());
-
        if (rte_eal_log_init(logid, internal_config.syslog_facility) < 0) {
                rte_eal_init_alert("Cannot init logging.");
                rte_errno = ENOMEM;