git.droids-corp.org
/
dpdk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
net/mlx5: handle Rx CQE compression
[dpdk.git]
/
lib
/
librte_eal
/
common
/
eal_common_thread.c
diff --git
a/lib/librte_eal/common/eal_common_thread.c
b/lib/librte_eal/common/eal_common_thread.c
index
f4d9892
..
2405e93
100644
(file)
--- a/
lib/librte_eal/common/eal_common_thread.c
+++ b/
lib/librte_eal/common/eal_common_thread.c
@@
-46,6
+46,13
@@
#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;