FD.io VPP  v19.08.3-2-gbabecb413
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_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

◆ memif_add_socket_file()

static int memif_add_socket_file ( u32  sock_id,
u8 socket_filename 
)
static

Definition at line 599 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 222 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 819 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 739 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 632 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 330 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 1056 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 344 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 197 of file memif.c.

+ Here is the call graph for this function:
+ Here is the caller 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 493 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 660 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   
)
+ Here is the caller graph for this function:

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",
}
static uword memif_process(vlib_main_t *vm, vlib_node_runtime_t *rt, vlib_frame_t *f)
Definition: memif.c:493

(constructor) VLIB_REGISTER_NODE (memif_process_node)

Definition at line 591 of file memif.c.