FD.io VPP  v18.07-rc0-415-g6c78436
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)
 
static uword stats_collect_rx (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
 
static uword stats_collect_tx (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
 
 VLIB_NODE_FUNCTION_MULTIARCH (stats_collect_rx_node, stats_collect_rx)
 
 VLIB_NODE_FUNCTION_MULTIARCH (stats_collect_tx_node, stats_collect_tx)
 
 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

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

Definition at line 67 of file interface_stats.c.

Function Documentation

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

Definition at line 59 of file interface_stats.c.

static clib_error_t* stats_collect_init ( vlib_main_t vm)
static

Definition at line 210 of file interface_stats.c.

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 72 of file interface_stats.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static uword stats_collect_rx ( vlib_main_t vm,
vlib_node_runtime_t node,
vlib_frame_t frame 
)
static

Definition at line 158 of file interface_stats.c.

+ Here is the call graph for this function:

static uword stats_collect_tx ( vlib_main_t vm,
vlib_node_runtime_t node,
vlib_frame_t frame 
)
static

Definition at line 165 of file interface_stats.c.

+ Here is the call graph for this function:

VLIB_NODE_FUNCTION_MULTIARCH ( stats_collect_rx_node  ,
stats_collect_rx   
)
VLIB_NODE_FUNCTION_MULTIARCH ( stats_collect_tx_node  ,
stats_collect_tx   
)
VNET_FEATURE_INIT ( stats_collect_rx_node  ,
static   
)
VNET_FEATURE_INIT ( stats_collect_tx_node  ,
static   
)
int vnet_sw_interface_stats_collect_enable_disable ( u32  sw_if_index,
u8  enable 
)

Definition at line 24 of file interface_stats.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Variable Documentation

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,
.function = stats_collect_rx,
.name = "stats-collect-rx",
}
static u8 * format_stats_collect_trace(u8 *s, va_list *args)
unsigned int u32
Definition: types.h:88
static uword stats_collect_rx(vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)

(constructor) VLIB_REGISTER_NODE (stats_collect_rx_node)

Definition at line 172 of file interface_stats.c.

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,
.function = stats_collect_tx,
.name = "stats-collect-tx",
}
static u8 * format_stats_collect_trace(u8 *s, va_list *args)
unsigned int u32
Definition: types.h:88
static uword stats_collect_tx(vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)

(constructor) VLIB_REGISTER_NODE (stats_collect_tx_node)

Definition at line 182 of file interface_stats.c.