FD.io VPP  v18.01-8-g0eacf49
Vector Packet Processing
handoff.c File Reference
+ Include dependency graph for handoff.c:

Go to the source code of this file.

Data Structures

struct  per_inteface_handoff_data_t
 
struct  handoff_main_t
 
struct  worker_handoff_trace_t
 
struct  handoff_dispatch_trace_t
 

Macros

#define foreach_handoff_dispatch_error   _(EXAMPLE, "example packets")
 

Enumerations

enum  handoff_dispatch_error_t { HANDOFF_DISPATCH_N_ERROR }
 

Functions

static u8format_worker_handoff_trace (u8 *s, va_list *args)
 
static uword worker_handoff_node_fn (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
 
int interface_handoff_enable_disable (vlib_main_t *vm, u32 sw_if_index, uword *bitmap, int enable_disable)
 
static clib_error_tset_interface_handoff_command_fn (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 
static u8format_handoff_dispatch_trace (u8 *s, va_list *args)
 
static uword handoff_dispatch_node_fn (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
 
clib_error_thandoff_init (vlib_main_t *vm)
 

Variables

handoff_main_t handoff_main
 
vlib_node_registration_t handoff_dispatch_node
 (constructor) VLIB_REGISTER_NODE (handoff_dispatch_node) More...
 
vlib_node_registration_t handoff_node
 
vlib_node_registration_t worker_handoff_node
 (constructor) VLIB_REGISTER_NODE (worker_handoff_node) More...
 
static vlib_cli_command_t set_interface_handoff_command
 (constructor) VLIB_CLI_COMMAND (set_interface_handoff_command) More...
 
static char * handoff_dispatch_error_strings []
 

Macro Definition Documentation

#define foreach_handoff_dispatch_error   _(EXAMPLE, "example packets")

Definition at line 382 of file handoff.c.

Enumeration Type Documentation

Enumerator
HANDOFF_DISPATCH_N_ERROR 

Definition at line 385 of file handoff.c.

Function Documentation

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

Definition at line 371 of file handoff.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

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

Definition at line 59 of file handoff.c.

+ Here is the call graph for this function:

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

Definition at line 400 of file handoff.c.

+ Here is the call graph for this function:

clib_error_t* handoff_init ( vlib_main_t vm)

Definition at line 553 of file handoff.c.

+ Here is the call graph for this function:

int interface_handoff_enable_disable ( vlib_main_t vm,
u32  sw_if_index,
uword bitmap,
int  enable_disable 
)

Definition at line 238 of file handoff.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

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

Definition at line 284 of file handoff.c.

+ Here is the call graph for this function:

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

Definition at line 74 of file handoff.c.

+ Here is the call graph for this function:

Variable Documentation

char* handoff_dispatch_error_strings[]
static
Initial value:
= {
#define _(sym,string)
}
#define foreach_handoff_dispatch_error
Definition: handoff.c:382

Definition at line 393 of file handoff.c.

vlib_node_registration_t handoff_dispatch_node
Initial value:
= {
.name = "handoff-dispatch",
.vector_size = sizeof (u32),
.n_next_nodes = HANDOFF_DISPATCH_N_NEXT,
.next_nodes = {
[HANDOFF_DISPATCH_NEXT_DROP] = "error-drop",
[HANDOFF_DISPATCH_NEXT_IP4_INPUT] = "ip4-input-no-checksum",
},
}
static u8 * format_handoff_dispatch_trace(u8 *s, va_list *args)
Definition: handoff.c:371
#define VLIB_NODE_FLAG_IS_HANDOFF
Definition: node.h:256
static uword handoff_dispatch_node_fn(vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
Definition: handoff.c:400
#define ARRAY_LEN(x)
Definition: clib.h:59
unsigned int u32
Definition: types.h:88
static char * handoff_dispatch_error_strings[]
Definition: handoff.c:393
u32 flags
Definition: vhost-user.h:77

(constructor) VLIB_REGISTER_NODE (handoff_dispatch_node)

Definition at line 48 of file handoff.c.

handoff_main_t handoff_main

Definition at line 47 of file handoff.c.

Definition at line 71 of file handoff.c.

vlib_cli_command_t set_interface_handoff_command
static
Initial value:
= {
.path = "set interface handoff",
.short_help =
"set interface handoff <interface-name> workers <workers-list> [symmetrical|asymmetrical]",
}
static clib_error_t * set_interface_handoff_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
Definition: handoff.c:284

(constructor) VLIB_CLI_COMMAND (set_interface_handoff_command)

Definition at line 354 of file handoff.c.

vlib_node_registration_t worker_handoff_node
Initial value:
= {
.name = "worker-handoff",
.vector_size = sizeof (u32),
.format_trace = format_worker_handoff_trace,
.n_next_nodes = 1,
.next_nodes = {
[0] = "error-drop",
},
}
static u8 * format_worker_handoff_trace(u8 *s, va_list *args)
Definition: handoff.c:59
unsigned int u32
Definition: types.h:88
static uword worker_handoff_node_fn(vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
Definition: handoff.c:74

(constructor) VLIB_REGISTER_NODE (worker_handoff_node)

Definition at line 221 of file handoff.c.