diff options
author | Dave Barach <dave@barachs.net> | 2018-07-19 12:11:16 -0400 |
---|---|---|
committer | Damjan Marion <dmarion@me.com> | 2018-07-20 17:38:35 +0000 |
commit | 508498f74d2df98e70a961d030cf0128a63a926d (patch) | |
tree | c2b9b8ddf109cc9086ac39adac812d677a58e578 /src/vppinfra/bihash_vec8_8.h | |
parent | 13637632b87938a055618f17ed21b2a54b02459d (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_vec8_8.h')
-rw-r--r-- | src/vppinfra/bihash_vec8_8.h | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/vppinfra/bihash_vec8_8.h b/src/vppinfra/bihash_vec8_8.h index cc78f1d51d7..2394600ba7c 100644 --- a/src/vppinfra/bihash_vec8_8.h +++ b/src/vppinfra/bihash_vec8_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 _vec8_8 #define BIHASH_KVP_PER_PAGE 4 -#define BIHASH_KVP_CACHE_SIZE 0 #ifndef __included_bihash_vec8_8_h__ #define __included_bihash_vec8_8_h__ |