diff options
author | 2019-05-19 11:46:19 +0200 | |
---|---|---|
committer | 2019-05-19 11:46:19 +0200 | |
commit | e5d00b3fdb6294cfa0e65082885575029a3b5b8b (patch) | |
tree | 330b3138463b2ba6a5464ae04dde8b8dd4b025b5 /hicn-plugin/src/pcs.h | |
parent | c4ead399d98d0f9084d6be1c3a44e27e8158b26a (diff) |
[HICN-197] Reworked PIT/CS entry initialization to correctly initialize it when data are pushed to the CS from a local application.
Change-Id: I64a2bab413e74460b048f7c716630d9fcd5200cc
Signed-off-by: Alberto Compagno <acompagn+fdio@cisco.com>
Diffstat (limited to 'hicn-plugin/src/pcs.h')
-rw-r--r-- | hicn-plugin/src/pcs.h | 8 |
1 files changed, 8 insertions, 0 deletions
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 |