ipc: fix spelling in log and comment
[dpdk.git] / lib / librte_eal / common / hotplug_mp.c
index 2275cac..ee79190 100644 (file)
@@ -405,7 +405,11 @@ int eal_dev_hotplug_request_to_secondary(struct eal_dev_mp_req *req)
 
        ret = rte_mp_request_sync(&mp_req, &mp_reply, &ts);
        if (ret != 0) {
-               RTE_LOG(ERR, EAL, "rte_mp_request_sync failed\n");
+               /* if IPC is not supported, behave as if the call succeeded */
+               if (rte_errno != ENOTSUP)
+                       RTE_LOG(ERR, EAL, "rte_mp_request_sync failed\n");
+               else
+                       ret = 0;
                return ret;
        }
 
@@ -434,7 +438,7 @@ int eal_dev_hotplug_request_to_secondary(struct eal_dev_mp_req *req)
        return 0;
 }
 
-int rte_mp_dev_hotplug_init(void)
+int eal_mp_dev_hotplug_init(void)
 {
        int ret;