eal: apply thread affinity by assigned cpuset
[dpdk.git] / lib / librte_eal / common / include / rte_lcore.h
index 045d4b6..4165b72 100644 (file)
@@ -148,7 +148,7 @@ rte_lcore_index(int lcore_id)
 static inline unsigned
 rte_socket_id(void)
 {
-       return lcore_config[rte_lcore_id()].socket_id;
+       return RTE_PER_LCORE(_socket_id);
 }
 
 /**