FD.io VPP  v21.06-3-gbb25fbf28
Vector Packet Processing
interface_stats.c File Reference
+ Include dependency graph for interface_stats.c:

Go to the source code of this file.

Macros

#define inc_counter(ctype, rx_tx)
 

Functions

int vnet_sw_interface_stats_collect_enable_disable (u32 sw_if_index, u8 enable)
 
static u8format_stats_collect_trace (u8 *s, va_list *args)
 
static_always_inline uword stats_collect_inline (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame, vlib_rx_or_tx_t rxtx)
 
VLIB_NODE_FN() stats_collect_rx_node (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
 
VLIB_NODE_FN() stats_collect_tx_node (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
 
 VNET_FEATURE_INIT (stats_collect_rx_node, static)
 
 VNET_FEATURE_INIT (stats_collect_tx_node, static)
 
static clib_error_tstats_collect_init (vlib_main_t *vm)
 

Variables

vlib_node_registration_t stats_collect_rx_node
 (constructor) VLIB_REGISTER_NODE (stats_collect_rx_node) More...
 
vlib_node_registration_t stats_collect_tx_node
 (constructor) VLIB_REGISTER_NODE (stats_collect_tx_node) More...
 

Macro Definition Documentation

◆ inc_counter

#define inc_counter (   ctype,
  rx_tx 
)
Value:
{ \
}

Definition at line 69 of file interface_stats.c.

Function Documentation

◆ format_stats_collect_trace()

static u8* format_stats_collect_trace ( u8 s,
va_list *  args 
)
static

Definition at line 61 of file interface_stats.c.

◆ stats_collect_init()

static clib_error_t* stats_collect_init ( vlib_main_t vm)
static

Definition at line 207 of file interface_stats.c.

◆ stats_collect_inline()

static_always_inline uword stats_collect_inline ( vlib_main_t vm,
vlib_node_runtime_t node,
vlib_frame_t frame,
vlib_rx_or_tx_t  rxtx 
)

Definition at line 74 of file interface_stats.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ stats_collect_rx_node()

VLIB_NODE_FN() stats_collect_rx_node ( vlib_main_t vm,
vlib_node_runtime_t node,
vlib_frame_t frame 
)

Definition at line 159 of file interface_stats.c.

+ Here is the call graph for this function:

◆ stats_collect_tx_node()

VLIB_NODE_FN() stats_collect_tx_node ( vlib_main_t vm,
vlib_node_runtime_t node,
vlib_frame_t frame 
)

Definition at line 166 of file interface_stats.c.

+ Here is the call graph for this function:

◆ VNET_FEATURE_INIT() [1/2]

VNET_FEATURE_INIT ( stats_collect_rx_node  ,
static   
)

◆ VNET_FEATURE_INIT() [2/2]

VNET_FEATURE_INIT ( stats_collect_tx_node  ,
static   
)

◆ vnet_sw_interface_stats_collect_enable_disable()

int vnet_sw_interface_stats_collect_enable_disable ( u32  sw_if_index,
u8  enable 
)

Definition at line 25 of file interface_stats.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Variable Documentation

◆ stats_collect_rx_node

vlib_node_registration_t stats_collect_rx_node
Initial value:
= {
.vector_size = sizeof (u32),
.format_trace = format_stats_collect_trace,
.n_errors = 0,
.n_next_nodes = 0,
.name = "stats-collect-rx",
}

(constructor) VLIB_REGISTER_NODE (stats_collect_rx_node)

Definition at line 174 of file interface_stats.c.

◆ stats_collect_tx_node

vlib_node_registration_t stats_collect_tx_node
Initial value:
= {
.vector_size = sizeof (u32),
.format_trace = format_stats_collect_trace,
.n_errors = 0,
.n_next_nodes = 0,
.name = "stats-collect-tx",
}

(constructor) VLIB_REGISTER_NODE (stats_collect_tx_node)

Definition at line 183 of file interface_stats.c.

name
string name[64]
Definition: fib.api:25
VLIB_NODE_TYPE_INTERNAL
@ VLIB_NODE_TYPE_INTERNAL
Definition: node.h:72
format_stats_collect_trace
static u8 * format_stats_collect_trace(u8 *s, va_list *args)
Definition: interface_stats.c:61
u32
unsigned int u32
Definition: types.h:88
type
vl_api_fib_path_type_t type
Definition: fib_types.api:123