FD.io VPP  v16.06
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)
 
always_inline 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)
 
static uword vnet_per_buffer_interface_output (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
 
always_inline 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)
 
always_inline 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)
 
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

vlib_node_registration_t drop_buffers
 (constructor) VLIB_REGISTER_NODE (drop_buffers) More...
 
vlib_node_registration_t punt_buffers
 (constructor) VLIB_REGISTER_NODE (punt_buffers) More...
 
vlib_node_registration_t vnet_per_buffer_interface_output_node
 (constructor) VLIB_REGISTER_NODE (vnet_per_buffer_interface_output_node) More...
 
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 851 of file interface_output.c.

Function Documentation

always_inline u32 counter_index ( vlib_main_t vm,
vlib_error_t  e 
)

Definition at line 719 of file interface_output.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

always_inline void do_packet ( vlib_main_t vm,
vlib_error_t  a 
)

Definition at line 858 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 735 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 47 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 181 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 1066 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 1199 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 1132 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 867 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 1145 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 138 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 752 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 812 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 831 of file interface_output.c.

+ Here is the call graph for this function:

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 213 of file interface_output.c.

+ Here is the call graph for this function:

+ Here is the caller 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 615 of file interface_output.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

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

Definition at line 397 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 71 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 1118 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 640 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 1178 of file interface_output.c.

+ Here is the call graph for this function:

Variable Documentation

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:220
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 1152 of file interface_output.c.

vlib_cli_command_t pcap_trace_command
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 1322 of file interface_output.c.

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:221
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:216

(constructor) VLIB_REGISTER_NODE (punt_buffers)

Definition at line 1161 of file interface_output.c.

vlib_node_registration_t vnet_per_buffer_interface_output_node
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 1171 of file interface_output.c.