diff options
Diffstat (limited to 'src/vppinfra/mhash.h')
-rw-r--r-- | src/vppinfra/mhash.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vppinfra/mhash.h b/src/vppinfra/mhash.h index 102adf4eb83..7eb1918384e 100644 --- a/src/vppinfra/mhash.h +++ b/src/vppinfra/mhash.h @@ -93,7 +93,7 @@ mhash_key_to_mem (mhash_t * h, uword key) { u8 *key_tmp; - int my_cpu = os_get_cpu_number (); + int my_cpu = os_get_thread_index (); vec_validate (h->key_tmps, my_cpu); key_tmp = h->key_tmps[my_cpu]; return key_tmp; |