FD.io VPP  v19.01.3-6-g70449b9b9
Vector Packet Processing
init.c File Reference
+ Include dependency graph for init.c:

Go to the source code of this file.

Macros

#define ETHER_MAX_LEN   1518
 Maximum frame len, including CRC. More...
 
#define LINK_STATE_ELOGS   0
 

Functions

static dpdk_port_type_t port_type_from_speed_capa (struct rte_eth_dev_info *dev_info)
 
static dpdk_port_type_t port_type_from_link_speed (u32 link_speed)
 
static u32 dpdk_flag_change (vnet_main_t *vnm, vnet_hw_interface_t *hi, u32 flags)
 
static void dpdk_device_lock_init (dpdk_device_t *xd)
 
static struct rte_mempool_ops * get_ops_by_name (char *ops_name)
 
static int dpdk_ring_alloc (struct rte_mempool *mp)
 
static int dpdk_port_crc_strip_enabled (dpdk_device_t *xd)
 
static clib_error_tdpdk_lib_init (dpdk_main_t *dm)
 
static void dpdk_bind_devices_to_uio (dpdk_config_main_t *conf)
 
static void dpdk_bind_vmbus_devices_to_uio (dpdk_config_main_t *conf)
 
static clib_error_tdpdk_device_config (dpdk_config_main_t *conf, vlib_pci_addr_t pci_addr, unformat_input_t *input, u8 is_default)
 
static clib_error_tdpdk_log_read_ready (clib_file_t *uf)
 
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)
 
static clib_error_tdpdk_init (vlib_main_t *vm)
 

Variables

dpdk_main_t dpdk_main
 
dpdk_config_main_t dpdk_config_main
 
static vlib_node_registration_t dpdk_process_node
 (constructor) VLIB_REGISTER_NODE (dpdk_process_node) More...
 

Macro Definition Documentation

◆ ETHER_MAX_LEN

#define ETHER_MAX_LEN   1518

Maximum frame len, including CRC.

Definition at line 41 of file init.c.

◆ LINK_STATE_ELOGS

#define LINK_STATE_ELOGS   0

Definition at line 46 of file init.c.

Function Documentation

◆ dpdk_bind_devices_to_uio()

static void dpdk_bind_devices_to_uio ( dpdk_config_main_t conf)
static

Definition at line 824 of file init.c.

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

◆ dpdk_bind_vmbus_devices_to_uio()

static void dpdk_bind_vmbus_devices_to_uio ( dpdk_config_main_t conf)
static

Definition at line 978 of file init.c.

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

◆ dpdk_config()

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

Definition at line 1132 of file init.c.

+ Here is the call graph for this function:

◆ dpdk_device_config()

static clib_error_t* dpdk_device_config ( dpdk_config_main_t conf,
vlib_pci_addr_t  pci_addr,
unformat_input_t input,
u8  is_default 
)
static

Definition at line 999 of file init.c.

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

◆ dpdk_device_lock_init()

static void dpdk_device_lock_init ( dpdk_device_t xd)
static

Definition at line 141 of file init.c.

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

◆ dpdk_flag_change()

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

Definition at line 109 of file init.c.

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

◆ dpdk_init()

static clib_error_t* dpdk_init ( vlib_main_t vm)
static

Definition at line 1752 of file init.c.

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

◆ dpdk_lib_init()

static clib_error_t* dpdk_lib_init ( dpdk_main_t dm)
static

Definition at line 218 of file init.c.

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

◆ dpdk_log_read_ready()

static clib_error_t* dpdk_log_read_ready ( clib_file_t uf)
static

Definition at line 1101 of file init.c.

◆ dpdk_port_crc_strip_enabled()

static int dpdk_port_crc_strip_enabled ( dpdk_device_t xd)
static

Definition at line 208 of file init.c.

+ Here is the caller graph for this function:

◆ dpdk_process()

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

Definition at line 1586 of file init.c.

+ Here is the call graph for this function:

◆ dpdk_ring_alloc()

static int dpdk_ring_alloc ( struct rte_mempool *  mp)
static

Definition at line 168 of file init.c.

+ Here is the call graph for this function:

◆ dpdk_update_link_state()

void dpdk_update_link_state ( dpdk_device_t xd,
f64  now 
)

Definition at line 1494 of file init.c.

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

◆ get_ops_by_name()

static struct rte_mempool_ops* get_ops_by_name ( char *  ops_name)
static

Definition at line 154 of file init.c.

◆ port_type_from_link_speed()

static dpdk_port_type_t port_type_from_link_speed ( u32  link_speed)
static

Definition at line 79 of file init.c.

+ Here is the caller graph for this function:

◆ port_type_from_speed_capa()

static dpdk_port_type_t port_type_from_speed_capa ( struct rte_eth_dev_info *  dev_info)
static

Definition at line 51 of file init.c.

+ Here is the caller graph for this function:

Variable Documentation

◆ dpdk_config_main

dpdk_config_main_t dpdk_config_main

Definition at line 44 of file init.c.

◆ dpdk_main

dpdk_main_t dpdk_main

Definition at line 43 of file init.c.

◆ dpdk_process_node

vlib_node_registration_t dpdk_process_node
static
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:1586

(constructor) VLIB_REGISTER_NODE (dpdk_process_node)

Definition at line 1743 of file init.c.