from = vlib_frame_vector_args (frame);
n_left_from = frame->n_vectors;
next_index = node->cached_next_index;
- u32 cpu_index = os_get_cpu_number ();
+ u32 thread_index = vlib_get_thread_index ();
while (n_left_from > 0)
{
/* This increments the SRv6 per LocalSID counters.*/
vlib_increment_combined_counter
(((next0 == SRV6_SAMPLE_LOCALSID_NEXT_ERROR) ? &(sm->sr_ls_invalid_counters) : &(sm->sr_ls_valid_counters)),
- cpu_index,
+ thread_index,
ls0 - sm->localsids,
1, vlib_buffer_length_in_chain (vm, b0));