eal: fix thread naming on FreeBSD
authorThomas Monjalon <thomas.monjalon@6wind.com>
Fri, 17 Jun 2016 12:48:16 +0000 (14:48 +0200)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Fri, 17 Jun 2016 16:04:22 +0000 (18:04 +0200)
commit3901ed99c2f82d3e979bb1bea001d61898241829
tree304c430258648575d61b6ffa80f338a6e0389d09
parent92fed91965785beccad406ee6982567be4444ffb
eal: fix thread naming on FreeBSD

rte_thread_setname was a macro defined only for Linux.
The function rte_thread_setname() can now be used on FreeBSD
as well on Linux.
It is required to build librte_pdump.

The macro was 0 for old glibc. The function is now returning -1.
The related logs are decreased from error to debug level because
it is not an important failure, just a debug inconvenience.

Fixes: 278f945402c5 ("pdump: add new library for packet capture")

Signed-off-by: Thomas Monjalon <thomas.monjalon@6wind.com>
Acked-by: David Marchand <david.marchand@6wind.com>
13 files changed:
examples/tep_termination/main.c
examples/vhost/main.c
examples/vhost_xen/main.c
lib/librte_eal/bsdapp/eal/eal.c
lib/librte_eal/bsdapp/eal/eal_thread.c
lib/librte_eal/bsdapp/eal/rte_eal_version.map
lib/librte_eal/common/include/rte_lcore.h
lib/librte_eal/linuxapp/eal/eal.c
lib/librte_eal/linuxapp/eal/eal_interrupts.c
lib/librte_eal/linuxapp/eal/eal_pci_vfio_mp_sync.c
lib/librte_eal/linuxapp/eal/eal_thread.c
lib/librte_eal/linuxapp/eal/eal_timer.c
lib/librte_eal/linuxapp/eal/rte_eal_version.map