From 2e1756de877df622680b05be421cb27a884db167 Mon Sep 17 00:00:00 2001 From: Alberto Compagno Date: Fri, 24 May 2019 16:33:56 +0200 Subject: [HICN-197] Supporting multiple local faces for the same prefix. Fixed buffer deallocation when data are pushed from the application. Change-Id: Ibc9625e420d0c8579be3d7f1310a08a5e37f765a Signed-off-by: Alberto Compagno --- hicn-plugin/src/data_push_node.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'hicn-plugin/src/data_push_node.c') diff --git a/hicn-plugin/src/data_push_node.c b/hicn-plugin/src/data_push_node.c index 8f9ecbb8e..ff28b4dea 100644 --- a/hicn-plugin/src/data_push_node.c +++ b/hicn-plugin/src/data_push_node.c @@ -141,21 +141,16 @@ hicn_new_data (vlib_main_t * vm, hicn_data_push_runtime_t * rt, /* Store the original packet buffer in the CS node */ pitp->u.cs.cs_pkt_buf = vlib_get_buffer_index (vm, b0); - pitp->u.cs.cs_rxface = hicnb0->face_dpo_id; - /* Set up the hash node and insert it */ hicn_hashtb_init_node (rt->pitcs->pcs_table, nodep, nameptr, namelen); - nodep->hn_flags |= HICN_HASH_NODE_CS_FLAGS; - pitp->shared.entry_flags |= HICN_PCS_ENTRY_CS_FLAG; - hicn_hash_entry_t *hash_entry; ret = hicn_pcs_cs_insert_update (vm, rt->pitcs, pitp, nodep, &hash_entry, hicnb0->name_hash, &node_id0, &dpo_ctx_id0, &vft_id0, &is_cs0, &hash_entry_id, &bucket_id, - &bucket_is_overflow); + &bucket_is_overflow, &(hicnb0->face_dpo_id)); if (ret != HICN_ERROR_NONE) { @@ -177,7 +172,6 @@ hicn_new_data (vlib_main_t * vm, hicn_data_push_runtime_t * rt, } else { - hash_entry->he_flags |= HICN_HASH_ENTRY_FLAG_CS_ENTRY; prep_buffer_for_cs (vm, b0, isv6); } } -- cgit 1.2.3-korg