From 508498f74d2df98e70a961d030cf0128a63a926d Mon Sep 17 00:00:00 2001 From: Dave Barach Date: Thu, 19 Jul 2018 12:11:16 -0400 Subject: Fine-grained add / delete locking Add a bucket-level lock bit. Use a spinlock only when actually allocating, freeing, or splitting a bucket. Should improve multi-thread add/del performance. Change-Id: I3e40e2a8371685457f340d6584dea14e3207f2b0 Signed-off-by: Dave Barach --- src/vppinfra/bihash_16_8.h | 2 -- 1 file changed, 2 deletions(-) (limited to 'src/vppinfra/bihash_16_8.h') diff --git a/src/vppinfra/bihash_16_8.h b/src/vppinfra/bihash_16_8.h index 6076487934d..5949e2b3549 100644 --- a/src/vppinfra/bihash_16_8.h +++ b/src/vppinfra/bihash_16_8.h @@ -13,12 +13,10 @@ * limitations under the License. */ #undef BIHASH_TYPE -#undef BIHASH_KVP_CACHE_SIZE #undef BIHASH_KVP_PER_PAGE #define BIHASH_TYPE _16_8 #define BIHASH_KVP_PER_PAGE 4 -#define BIHASH_KVP_CACHE_SIZE 0 #ifndef __included_bihash_16_8_h__ #define __included_bihash_16_8_h__ -- cgit 1.2.3-korg