FD.io VPP  v18.04-17-g3a0d853
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 527 of file memif.c.

+ Here is the caller graph for this function:

clib_error_t* memif_connect ( memif_if_t mif)

Definition at line 181 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 706 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 629 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 562 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 267 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 945 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 281 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 156 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 420 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 590 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:420

(constructor) VLIB_REGISTER_NODE (memif_process_node)

Definition at line 518 of file memif.c.