aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordongjuan <dong.juan1@zte.com.cn>2017-09-07 14:58:56 +0800
committerDave Wallace <dwallacelf@gmail.com>2017-09-08 18:19:28 +0000
commit01e078fff983e89f1b402988473960d322d2b4a0 (patch)
treec007cfd6af63b492f0053c552e229a0a4f8485b9
parent555d92030142ad318049011477a99d7064bd3738 (diff)
Initialize ip4_reass_lock of map_main to zero (VPP-975)
Change-Id: I0f58100a944e36f5b530101178303d4595b3207f Signed-off-by: dongjuan <dong.juan1@zte.com.cn>
-rw-r--r--src/vnet/map/map.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/vnet/map/map.c b/src/vnet/map/map.c
index fa13588f..0c8cd6cd 100644
--- a/src/vnet/map/map.c
+++ b/src/vnet/map/map.c
@@ -2241,6 +2241,7 @@ map_init (vlib_main_t * vm)
mm->ip4_reass_pool = 0;
mm->ip4_reass_lock =
clib_mem_alloc_aligned (CLIB_CACHE_LINE_BYTES, CLIB_CACHE_LINE_BYTES);
+ *mm->ip4_reass_lock = 0;
mm->ip4_reass_conf_ht_ratio = MAP_IP4_REASS_HT_RATIO_DEFAULT;
mm->ip4_reass_conf_lifetime_ms = MAP_IP4_REASS_LIFETIME_DEFAULT;
mm->ip4_reass_conf_pool_size = MAP_IP4_REASS_POOL_SIZE_DEFAULT;
@@ -2256,6 +2257,7 @@ map_init (vlib_main_t * vm)
mm->ip6_reass_pool = 0;
mm->ip6_reass_lock =
clib_mem_alloc_aligned (CLIB_CACHE_LINE_BYTES, CLIB_CACHE_LINE_BYTES);
+ *mm->ip6_reass_lock = 0;
mm->ip6_reass_conf_ht_ratio = MAP_IP6_REASS_HT_RATIO_DEFAULT;
mm->ip6_reass_conf_lifetime_ms = MAP_IP6_REASS_LIFETIME_DEFAULT;
mm->ip6_reass_conf_pool_size = MAP_IP6_REASS_POOL_SIZE_DEFAULT;