From: Dariusz Stojaczyk Date: Tue, 10 Jul 2018 10:44:45 +0000 (+0200) Subject: eal: ignore failure of naming a control thread X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=368a91d6bdc8225c585044b4e7debcd3e5fdc0d4;p=dpdk.git eal: ignore failure of naming a control thread The error is not fatal and we can physically continue creating the thread. It simply won't have a name. If rte_thread_setname() fails, we will just print a debug log now. EAL does the same for lcore threads. Signed-off-by: Dariusz Stojaczyk Acked-by: Anatoly Burakov Reviewed-by: Olivier Matz --- diff --git a/lib/librte_eal/common/eal_common_thread.c b/lib/librte_eal/common/eal_common_thread.c index 42398630a1..8110ac2ae1 100644 --- a/lib/librte_eal/common/eal_common_thread.c +++ b/lib/librte_eal/common/eal_common_thread.c @@ -191,7 +191,8 @@ rte_ctrl_thread_create(pthread_t *thread, const char *name, if (name != NULL) { ret = rte_thread_setname(*thread, name); if (ret < 0) - goto fail; + RTE_LOG(DEBUG, EAL, + "Cannot set name for ctrl thread\n"); } cpu_found = 0;