summaryrefslogtreecommitdiffstats
path: root/src/vnet/replication.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/vnet/replication.h')
-rw-r--r--src/vnet/replication.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vnet/replication.h b/src/vnet/replication.h
index 5dc554c97b3..ce4b3ff11d0 100644
--- a/src/vnet/replication.h
+++ b/src/vnet/replication.h
@@ -100,7 +100,7 @@ replication_get_ctx (vlib_buffer_t * b0)
replication_main_t *rm = &replication_main;
return replication_is_recycled (b0) ?
- pool_elt_at_index (rm->contexts[os_get_cpu_number ()],
+ pool_elt_at_index (rm->contexts[vlib_get_thread_index ()],
b0->recycle_count) : 0;
}