vlib: add new node type - SCHED nodes 37/42537/3
authorDamjan Marion <damarion@cisco.com>
Mon, 17 Mar 2025 14:51:59 +0000 (15:51 +0100)
committerAndrew Yourtchenko <ayourtch@gmail.com>
Wed, 26 Mar 2025 13:24:19 +0000 (13:24 +0000)
commit8a5add5c00479d337e4d3428d7c98de4d843c0d3
treee9c9b4e0abd0f0a08ed2019a1842f7c4302f5ba0
parent27c80923d0cc941c3d6954e2339b0ec75bcf18f9
vlib: add new node type - SCHED nodes

SCHED nodes are new type of nodes, similar to input nodes but they are
scheduled to be run from timing wheel.
SCHED nodes work both on main and worker threads.

Typically SCHED nodes can be scheduled to be run in two ways:
 - vlib_node_set_interrupt_pending() - from any thread, run ASAP
 - vlib_node_schedule() - from own thread, afer sepcific interval

Type: feature
Change-Id: Id29a66532328d9b3c454e65d09495e8fb479cedf
Signed-off-by: Damjan Marion <damarion@cisco.com>
src/vlib/main.c
src/vlib/main.h
src/vlib/node.c
src/vlib/node.h
src/vlib/node_cli.c
src/vlib/node_funcs.h
src/vlib/threads.c
src/vlib/time.h
src/vlib/unix/input.c