eal: get socket id from cpu id
authorCunming Liang <cunming.liang@intel.com>
Tue, 17 Feb 2015 02:08:02 +0000 (10:08 +0800)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Tue, 24 Feb 2015 19:22:15 +0000 (20:22 +0100)
commitf8e0f0163abdf566aabf8c28b7670f2fef98f130
tree24bb5ff007d91c34b54b81756e88508e74ecf136
parenta9b1c67a2ce87b24f60927c57522feb97ccbcda5
eal: get socket id from cpu id

It defines eal_cpu_socket_id() which exposing the origin private cpu_socket_id().
The function is only used inside EAL. It returns socket_id of the specified cpu_id.

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/eal_lcore.c
lib/librte_eal/common/eal_thread.h
lib/librte_eal/linuxapp/eal/eal_lcore.c