]> git.droids-corp.org - dpdk.git/blobdiff - lib/librte_eal/common/eal_common_thread.c
eal: clean up export of socket id variable
[dpdk.git] / lib / librte_eal / common / eal_common_thread.c
index f4d98928f74a308cdc8434aa9dfdaa9adf273f2b..2405e93fdfd8c9cf79487190bba78e7f17f96d7c 100644 (file)
 
 #include "eal_thread.h"
 
+RTE_DECLARE_PER_LCORE(unsigned , _socket_id);
+
+unsigned rte_socket_id(void)
+{
+       return RTE_PER_LCORE(_socket_id);
+}
+
 int eal_cpuset_socket_id(rte_cpuset_t *cpusetp)
 {
        unsigned cpu = 0;