FD.io VPP  v18.07.1-19-g511ce25
Vector Packet Processing
memif.c File Reference
+ Include dependency graph for memif.c:

Go to the source code of this file.

Functions

static u32 memif_eth_flag_change (vnet_main_t *vnm, vnet_hw_interface_t *hi, u32 flags)
 
static void memif_queue_intfd_close (memif_queue_t *mq)
 
void memif_disconnect (memif_if_t *mif, clib_error_t *err)
 
static clib_error_tmemif_int_fd_read_ready (clib_file_t *uf)
 
clib_error_tmemif_connect (memif_if_t *mif)
 
static_always_inline memif_ring_tmemif_get_ring (memif_if_t *mif, memif_ring_type_t type, u16 ring_num)
 
clib_error_tmemif_init_regions_and_queues (memif_if_t *mif)
 
static uword memif_process (vlib_main_t *vm, vlib_node_runtime_t *rt, vlib_frame_t *f)
 
static int memif_add_socket_file (u32 sock_id, u8 *socket_filename)
 
static int memif_delete_socket_file (u32 sock_id)
 
int memif_socket_filename_add_del (u8 is_add, u32 sock_id, u8 *sock_filename)
 
int memif_delete_if (vlib_main_t *vm, memif_if_t *mif)
 
 VNET_HW_INTERFACE_CLASS (memif_ip_hw_if_class, static)
 
int memif_create_if (vlib_main_t *vm, memif_create_if_args_t *args)
 
static clib_error_tmemif_init (vlib_main_t *vm)
 
 VLIB_PLUGIN_REGISTER ()
 

Variables

memif_main_t memif_main
 
static vlib_node_registration_t memif_process_node
 (constructor) VLIB_REGISTER_NODE (memif_process_node) More...
 

Function Documentation

static int memif_add_socket_file ( u32  sock_id,
u8 socket_filename 
)
static

Definition at line 560 of file memif.c.

+ Here is the caller graph for this function:

clib_error_t* memif_connect ( memif_if_t mif)

Definition at line 186 of file memif.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int memif_create_if ( vlib_main_t vm,
memif_create_if_args_t args 
)

Definition at line 740 of file memif.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int memif_delete_if ( vlib_main_t vm,
memif_if_t mif 
)

Definition at line 660 of file memif.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static int memif_delete_socket_file ( u32  sock_id)
static

Definition at line 593 of file memif.c.

+ Here is the caller graph for this function:

void memif_disconnect ( memif_if_t mif,
clib_error_t err 
)

Definition at line 69 of file memif.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

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

Definition at line 46 of file memif.c.

+ Here is the caller graph for this function:

static_always_inline memif_ring_t* memif_get_ring ( memif_if_t mif,
memif_ring_type_t  type,
u16  ring_num 
)

Definition at line 290 of file memif.c.

+ Here is the caller graph for this function:

static clib_error_t* memif_init ( vlib_main_t vm)
static

Definition at line 981 of file memif.c.

+ Here is the call graph for this function:

clib_error_t* memif_init_regions_and_queues ( memif_if_t mif)

Definition at line 304 of file memif.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static clib_error_t* memif_int_fd_read_ready ( clib_file_t uf)
static

Definition at line 161 of file memif.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

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

Definition at line 454 of file memif.c.

+ Here is the call graph for this function:

static void memif_queue_intfd_close ( memif_queue_t mq)
static

Definition at line 53 of file memif.c.

+ Here is the caller graph for this function:

int memif_socket_filename_add_del ( u8  is_add,
u32  sock_id,
u8 sock_filename 
)

Definition at line 621 of file memif.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

VLIB_PLUGIN_REGISTER ( )

+ Here is the caller graph for this function:

VNET_HW_INTERFACE_CLASS ( memif_ip_hw_if_class  ,
static   
)

+ Here is the caller graph for this function:

Variable Documentation

memif_main_t memif_main

Definition at line 43 of file memif.c.

vlib_node_registration_t memif_process_node
static
Initial value:
= {
.function = memif_process,
.name = "memif-process",
}
static uword memif_process(vlib_main_t *vm, vlib_node_runtime_t *rt, vlib_frame_t *f)
Definition: memif.c:454

(constructor) VLIB_REGISTER_NODE (memif_process_node)

Definition at line 552 of file memif.c.