From 6dca5cc3b0f702f3d78c55314a38aec2693995bc Mon Sep 17 00:00:00 2001 From: Damjan Marion Date: Mon, 28 Apr 2025 22:36:55 +0200 Subject: [PATCH] vlib: remove unnecessary assert All nodes can dispatch to other nodes... Type: improvement Change-Id: I5b2f1bb69e4118d36fe31f0ba5241ff99ac59ae0 Signed-off-by: Damjan Marion --- src/vlib/main.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/vlib/main.c b/src/vlib/main.c index ab8c54f4cec..ffa4a696422 100644 --- a/src/vlib/main.c +++ b/src/vlib/main.c @@ -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 = -- 2.16.6