summaryrefslogtreecommitdiffstats
path: root/src/vppinfra
diff options
context:
space:
mode:
authorVijayabhaskar Katamreddy <vkatamre@cisco.com>2020-01-15 13:45:19 -0800
committerAndrew Yourtchenko <ayourtch@gmail.com>2020-08-12 15:59:46 +0000
commit5d3e47cdd8bb13c79aa7948a5d17bd290b8fec0e (patch)
tree30b8e88d42a6b12a1448f7b62a93edfff25496ca /src/vppinfra
parent5aedb02760669324dab585b511907cdb490dbb85 (diff)
vppinfra: fixing compilation issues in 32-bit
Fixing compilation issuues for 32-bit also setting init flag for shm based bihash Type: fix Signed-off-by: Vijayabhaskar Katamreddy <vkatamre@cisco.com> Change-Id: Ic2072c5ba7fc77d061ca9f1b844a71f6e22e58b2 (cherry picked from commit f0bae64f6fd4c410c19f6ece688443f389932688)
Diffstat (limited to 'src/vppinfra')
-rw-r--r--src/vppinfra/bihash_template.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/vppinfra/bihash_template.c b/src/vppinfra/bihash_template.c
index 97c4cd08eb1..de59abe63af 100644
--- a/src/vppinfra/bihash_template.c
+++ b/src/vppinfra/bihash_template.c
@@ -32,7 +32,7 @@ static inline void *BV (alloc_aligned) (BVT (clib_bihash) * h, uword nbytes)
return (void *) (uword) (rv + alloc_arena (h));
}
-void BV (clib_bihash_instantiate) (BVT (clib_bihash) * h)
+static void BV (clib_bihash_instantiate) (BVT (clib_bihash) * h)
{
uword bucket_size;
@@ -185,6 +185,7 @@ void BV (clib_bihash_master_init_svm)
h->freelists = (void *) (freelist_vh->vector_data);
h->fmt_fn = NULL;
+ h->instantiated = 1;
}
void BV (clib_bihash_slave_init_svm)
@@ -269,7 +270,7 @@ never_initialized:
}
}
clib_warning ("Couldn't find hash table %llx on clib_all_bihashes...",
- (u64) h);
+ (u64) (uword) h);
}
static