]> git.droids-corp.org - dpdk.git/blobdiff - lib/librte_eal/common/eal_common_proc.c
ipc: handle unsupported IPC in async request
[dpdk.git] / lib / librte_eal / common / eal_common_proc.c
index 7195d573c239159a2589c564d72eb51f64b9ff69..cfd571e4f8462e6c187002cd58be46eb9a87be1b 100644 (file)
@@ -1066,7 +1066,8 @@ rte_mp_request_async(struct rte_mp_msg *req, const struct timespec *ts,
 
        if (internal_config.no_shconf) {
                RTE_LOG(DEBUG, EAL, "No shared files mode enabled, IPC is disabled\n");
-               return 0;
+               rte_errno = ENOTSUP;
+               return -1;
        }
 
        if (gettimeofday(&now, NULL) < 0) {