summaryrefslogtreecommitdiffstats
path: root/src/vppinfra/bihash_24_8.h
diff options
context:
space:
mode:
authorDave Barach <dave@barachs.net>2018-07-19 12:11:16 -0400
committerDamjan Marion <dmarion@me.com>2018-07-20 17:38:35 +0000
commit508498f74d2df98e70a961d030cf0128a63a926d (patch)
treec2b9b8ddf109cc9086ac39adac812d677a58e578 /src/vppinfra/bihash_24_8.h
parent13637632b87938a055618f17ed21b2a54b02459d (diff)
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 <dave@barachs.net>
Diffstat (limited to 'src/vppinfra/bihash_24_8.h')
-rw-r--r--src/vppinfra/bihash_24_8.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/vppinfra/bihash_24_8.h b/src/vppinfra/bihash_24_8.h
index dcce2a21259..c028352d0e9 100644
--- a/src/vppinfra/bihash_24_8.h
+++ b/src/vppinfra/bihash_24_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 _24_8
#define BIHASH_KVP_PER_PAGE 4
-#define BIHASH_KVP_CACHE_SIZE 0
#ifndef __included_bihash_24_8_h__
#define __included_bihash_24_8_h__