FD.io VPP  v17.04-9-g99c0734
Vector Packet Processing
devices.c File Reference
+ Include dependency graph for devices.c:

Go to the source code of this file.

Functions

static uword device_input_fn (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
 
 VNET_FEATURE_ARC_INIT (device_input, static)
 
 VNET_FEATURE_INIT (l2_patch, static)
 
 VNET_FEATURE_INIT (worker_handoff, static)
 
 VNET_FEATURE_INIT (span_input, static)
 
 VNET_FEATURE_INIT (ethernet_input, static)
 
static int vnet_device_queue_sort (void *a1, void *a2)
 
void vnet_device_input_assign_thread (u32 hw_if_index, u16 queue_id, uword cpu_index)
 
static int vnet_device_input_unassign_thread (u32 hw_if_index, u16 queue_id, uword cpu_index)
 
static clib_error_tshow_device_placement_fn (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 
static clib_error_tset_device_placement (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 
static clib_error_tvnet_device_init (vlib_main_t *vm)
 

Variables

vnet_device_main_t vnet_device_main
 
vlib_node_registration_t device_input_node
 (constructor) VLIB_REGISTER_NODE (device_input_node) More...
 
const u32 device_input_next_node_advance [((VNET_DEVICE_INPUT_N_NEXT_NODES/CLIB_CACHE_LINE_BYTES)+1)*CLIB_CACHE_LINE_BYTES]
 
static vlib_cli_command_t memif_delete_command
 (constructor) VLIB_CLI_COMMAND (memif_delete_command) More...
 
static vlib_cli_command_t cmd_set_dpdk_if_placement
 (constructor) VLIB_CLI_COMMAND (cmd_set_dpdk_if_placement) More...
 

Function Documentation

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

Definition at line 25 of file devices.c.

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

Definition at line 234 of file devices.c.

+ Here is the call graph for this function:

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

Definition at line 184 of file devices.c.

+ Here is the call graph for this function:

static clib_error_t* vnet_device_init ( vlib_main_t vm)
static

Definition at line 315 of file devices.c.

+ Here is the call graph for this function:

void vnet_device_input_assign_thread ( u32  hw_if_index,
u16  queue_id,
uword  cpu_index 
)

Definition at line 106 of file devices.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static int vnet_device_input_unassign_thread ( u32  hw_if_index,
u16  queue_id,
uword  cpu_index 
)
static

Definition at line 144 of file devices.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static int vnet_device_queue_sort ( void *  a1,
void *  a2 
)
static

Definition at line 88 of file devices.c.

+ Here is the caller graph for this function:

VNET_FEATURE_ARC_INIT ( device_input  ,
static   
)
VNET_FEATURE_INIT ( l2_patch  ,
static   
)
VNET_FEATURE_INIT ( worker_handoff  ,
static   
)
VNET_FEATURE_INIT ( span_input  ,
static   
)
VNET_FEATURE_INIT ( ethernet_input  ,
static   
)

Variable Documentation

vlib_cli_command_t cmd_set_dpdk_if_placement
static
Initial value:
= {
.path = "set interface placement",
.short_help = "set interface placement <interface> [queue <n>] [thread <n> | main]",
.function = set_device_placement,
}
static clib_error_t * set_device_placement(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
Definition: devices.c:234

(constructor) VLIB_CLI_COMMAND (cmd_set_dpdk_if_placement)

Definition at line 307 of file devices.c.

vlib_node_registration_t device_input_node
Initial value:
= {
.function = device_input_fn,
.name = "device-input",
.runtime_data_bytes = sizeof (vnet_device_input_runtime_t),
.state = VLIB_NODE_STATE_DISABLED,
}
static uword device_input_fn(vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
Definition: devices.c:25
#define VNET_DEVICE_INPUT_NEXT_NODES
Definition: devices.h:33
vhost_vring_state_t state
Definition: vhost-user.h:83

(constructor) VLIB_REGISTER_NODE (device_input_node)

Definition at line 32 of file devices.c.

vlib_cli_command_t memif_delete_command
static
Initial value:
= {
.path = "show interface placement",
.short_help = "show interface placement",
}
static clib_error_t * show_device_placement_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
Definition: devices.c:184

(constructor) VLIB_CLI_COMMAND (memif_delete_command)

Definition at line 226 of file devices.c.

vnet_device_main_t vnet_device_main

Definition at line 22 of file devices.c.