From: Anatoly Burakov Date: Thu, 25 Apr 2019 12:45:16 +0000 (+0100) Subject: ipc: do not unregister action if IPC unsupported X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=9a4274be9e47eecb1afe31fb7bc75a07e68d4392;p=dpdk.git ipc: do not unregister action if IPC unsupported Currently, unregister will be attempted even if IPC wasn't supported in the first place. It is harmless, but for consistency reasons, update the unregister API call to exit early when IPC is not supported. Signed-off-by: Anatoly Burakov --- diff --git a/lib/librte_eal/common/eal_common_proc.c b/lib/librte_eal/common/eal_common_proc.c index 7f86c12e98..d14d55657b 100644 --- a/lib/librte_eal/common/eal_common_proc.c +++ b/lib/librte_eal/common/eal_common_proc.c @@ -239,6 +239,11 @@ rte_mp_action_unregister(const char *name) if (validate_action_name(name) != 0) return; + if (internal_config.no_shconf) { + RTE_LOG(DEBUG, EAL, "No shared files mode enabled, IPC is disabled\n"); + return; + } + pthread_mutex_lock(&mp_mutex_action); entry = find_action_entry_by_name(name); if (entry == NULL) {