Code Review
/
vpp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
VPP API: Memory trace
[vpp.git]
/
src
/
vppinfra
/
hash.c
diff --git
a/src/vppinfra/hash.c
b/src/vppinfra/hash.c
index
79103b6
..
abc7c4c
100644
(file)
--- a/
src/vppinfra/hash.c
+++ b/
src/vppinfra/hash.c
@@
-282,6
+282,10
@@
key_sum (hash_t * h, uword key)
sum = string_key_sum (h, key);
break;
sum = string_key_sum (h, key);
break;
+ case KEY_FUNC_MEM:
+ sum = mem_key_sum (h, key);
+ break;
+
default:
sum = h->key_sum (h, key);
break;
default:
sum = h->key_sum (h, key);
break;
@@
-312,6
+316,10
@@
key_equal1 (hash_t * h, uword key1, uword key2, uword e)
e = string_key_equal (h, key1, key2);
break;
e = string_key_equal (h, key1, key2);
break;
+ case KEY_FUNC_MEM:
+ e = mem_key_equal (h, key1, key2);
+ break;
+
default:
e = h->key_equal (h, key1, key2);
break;
default:
e = h->key_equal (h, key1, key2);
break;