FD.io VPP  v16.12-rc0-308-g931be3a
Vector Packet Processing
interface_output.c File Reference
+ Include dependency graph for interface_output.c:

Go to the source code of this file.

Data Structures

struct  interface_output_trace_t
 

Enumerations

enum  vnet_error_disposition_t { VNET_ERROR_DISPOSITION_DROP, VNET_ERROR_DISPOSITION_PUNT, VNET_ERROR_N_DISPOSITION }
 

Functions

u8format_vnet_interface_output_trace (u8 *s, va_list *va)
 
static void vnet_interface_output_trace (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame, uword n_buffers)
 
static never_inline u32 slow_path (vlib_main_t *vm, u32 bi, vlib_buffer_t *b, u32 n_left_to_tx, u32 *to_tx, u32 *n_slow_bytes_result)
 
static_always_inline void incr_output_stats (vnet_main_t *vnm, u32 cpu_index, u32 length, u32 sw_if_index, u32 *last_sw_if_index, u32 *n_packets, u32 *n_bytes)
 
uword vnet_interface_output_node (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
 
 VLIB_NODE_FUNCTION_MULTIARCH_CLONE (vnet_interface_output_node)
 
 CLIB_MULTIARCH_SELECT_FN (vnet_interface_output_node)
 
static uword vnet_interface_output_node_no_flatten_inline (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame, int with_features)
 
uword vnet_interface_output_node_no_flatten (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
 
 VLIB_NODE_FUNCTION_MULTIARCH_CLONE (vnet_interface_output_node_no_flatten)
 
 CLIB_MULTIARCH_SELECT_FN (vnet_interface_output_node_no_flatten)
 
static uword vnet_per_buffer_interface_output (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
 
static u32 counter_index (vlib_main_t *vm, vlib_error_t e)
 
static u8format_vnet_error_trace (u8 *s, va_list *va)
 
static void trace_errors_with_buffers (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
 
static u8validate_error (vlib_main_t *vm, vlib_error_t *e, u32 index)
 
static u8validate_error_frame (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *f)
 
static void do_packet (vlib_main_t *vm, vlib_error_t a)
 
static_always_inline uword process_drop_punt (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame, vnet_error_disposition_t disposition)
 
static void pcap_drop_trace (vlib_main_t *vm, vnet_interface_main_t *im, vlib_frame_t *f)
 
void vnet_pcap_drop_trace_filter_add_del (u32 error_index, int is_add)
 
static uword process_drop (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
 
static uword process_punt (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
 
 VLIB_NODE_FUNCTION_MULTIARCH (drop_buffers, process_drop)
 
 VLIB_NODE_FUNCTION_MULTIARCH (punt_buffers, process_punt)
 
 VLIB_NODE_FUNCTION_MULTIARCH (vnet_per_buffer_interface_output_node, vnet_per_buffer_interface_output)
 
clib_error_tvnet_per_buffer_interface_output_hw_interface_add_del (vnet_main_t *vnm, u32 hw_if_index, u32 is_create)
 
 VNET_HW_INTERFACE_ADD_DEL_FUNCTION (vnet_per_buffer_interface_output_hw_interface_add_del)
 
static clib_error_tpcap_drop_trace_command_fn (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 

Variables

static vlib_node_registration_t drop_buffers
 (constructor) VLIB_REGISTER_NODE (drop_buffers) More...
 
static vlib_node_registration_t punt_buffers
 (constructor) VLIB_REGISTER_NODE (punt_buffers) More...
 
static vlib_node_registration_t vnet_per_buffer_interface_output_node
 (constructor) VLIB_REGISTER_NODE (vnet_per_buffer_interface_output_node) More...
 
static vlib_cli_command_t pcap_trace_command
 (constructor) VLIB_CLI_COMMAND (pcap_trace_command) More...
 

Enumeration Type Documentation

Enumerator
VNET_ERROR_DISPOSITION_DROP 
VNET_ERROR_DISPOSITION_PUNT 
VNET_ERROR_N_DISPOSITION 

Definition at line 869 of file interface_output.c.

Function Documentation

CLIB_MULTIARCH_SELECT_FN ( vnet_interface_output_node  )

+ Here is the caller graph for this function:

CLIB_MULTIARCH_SELECT_FN ( vnet_interface_output_node_no_flatten  )
static u32 counter_index ( vlib_main_t vm,
vlib_error_t  e 
)
inlinestatic

Definition at line 738 of file interface_output.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static void do_packet ( vlib_main_t vm,
vlib_error_t  a 
)
inlinestatic

Definition at line 877 of file interface_output.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static u8* format_vnet_error_trace ( u8 s,
va_list *  va 
)
static

Definition at line 755 of file interface_output.c.

+ Here is the call graph for this function:

u8* format_vnet_interface_output_trace ( u8 s,
va_list *  va 
)

Definition at line 50 of file interface_output.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static_always_inline void incr_output_stats ( vnet_main_t vnm,
u32  cpu_index,
u32  length,
u32  sw_if_index,
u32 last_sw_if_index,
u32 n_packets,
u32 n_bytes 
)

Definition at line 182 of file interface_output.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static void pcap_drop_trace ( vlib_main_t vm,
vnet_interface_main_t im,
vlib_frame_t f 
)
inlinestatic

Definition at line 1080 of file interface_output.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static clib_error_t* pcap_drop_trace_command_fn ( vlib_main_t vm,
unformat_input_t input,
vlib_cli_command_t cmd 
)
static

Definition at line 1224 of file interface_output.c.

+ Here is the call graph for this function:

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

Definition at line 1146 of file interface_output.c.

+ Here is the call graph for this function:

static_always_inline uword process_drop_punt ( vlib_main_t vm,
vlib_node_runtime_t node,
vlib_frame_t frame,
vnet_error_disposition_t  disposition 
)

Definition at line 886 of file interface_output.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

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

Definition at line 1158 of file interface_output.c.

+ Here is the call graph for this function:

static never_inline u32 slow_path ( vlib_main_t vm,
u32  bi,
vlib_buffer_t b,
u32  n_left_to_tx,
u32 to_tx,
u32 n_slow_bytes_result 
)
static

Definition at line 141 of file interface_output.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static void trace_errors_with_buffers ( vlib_main_t vm,
vlib_node_runtime_t node,
vlib_frame_t frame 
)
static

Definition at line 772 of file interface_output.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static u8* validate_error ( vlib_main_t vm,
vlib_error_t e,
u32  index 
)
static

Definition at line 831 of file interface_output.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static u8* validate_error_frame ( vlib_main_t vm,
vlib_node_runtime_t node,
vlib_frame_t f 
)
static

Definition at line 850 of file interface_output.c.

+ Here is the call graph for this function:

VLIB_NODE_FUNCTION_MULTIARCH ( drop_buffers  ,
process_drop   
)
VLIB_NODE_FUNCTION_MULTIARCH ( punt_buffers  ,
process_punt   
)
VLIB_NODE_FUNCTION_MULTIARCH_CLONE ( vnet_interface_output_node  )

+ Here is the caller graph for this function:

VLIB_NODE_FUNCTION_MULTIARCH_CLONE ( vnet_interface_output_node_no_flatten  )
VNET_HW_INTERFACE_ADD_DEL_FUNCTION ( vnet_per_buffer_interface_output_hw_interface_add_del  )

+ Here is the caller graph for this function:

uword vnet_interface_output_node ( vlib_main_t vm,
vlib_node_runtime_t node,
vlib_frame_t frame 
)

Definition at line 216 of file interface_output.c.

+ Here is the call graph for this function:

uword vnet_interface_output_node_no_flatten ( vlib_main_t vm,
vlib_node_runtime_t node,
vlib_frame_t frame 
)

Definition at line 620 of file interface_output.c.

+ Here is the call graph for this function:

static uword vnet_interface_output_node_no_flatten_inline ( vlib_main_t vm,
vlib_node_runtime_t node,
vlib_frame_t frame,
int  with_features 
)
inlinestatic

Definition at line 404 of file interface_output.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static void vnet_interface_output_trace ( vlib_main_t vm,
vlib_node_runtime_t node,
vlib_frame_t frame,
uword  n_buffers 
)
static

Definition at line 75 of file interface_output.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void vnet_pcap_drop_trace_filter_add_del ( u32  error_index,
int  is_add 
)

Definition at line 1132 of file interface_output.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

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

Definition at line 649 of file interface_output.c.

+ Here is the call graph for this function:

clib_error_t* vnet_per_buffer_interface_output_hw_interface_add_del ( vnet_main_t vnm,
u32  hw_if_index,
u32  is_create 
)

Definition at line 1203 of file interface_output.c.

+ Here is the call graph for this function:

Variable Documentation

vlib_node_registration_t drop_buffers
static
Initial value:
= {
.function = process_drop,
.name = "error-drop",
.vector_size = sizeof (u32),
.format_trace = format_vnet_error_trace,
.validate_frame = validate_error_frame,
}
#define VLIB_NODE_FLAG_IS_DROP
Definition: node.h:254
static u8 * validate_error_frame(vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *f)
static u8 * format_vnet_error_trace(u8 *s, va_list *va)
static uword process_drop(vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
unsigned int u32
Definition: types.h:88

(constructor) VLIB_REGISTER_NODE (drop_buffers)

Definition at line 1165 of file interface_output.c.

vlib_cli_command_t pcap_trace_command
static
Initial value:
= {
.path = "pcap drop trace",
.short_help =
"pcap drop trace on off max <nn> intfc <intfc> file <name> status",
}
static clib_error_t * pcap_drop_trace_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)

(constructor) VLIB_CLI_COMMAND (pcap_trace_command)

Definition at line 1349 of file interface_output.c.

vlib_node_registration_t punt_buffers
static
Initial value:
= {
.function = process_punt,
.name = "error-punt",
.vector_size = sizeof (u32),
.format_trace = format_vnet_error_trace,
.validate_frame = validate_error_frame,
}
static u8 * validate_error_frame(vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *f)
static u8 * format_vnet_error_trace(u8 *s, va_list *va)
unsigned int u32
Definition: types.h:88
#define VLIB_NODE_FLAG_IS_PUNT
Definition: node.h:255
static uword process_punt(vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
#define VLIB_NODE_FLAG_FRAME_NO_FREE_AFTER_DISPATCH
Definition: node.h:250

(constructor) VLIB_REGISTER_NODE (punt_buffers)

Definition at line 1178 of file interface_output.c.

vlib_node_registration_t vnet_per_buffer_interface_output_node
static
Initial value:
= {
.name = "interface-output",
.vector_size = sizeof (u32),
}
unsigned int u32
Definition: types.h:88
static uword vnet_per_buffer_interface_output(vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)

(constructor) VLIB_REGISTER_NODE (vnet_per_buffer_interface_output_node)

Definition at line 1192 of file interface_output.c.