completelly deprecate os_get_cpu_number, replace new occurences
[vpp.git] / src / vppinfra / mhash.c
index c917e16..00b67c4 100644 (file)
@@ -226,7 +226,7 @@ static uword
 mhash_set_tmp_key (mhash_t * h, const void *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];