From 8129b8ce13febec6730fa48abbe6d3fcae3bc27f Mon Sep 17 00:00:00 2001 From: Alberto Compagno Date: Wed, 5 Jun 2019 17:50:18 +0200 Subject: [HICN-211] Missing parentesis on vlib_validate_buffer_enqueue_x2 was causing a priority problem between * and [] Change-Id: I423e58bc91db9dc16a75bdc8065a2740d0160c1d Signed-off-by: Alberto Compagno --- hicn-plugin/src/data_fwd_node.c | 2 +- hicn-plugin/src/pcs.h | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/hicn-plugin/src/data_fwd_node.c b/hicn-plugin/src/data_fwd_node.c index fe4155958..53308a49d 100644 --- a/hicn-plugin/src/data_fwd_node.c +++ b/hicn-plugin/src/data_fwd_node.c @@ -485,7 +485,7 @@ hicn_satisfy_faces (vlib_main_t * vm, u32 bi0, sizeof (t->packet_data)); } vlib_validate_buffer_enqueue_x2 (vm, node, *next_index, - *to_next, *n_left_to_next, + (*to_next), *n_left_to_next, hi0, hi1, next0, next1); } diff --git a/hicn-plugin/src/pcs.h b/hicn-plugin/src/pcs.h index 491476221..28f9c3c37 100644 --- a/hicn-plugin/src/pcs.h +++ b/hicn-plugin/src/pcs.h @@ -356,8 +356,6 @@ hicn_pcs_delete_internal (hicn_pit_cs_t * pitcs, if (hash_entry->he_flags & HICN_HASH_ENTRY_FLAG_CS_ENTRY) { pitcs->pcs_cs_dealloc++; - vlib_buffer_t *b0 = vlib_get_buffer (vm, pcs->u.cs.cs_pkt_buf); - ASSERT(b0->ref_count == 1); /* Free any associated packet buffer */ vlib_buffer_free_one (vm, pcs->u.cs.cs_pkt_buf); pcs->u.cs.cs_pkt_buf = ~0; -- cgit 1.2.3-korg