Code Review
/
vpp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
| inline |
side by side
completelly deprecate os_get_cpu_number, replace new occurences
[vpp.git]
/
src
/
vppinfra
/
mhash.c
diff --git
a/src/vppinfra/mhash.c
b/src/vppinfra/mhash.c
index
c917e16
..
00b67c4
100644
(file)
--- a/
src/vppinfra/mhash.c
+++ b/
src/vppinfra/mhash.c
@@
-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];