eal: new function to create control threads
authorOlivier Matz <olivier.matz@6wind.com>
Wed, 29 Nov 2017 09:57:10 +0000 (10:57 +0100)
committerOlivier Matz <olivier.matz@6wind.com>
Fri, 8 Dec 2017 09:51:36 +0000 (10:51 +0100)
commit339341e8e126a34381861b7347a8ad4ffb9cb293
treed4465b6b4c66e6631d02d2babbde6aaf0e532868
parent7e9b25a738dc722c6db43c650311d9908f5bd15d
eal: new function to create control threads

Many parts of dpdk use their own management threads. Introduce a new
wrapper for thread creation that will be extended in next commit to set
the name and affinity.

To be consistent with other DPDK APIs, the return value is negative in
case of error, which was not the case for pthread_create().

Signed-off-by: Olivier Matz <olivier.matz@6wind.com>
lib/librte_eal/common/eal_common_thread.c
lib/librte_eal/common/include/rte_lcore.h
lib/librte_eal/linuxapp/eal/eal_interrupts.c
lib/librte_eal/linuxapp/eal/eal_timer.c
lib/librte_eal/linuxapp/eal/eal_vfio_mp_sync.c
lib/librte_eal/rte_eal_version.map
lib/librte_pdump/rte_pdump.c
lib/librte_vhost/socket.c