vlib: introduce lazy next node initialization 96/41496/6
authorMohammed Hawari <[email protected]>
Thu, 29 Aug 2024 12:01:06 +0000 (14:01 +0200)
committerDamjan Marion <[email protected]>
Thu, 12 Sep 2024 10:11:30 +0000 (10:11 +0000)
commit3b5a013103f0eff44afbdc4937407a82931edd00
treedcace32773735e02fb26835f277d85b06b0f5313
parent47968438dc42931952d39300fcc7b5e36239857b
vlib: introduce lazy next node initialization

This change allow a node registration A to name a next node B that does not
exist yet at registration time. When node B is effectively created,
vlib_node_main_lazy_next_update need to be called so that the vlib graph
is updated accordingly. To enable this behavior, node A needs to bear
the new VLIB_NODE_FLAG_ALLOW_LAZY_NEXT_NODES.

Change-Id: I561d3a0de19a0b7bd1045760a2ba8e27d27caa9a
Type: improvement
Signed-off-by: Mohammed Hawari <[email protected]>
src/vlib/main.c
src/vlib/node.c
src/vlib/node.h
src/vlib/node_funcs.h