]> git.droids-corp.org - dpdk.git/blobdiff - lib/librte_eal/common/eal_common_proc.c
ipc: handle unsupported IPC in action register
[dpdk.git] / lib / librte_eal / common / eal_common_proc.c
index 395161c565bc140d71b2023211c31fddfa606fcf..7f86c12e98852d781ec4340c8626a8147f8083cf 100644 (file)
@@ -205,6 +205,12 @@ rte_mp_action_register(const char *name, rte_mp_t action)
        if (validate_action_name(name) != 0)
                return -1;
 
+       if (internal_config.no_shconf) {
+               RTE_LOG(DEBUG, EAL, "No shared files mode enabled, IPC is disabled\n");
+               rte_errno = ENOTSUP;
+               return -1;
+       }
+
        entry = malloc(sizeof(struct action_entry));
        if (entry == NULL) {
                rte_errno = ENOMEM;