bihash: add support for reuse of expired entry when bucket is full (VPP-1272) 88/14388/2
authorMatus Fabian <matfabia@cisco.com>
Tue, 21 Aug 2018 10:15:50 +0000 (03:15 -0700)
committerDave Barach <openvpp@barachs.net>
Wed, 22 Aug 2018 15:14:29 +0000 (15:14 +0000)
commit828d27ea0edb97280a0164041a286973fa74b5a2
tree00c318426c5ccd916bbe1da1a8814a2d7ccc48fe
parent69ce30d6ab7c6afba475b25bb32542b1e955b91d
bihash: add support for reuse of expired entry when bucket is full (VPP-1272)

Applications such as NAT that dynamically create entries require these entries to expire after some time.
Bihash user can now lazily delete expired entries. When inserting and bucket is full, expired entry is overwritten.

Change-Id: I6852305df399b546159407f1729c856afde5a634
Signed-off-by: Matus Fabian <matfabia@cisco.com>
src/vppinfra/bihash_template.c
src/vppinfra/bihash_template.h
src/vppinfra/test_bihash_template.c