]> git.droids-corp.org - dpdk.git/blobdiff - lib/librte_eal/common/include/rte_lcore.h
eal: apply thread affinity by assigned cpuset
[dpdk.git] / lib / librte_eal / common / include / rte_lcore.h
index 045d4b6a65a8d40c38e91dda37c05f03117f44fd..4165b72ab5c4f36401a3a2e7da71ef0e0db5c4a6 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);
 }
 
 /**