eal: thread affinity API
authorCunming Liang <cunming.liang@intel.com>
Tue, 17 Feb 2015 02:08:03 +0000 (10:08 +0800)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Tue, 24 Feb 2015 19:22:24 +0000 (20:22 +0100)
commit9e29251b2afa0d3ee45f9851f889522ceba9d950
tree2e912af909b3aeedfdf143ff140b3606361836de
parentef76436c683424e5308b25e1ea1ab50c219e0c84
eal: thread affinity API

1. add two TLS *_socket_id* and *_cpuset*
2. add one internal API, eal_cpu_socket_id/eal_thread_dump_affinity
3. add two public API, rte_thread_set/get_affinity
4. update EAL version map for EAL public API

The API works for both EAL thread and non EAL thread.
When calling rte_thread_set_affinity, the *_socket_id* and
*_cpuset* of calling thread will be updated if the thread
successfully set the cpu affinity.

Signed-off-by: Cunming Liang <cunming.liang@intel.com>
Acked-by: Olivier Matz <olivier.matz@6wind.com>
Acked-by: Konstantin Ananyev <konstantin.ananyev@intel.com>
lib/librte_eal/bsdapp/eal/Makefile
lib/librte_eal/bsdapp/eal/eal_thread.c
lib/librte_eal/bsdapp/eal/rte_eal_version.map
lib/librte_eal/common/eal_common_thread.c [new file with mode: 0644]
lib/librte_eal/common/eal_thread.h
lib/librte_eal/common/include/rte_lcore.h
lib/librte_eal/linuxapp/eal/Makefile
lib/librte_eal/linuxapp/eal/eal_thread.c
lib/librte_eal/linuxapp/eal/rte_eal_version.map