FD.io VPP  v21.10.1-2-g0a485f517
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)
 
static void memif_disconnect_free_zc_queue_buffer (memif_queue_t *mq, u8 is_rx)
 
void memif_disconnect (memif_if_t *mif, clib_error_t *err)
 
static clib_error_tmemif_int_fd_write_ready (clib_file_t *uf)
 
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)
 
clib_error_tmemif_interface_admin_up_down (vnet_main_t *vnm, u32 hw_if_index, u32 flags)
 
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

◆ memif_add_socket_file()

static int memif_add_socket_file ( u32  sock_id,
u8 socket_filename 
)
static

Definition at line 629 of file memif.c.

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

◆ memif_connect()

clib_error_t* memif_connect ( memif_if_t mif)

Definition at line 229 of file memif.c.

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

◆ memif_create_if()

int memif_create_if ( vlib_main_t vm,
memif_create_if_args_t args 
)

Definition at line 849 of file memif.c.

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

◆ memif_delete_if()

int memif_delete_if ( vlib_main_t vm,
memif_if_t mif 
)

Definition at line 769 of file memif.c.

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

◆ memif_delete_socket_file()

static int memif_delete_socket_file ( u32  sock_id)
static

Definition at line 662 of file memif.c.

+ Here is the caller graph for this function:

◆ memif_disconnect()

void memif_disconnect ( memif_if_t mif,
clib_error_t err 
)

Definition at line 87 of file memif.c.

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

◆ memif_disconnect_free_zc_queue_buffer()

static void memif_disconnect_free_zc_queue_buffer ( memif_queue_t mq,
u8  is_rx 
)
static

Definition at line 69 of file memif.c.

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

◆ memif_eth_flag_change()

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:

◆ memif_get_ring()

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

Definition at line 342 of file memif.c.

+ Here is the caller graph for this function:

◆ memif_init()

static clib_error_t* memif_init ( vlib_main_t vm)
static

Definition at line 1094 of file memif.c.

+ Here is the call graph for this function:

◆ memif_init_regions_and_queues()

clib_error_t* memif_init_regions_and_queues ( memif_if_t mif)

Definition at line 356 of file memif.c.

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

◆ memif_int_fd_read_ready()

static clib_error_t* memif_int_fd_read_ready ( clib_file_t uf)
static

Definition at line 204 of file memif.c.

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

◆ memif_int_fd_write_ready()

static clib_error_t* memif_int_fd_write_ready ( clib_file_t uf)
static

Definition at line 193 of file memif.c.

+ Here is the caller graph for this function:

◆ memif_interface_admin_up_down()

clib_error_t* memif_interface_admin_up_down ( vnet_main_t vnm,
u32  hw_if_index,
u32  flags 
)

Definition at line 1076 of file memif.c.

+ Here is the call graph for this function:

◆ memif_process()

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

Definition at line 520 of file memif.c.

+ Here is the call graph for this function:

◆ memif_queue_intfd_close()

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:

◆ memif_socket_filename_add_del()

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

Definition at line 690 of file memif.c.

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

◆ VLIB_PLUGIN_REGISTER()

VLIB_PLUGIN_REGISTER ( )

◆ VNET_HW_INTERFACE_CLASS()

VNET_HW_INTERFACE_CLASS ( memif_ip_hw_if_class  ,
static   
)

Variable Documentation

◆ memif_main

memif_main_t memif_main

Definition at line 43 of file memif.c.

◆ memif_process_node

vlib_node_registration_t memif_process_node
static
Initial value:
= {
.function = memif_process,
.name = "memif-process",
}

(constructor) VLIB_REGISTER_NODE (memif_process_node)

Definition at line 621 of file memif.c.

VLIB_NODE_TYPE_PROCESS
@ VLIB_NODE_TYPE_PROCESS
Definition: node.h:84
memif_process
static uword memif_process(vlib_main_t *vm, vlib_node_runtime_t *rt, vlib_frame_t *f)
Definition: memif.c:520