From: Damjan Marion Date: Mon, 28 Apr 2025 20:36:55 +0000 (+0200) Subject: vlib: remove unnecessary assert X-Git-Tag: v25.10-rc0~52 X-Git-Url: https://gerrit.fd.io/r/gitweb?a=commitdiff_plain;h=6dca5cc3b0f702f3d78c55314a38aec2693995bc;p=vpp.git vlib: remove unnecessary assert All nodes can dispatch to other nodes... Type: improvement Change-Id: I5b2f1bb69e4118d36fe31f0ba5241ff99ac59ae0 Signed-off-by: Damjan Marion --- 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 =