FD.io VPP  v19.01.3-6-g70449b9b9
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
 

Macros

#define foreach_worker_handoff_error   _(CONGESTION_DROP, "congestion drop")
 

Enumerations

enum  worker_handoff_error_t { WORKER_HANDOFF_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)
 
clib_error_thandoff_init (vlib_main_t *vm)
 

Variables

handoff_main_t handoff_main
 
static char * worker_handoff_error_strings []
 
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...
 

Macro Definition Documentation

◆ foreach_worker_handoff_error

#define foreach_worker_handoff_error   _(CONGESTION_DROP, "congestion drop")

Definition at line 52 of file handoff.c.

Enumeration Type Documentation

◆ worker_handoff_error_t

Enumerator
WORKER_HANDOFF_N_ERROR 

Definition at line 55 of file handoff.c.

Function Documentation

◆ format_worker_handoff_trace()

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

Definition at line 71 of file handoff.c.

+ Here is the call graph for this function:

◆ handoff_init()

clib_error_t* handoff_init ( vlib_main_t vm)

Definition at line 307 of file handoff.c.

+ Here is the call graph for this function:

◆ interface_handoff_enable_disable()

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

Definition at line 180 of file handoff.c.

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

◆ set_interface_handoff_command_fn()

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 228 of file handoff.c.

+ Here is the call graph for this function:

◆ worker_handoff_node_fn()

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

Definition at line 86 of file handoff.c.

+ Here is the call graph for this function:

Variable Documentation

◆ handoff_main

handoff_main_t handoff_main

Definition at line 43 of file handoff.c.

◆ handoff_node

Definition at line 83 of file handoff.c.

◆ set_interface_handoff_command

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:228

(constructor) VLIB_CLI_COMMAND (set_interface_handoff_command)

Definition at line 298 of file handoff.c.

◆ worker_handoff_error_strings

char* worker_handoff_error_strings[]
static
Initial value:
= {
#define _(sym,string)
}
#define foreach_worker_handoff_error
Definition: handoff.c:52

Definition at line 63 of file handoff.c.

◆ worker_handoff_node

vlib_node_registration_t worker_handoff_node
Initial value:
= {
.name = "worker-handoff",
.vector_size = sizeof (u32),
.format_trace = format_worker_handoff_trace,
.error_strings = worker_handoff_error_strings,
.n_next_nodes = 1,
.next_nodes = {
[0] = "error-drop",
},
}
static u8 * format_worker_handoff_trace(u8 *s, va_list *args)
Definition: handoff.c:71
unsigned int u32
Definition: types.h:88
static char * worker_handoff_error_strings[]
Definition: handoff.c:63
#define ARRAY_LEN(x)
Definition: clib.h:62
static uword worker_handoff_node_fn(vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
Definition: handoff.c:86

(constructor) VLIB_REGISTER_NODE (worker_handoff_node)

Definition at line 161 of file handoff.c.