vlib: remove unnecessary assert 09/42909/1
authorDamjan Marion <[email protected]>
Mon, 28 Apr 2025 20:36:55 +0000 (22:36 +0200)
committerDamjan Marion <[email protected]>
Mon, 28 Apr 2025 20:38:30 +0000 (22:38 +0200)
All nodes can dispatch to other nodes...

Type: improvement
Change-Id: I5b2f1bb69e4118d36fe31f0ba5241ff99ac59ae0
Signed-off-by: Damjan Marion <[email protected]>
src/vlib/main.c

index ab8c54f..ffa4a69 100644 (file)
@@ -257,11 +257,6 @@ vlib_next_frame_change_ownership (vlib_main_t * vm,
 
   node = vec_elt (nm->nodes, node_runtime->node_index);
 
-  /* Only internal & input nodes are allowed to call other nodes. */
-  ASSERT (node->type == VLIB_NODE_TYPE_INTERNAL
-         || node->type == VLIB_NODE_TYPE_INPUT
-         || node->type == VLIB_NODE_TYPE_PROCESS);
-
   ASSERT (vec_len (node->next_nodes) == node_runtime->n_next_nodes);
 
   next_frame =