summaryrefslogtreecommitdiffstats
path: root/hicn-plugin/src
diff options
context:
space:
mode:
Diffstat (limited to 'hicn-plugin/src')
-rw-r--r--hicn-plugin/src/data_push_node.c2
-rw-r--r--hicn-plugin/src/pcs.h8
2 files changed, 9 insertions, 1 deletions
diff --git a/hicn-plugin/src/data_push_node.c b/hicn-plugin/src/data_push_node.c
index 8f9e137f7..8f9ecbb8e 100644
--- a/hicn-plugin/src/data_push_node.c
+++ b/hicn-plugin/src/data_push_node.c
@@ -128,7 +128,7 @@ hicn_new_data (vlib_main_t * vm, hicn_data_push_runtime_t * rt,
}
pitp = hicn_pit_get_data (nodep);
- hicn_pit_init_data (pitp);
+ hicn_cs_init_data (pitp);
pitp->shared.create_time = tnow;
if (dmsg_lifetime < HICN_PARAM_CS_LIFETIME_MIN
diff --git a/hicn-plugin/src/pcs.h b/hicn-plugin/src/pcs.h
index f87cccf8a..b9b40a3fb 100644
--- a/hicn-plugin/src/pcs.h
+++ b/hicn-plugin/src/pcs.h
@@ -256,6 +256,14 @@ hicn_pit_init_data (hicn_pcs_entry_t * p)
p->u.pit.faces.next_bucket = face_bkt - hicn_face_bucket_pool;
}
+/* Init pit/cs data block (usually inside hash table node) */
+static inline void
+hicn_cs_init_data (hicn_pcs_entry_t * p)
+{
+ p->shared.entry_flags = 0;
+ p->u.pit.faces.n_faces = 0;
+ p->u.pit.faces.is_overflow = 0;
+}
static inline f64