Code Review
/
vpp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
avoid using thread local storage for thread index
[vpp.git]
/
src
/
vnet
/
srv6
/
sr_localsid.c
diff --git
a/src/vnet/srv6/sr_localsid.c
b/src/vnet/srv6/sr_localsid.c
index
09c336e
..
6b1724d
100755
(executable)
--- a/
src/vnet/srv6/sr_localsid.c
+++ b/
src/vnet/srv6/sr_localsid.c
@@
-887,7
+887,7
@@
sr_localsid_d_fn (vlib_main_t * vm, vlib_node_runtime_t * node,
from = vlib_frame_vector_args (from_frame);
n_left_from = from_frame->n_vectors;
next_index = node->cached_next_index;
from = vlib_frame_vector_args (from_frame);
n_left_from = from_frame->n_vectors;
next_index = node->cached_next_index;
- u32 thread_index = v
lib_get_thread_index ()
;
+ u32 thread_index = v
m->thread_index
;
while (n_left_from > 0)
{
while (n_left_from > 0)
{
@@
-1190,7
+1190,7
@@
sr_localsid_fn (vlib_main_t * vm, vlib_node_runtime_t * node,
from = vlib_frame_vector_args (from_frame);
n_left_from = from_frame->n_vectors;
next_index = node->cached_next_index;
from = vlib_frame_vector_args (from_frame);
n_left_from = from_frame->n_vectors;
next_index = node->cached_next_index;
- u32 thread_index = v
lib_get_thread_index ()
;
+ u32 thread_index = v
m->thread_index
;
while (n_left_from > 0)
{
while (n_left_from > 0)
{