FD.io VPP  v18.01-8-g0eacf49
Vector Packet Processing
vlib_node_runtime_t Struct Reference

Public Member Functions

 CLIB_CACHE_LINE_ALIGN_MARK (cacheline0)
 cacheline mark More...
 

Data Fields

vlib_node_function_tfunction
 Node function to call. More...
 
vlib_error_terrors
 Vector of errors for this node. More...
 
u32 clocks_since_last_overflow
 Number of clock cycles. More...
 
u32 max_clock
 Maximum clock cycle for an invocation. More...
 
u32 max_clock_n
 Number of vectors in the recorded max_clock. More...
 
u32 calls_since_last_overflow
 Number of calls. More...
 
u32 vectors_since_last_overflow
 Number of vector elements processed by this node. More...
 
u32 next_frame_index
 Start of next frames for this node. More...
 
u32 node_index
 Node index. More...
 
u32 input_main_loops_per_call
 For input nodes: decremented on each main loop interation until it reaches zero and function is called. More...
 
u32 main_loop_count_last_dispatch
 Saved main loop counter of last dispatch of this node. More...
 
u32 main_loop_vector_stats [2]
 
u16 flags
 Copy of main node flags. More...
 
u16 state
 Input node state. More...
 
u16 n_next_nodes
 
u16 cached_next_index
 Next frame index that vector arguments were last enqueued to last time this node ran. More...
 
u16 thread_index
 thread this node runs on More...
 
u8 runtime_data [0]
 Function dependent node-runtime data. More...
 

Detailed Description

Definition at line 409 of file node.h.

Member Function Documentation

vlib_node_runtime_t::CLIB_CACHE_LINE_ALIGN_MARK ( cacheline0  )

cacheline mark

Field Documentation

u16 vlib_node_runtime_t::cached_next_index

Next frame index that vector arguments were last enqueued to last time this node ran.

Set to zero before first run of this node.

Definition at line 456 of file node.h.

u32 vlib_node_runtime_t::calls_since_last_overflow

Number of calls.

Definition at line 429 of file node.h.

u32 vlib_node_runtime_t::clocks_since_last_overflow

Number of clock cycles.

Definition at line 421 of file node.h.

vlib_error_t* vlib_node_runtime_t::errors

Vector of errors for this node.

Definition at line 415 of file node.h.

u16 vlib_node_runtime_t::flags

Copy of main node flags.

Definition at line 450 of file node.h.

vlib_node_function_t* vlib_node_runtime_t::function

Node function to call.

Definition at line 413 of file node.h.

u32 vlib_node_runtime_t::input_main_loops_per_call

For input nodes: decremented on each main loop interation until it reaches zero and function is called.

Allows some input nodes to be called more than others.

Definition at line 439 of file node.h.

u32 vlib_node_runtime_t::main_loop_count_last_dispatch

Saved main loop counter of last dispatch of this node.

Definition at line 445 of file node.h.

u32 vlib_node_runtime_t::main_loop_vector_stats[2]

Definition at line 448 of file node.h.

u32 vlib_node_runtime_t::max_clock

Maximum clock cycle for an invocation.

Definition at line 423 of file node.h.

u32 vlib_node_runtime_t::max_clock_n

Number of vectors in the recorded max_clock.

Definition at line 426 of file node.h.

u16 vlib_node_runtime_t::n_next_nodes

Definition at line 454 of file node.h.

u32 vlib_node_runtime_t::next_frame_index

Start of next frames for this node.

Definition at line 434 of file node.h.

u32 vlib_node_runtime_t::node_index

Node index.

Definition at line 437 of file node.h.

u8 vlib_node_runtime_t::runtime_data[0]

Function dependent node-runtime data.

This data is thread local, and it is not cloned from main thread. It needs to be initialized for each thread before it is used unless runtime_data template exists in vlib_node_t.

Definition at line 464 of file node.h.

u16 vlib_node_runtime_t::state

Input node state.

Definition at line 452 of file node.h.

u16 vlib_node_runtime_t::thread_index

thread this node runs on

Definition at line 462 of file node.h.

u32 vlib_node_runtime_t::vectors_since_last_overflow

Number of vector elements processed by this node.

Definition at line 431 of file node.h.


The documentation for this struct was generated from the following file: