FD.io VPP  v16.06
Vector Packet Processing
init.c File Reference
+ Include dependency graph for init.c:

Go to the source code of this file.

Macros

#define LINK_STATE_ELOGS   0
 
#define DEFAULT_HUGE_DIR   "/run/vpp/hugepages"
 
#define VPP_RUN_DIR   "/run/vpp"
 

Functions

clib_error_tdpdk_port_setup (dpdk_main_t *dm, dpdk_device_t *xd)
 
static u32 dpdk_flag_change (vnet_main_t *vnm, vnet_hw_interface_t *hi, u32 flags)
 
void dpdk_device_lock_init (dpdk_device_t *xd)
 
void dpdk_device_lock_free (dpdk_device_t *xd)
 
static clib_error_tdpdk_lib_init (dpdk_main_t *dm)
 
static void dpdk_bind_devices_to_uio (dpdk_main_t *dm)
 
static clib_error_tdpdk_config (vlib_main_t *vm, unformat_input_t *input)
 
void dpdk_update_link_state (dpdk_device_t *xd, f64 now)
 
static uword dpdk_process (vlib_main_t *vm, vlib_node_runtime_t *rt, vlib_frame_t *f)
 
int dpdk_set_stat_poll_interval (f64 interval)
 
int dpdk_set_link_state_poll_interval (f64 interval)
 
clib_error_tdpdk_init (vlib_main_t *vm)
 

Variables

dpdk_main_t dpdk_main
 
voidvlib_weakly_linked_functions []
 
static struct rte_eth_conf port_conf_template
 
vlib_node_registration_t dpdk_process_node
 (constructor) VLIB_REGISTER_NODE (dpdk_process_node) More...
 

Macro Definition Documentation

#define DEFAULT_HUGE_DIR   "/run/vpp/hugepages"

Definition at line 47 of file init.c.

#define LINK_STATE_ELOGS   0

Definition at line 45 of file init.c.

#define VPP_RUN_DIR   "/run/vpp"

Definition at line 48 of file init.c.

Function Documentation

static void dpdk_bind_devices_to_uio ( dpdk_main_t dm)
static

Definition at line 744 of file init.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static clib_error_t* dpdk_config ( vlib_main_t vm,
unformat_input_t input 
)
static

Definition at line 802 of file init.c.

+ Here is the call graph for this function:

void dpdk_device_lock_free ( dpdk_device_t xd)

Definition at line 219 of file init.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void dpdk_device_lock_init ( dpdk_device_t xd)

Definition at line 205 of file init.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static u32 dpdk_flag_change ( vnet_main_t vnm,
vnet_hw_interface_t hi,
u32  flags 
)
static

Definition at line 128 of file init.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

clib_error_t* dpdk_init ( vlib_main_t vm)

Definition at line 1553 of file init.c.

+ Here is the call graph for this function:

static clib_error_t* dpdk_lib_init ( dpdk_main_t dm)
static

Definition at line 231 of file init.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

clib_error_t* dpdk_port_setup ( dpdk_main_t dm,
dpdk_device_t xd 
)

Definition at line 66 of file init.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static uword dpdk_process ( vlib_main_t vm,
vlib_node_runtime_t rt,
vlib_frame_t f 
)
static

Definition at line 1380 of file init.c.

+ Here is the call graph for this function:

int dpdk_set_link_state_poll_interval ( f64  interval)

Definition at line 1542 of file init.c.

+ Here is the caller graph for this function:

int dpdk_set_stat_poll_interval ( f64  interval)

Definition at line 1532 of file init.c.

+ Here is the caller graph for this function:

void dpdk_update_link_state ( dpdk_device_t xd,
f64  now 
)

Definition at line 1243 of file init.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Variable Documentation

dpdk_main_t dpdk_main

Definition at line 37 of file init.c.

vlib_node_registration_t dpdk_process_node
Initial value:
= {
.function = dpdk_process,
.name = "dpdk-process",
.process_log2_n_stack_bytes = 17,
}
static uword dpdk_process(vlib_main_t *vm, vlib_node_runtime_t *rt, vlib_frame_t *f)
Definition: init.c:1380

(constructor) VLIB_REGISTER_NODE (dpdk_process_node)

Definition at line 1525 of file init.c.

struct rte_eth_conf port_conf_template
static
Initial value:
= {
.rxmode = {
.split_hdr_size = 0,
.header_split = 0,
.hw_ip_checksum = 0,
.hw_vlan_filter = 0,
.hw_strip_crc = 1,
},
.txmode = {
.mq_mode = ETH_MQ_TX_NONE,
},
}

Definition at line 52 of file init.c.

void* vlib_weakly_linked_functions[]
Initial value:
= {
&rte_pktmbuf_init,
&rte_pktmbuf_pool_init,
}

Definition at line 40 of file init.c.