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
/
ethernet
/
p2p_ethernet_input.c
diff --git
a/src/vnet/ethernet/p2p_ethernet_input.c
b/src/vnet/ethernet/p2p_ethernet_input.c
index
eeff4f0
..
74e3bb8
100644
(file)
--- a/
src/vnet/ethernet/p2p_ethernet_input.c
+++ b/
src/vnet/ethernet/p2p_ethernet_input.c
@@
-63,7
+63,7
@@
static uword
p2p_ethernet_input_node_fn (vlib_main_t * vm,
vlib_node_runtime_t * node, vlib_frame_t * frame)
{
p2p_ethernet_input_node_fn (vlib_main_t * vm,
vlib_node_runtime_t * node, vlib_frame_t * frame)
{
- u32 thread_index = v
lib_get_thread_index ()
;
+ u32 thread_index = v
m->thread_index
;
u32 n_trace = vlib_get_trace_count (vm, node);
u32 n_left_from, *from, *to_next;
u32 next_index;
u32 n_trace = vlib_get_trace_count (vm, node);
u32 n_left_from, *from, *to_next;
u32 next_index;