aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/cnat/cnat_bihash.h
diff options
context:
space:
mode:
authorDave Barach <dave@barachs.net>2021-04-03 08:52:02 -0400
committerMatthew Smith <mgsmith@netgate.com>2021-04-05 14:22:56 +0000
commit106a2158cd591e5042d01c4b51188fe0c4087f27 (patch)
tree861e5b858f3ea454f7e963205126816f7d57ac0d /src/plugins/cnat/cnat_bihash.h
parente2b6736e1f5c9a841e37ea1e0c3db4c1989a10ba (diff)
cnat: explicit BIHASH_USE_HEAP setting
The session db (bihash_40_56_t) was inheriting BIHASH_USE_HEAP=1 from vppinfra/bihash_24_8.h through a convoluted set of #includes. Set BIHASH_USE_HEAP in cnat_bihash.h, to avoid a surprise long after anyone remembers the story. Type: improvement Signed-off-by: Dave Barach <dave@barachs.net> Change-Id: I8aa3be09b306fc99ba0b6baa5096a0a6829a8951
Diffstat (limited to 'src/plugins/cnat/cnat_bihash.h')
-rw-r--r--src/plugins/cnat/cnat_bihash.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/plugins/cnat/cnat_bihash.h b/src/plugins/cnat/cnat_bihash.h
index a148ad57682..c488e61a07d 100644
--- a/src/plugins/cnat/cnat_bihash.h
+++ b/src/plugins/cnat/cnat_bihash.h
@@ -20,12 +20,14 @@
#undef BIHASH_KVP_AT_BUCKET_LEVEL
#undef BIHASH_LAZY_INSTANTIATE
#undef BIHASH_BUCKET_PREFETCH_CACHE_LINES
+#undef BIHASH_USE_HEAP
#define BIHASH_TYPE _40_56
#define BIHASH_KVP_PER_PAGE 2
#define BIHASH_KVP_AT_BUCKET_LEVEL 1
#define BIHASH_LAZY_INSTANTIATE 1
#define BIHASH_BUCKET_PREFETCH_CACHE_LINES 2
+#define BIHASH_USE_HEAP 1
#ifndef __included_bihash_40_56_h__
#define __included_bihash_40_56_h__