eal: relocate per thread symbols to common
authorDavid Marchand <david.marchand@redhat.com>
Mon, 6 Jul 2020 20:52:25 +0000 (22:52 +0200)
committerDavid Marchand <david.marchand@redhat.com>
Wed, 8 Jul 2020 12:39:26 +0000 (14:39 +0200)
commit7afdfac8e6ee2169728cae229664a06f58e9c766
treed13ff159f40f904c88f507e555b3d31797786e07
parent0696ff039c8a15fb4006e7f4662295496ea3fb3b
eal: relocate per thread symbols to common

We have per lcore thread symbols scattered in OS implementations but
common code relies on them.
Move all of them in common.

RTE_PER_LCORE(_socket_id) and RTE_PER_LCORE(_cpuset) have public
accessors and are not exported through the library map, they can be
made static.

Signed-off-by: David Marchand <david.marchand@redhat.com>
Reviewed-by: Olivier Matz <olivier.matz@6wind.com>
Acked-by: Konstantin Ananyev <konstantin.ananyev@intel.com>
lib/librte_eal/common/eal_common_thread.c
lib/librte_eal/freebsd/eal_thread.c
lib/librte_eal/include/rte_lcore.h
lib/librte_eal/linux/eal_thread.c
lib/librte_eal/windows/eal_thread.c