Code Review
/
vpp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
| inline |
side by side
Use thread local storage for thread index
[vpp.git]
/
src
/
vnet
/
tcp
/
tcp_debug.h
diff --git
a/src/vnet/tcp/tcp_debug.h
b/src/vnet/tcp/tcp_debug.h
index
0090e15
..
eaca672
100644
(file)
--- a/
src/vnet/tcp/tcp_debug.h
+++ b/
src/vnet/tcp/tcp_debug.h
@@
-343,7
+343,7
@@
typedef enum _tcp_dbg_evt
} \
else \
{ \
- u32 _thread_index =
os_get_cpu_number ();
\
+ u32 _thread_index =
vlib_get_thread_index ();
\
_tc = tcp_connection_get (_tc_index, _thread_index); \
} \
ELOG_TYPE_DECLARE (_e) = \