FD.io VPP  v17.04-9-g99c0734
Vector Packet Processing
memif.c File Reference
+ Include dependency graph for memif.c:

Go to the source code of this file.

Macros

#define MEMIF_DEBUG   1
 
#define DEBUG_LOG(...)   clib_warning(__VA_ARGS__)
 
#define DEBUG_UNIX_LOG(...)   clib_unix_warning(__VA_ARGS__)
 

Functions

static clib_error_tmemif_conn_fd_read_ready (unix_file_t *uf)
 
static clib_error_tmemif_int_fd_read_ready (unix_file_t *uf)
 
static u32 memif_eth_flag_change (vnet_main_t *vnm, vnet_hw_interface_t *hi, u32 flags)
 
static void memif_remove_pending_conn (memif_pending_conn_t *pending_conn)
 
static void memif_connect (vlib_main_t *vm, memif_if_t *mif)
 
void memif_disconnect (vlib_main_t *vm, memif_if_t *mif)
 
static clib_error_tmemif_process_connect_req (memif_pending_conn_t *pending_conn, memif_msg_t *req, struct ucred *slave_cr, int shm_fd, int int_fd)
 
static clib_error_tmemif_process_connect_resp (memif_if_t *mif, memif_msg_t *resp)
 
static clib_error_tmemif_conn_fd_accept_ready (unix_file_t *uf)
 
static void memif_connect_master (vlib_main_t *vm, memif_if_t *mif)
 
static uword memif_process (vlib_main_t *vm, vlib_node_runtime_t *rt, vlib_frame_t *f)
 
static void memif_close_if (memif_main_t *mm, memif_if_t *mif)
 
int memif_worker_thread_enable ()
 
int memif_worker_thread_disable ()
 
int memif_create_if (vlib_main_t *vm, memif_create_if_args_t *args)
 
int memif_delete_if (vlib_main_t *vm, u64 key)
 
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...
 

Macro Definition Documentation

#define DEBUG_LOG (   ...)    clib_warning(__VA_ARGS__)

Definition at line 41 of file memif.c.

#define DEBUG_UNIX_LOG (   ...)    clib_unix_warning(__VA_ARGS__)

Definition at line 42 of file memif.c.

#define MEMIF_DEBUG   1

Definition at line 38 of file memif.c.

Function Documentation

static void memif_close_if ( memif_main_t mm,
memif_if_t mif 
)
static

Definition at line 710 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_conn_fd_accept_ready ( unix_file_t uf)
static

Definition at line 428 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_conn_fd_read_ready ( unix_file_t uf)
static

Definition at line 297 of file memif.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static void memif_connect ( vlib_main_t vm,
memif_if_t mif 
)
static

Definition at line 70 of file memif.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static void memif_connect_master ( vlib_main_t vm,
memif_if_t mif 
)
static

Definition at line 461 of file memif.c.

+ Here is the call graph for this function:

int memif_create_if ( vlib_main_t vm,
memif_create_if_args_t args 
)

Definition at line 786 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,
u64  key 
)

Definition at line 974 of file memif.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void memif_disconnect ( vlib_main_t vm,
memif_if_t mif 
)

Definition at line 89 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 53 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 1015 of file memif.c.

+ Here is the call graph for this function:

static clib_error_t * memif_int_fd_read_ready ( unix_file_t uf)
static

Definition at line 406 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 604 of file memif.c.

+ Here is the call graph for this function:

static clib_error_t* memif_process_connect_req ( memif_pending_conn_t pending_conn,
memif_msg_t req,
struct ucred *  slave_cr,
int  shm_fd,
int  int_fd 
)
static

Definition at line 116 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_process_connect_resp ( memif_if_t mif,
memif_msg_t resp 
)
static

Definition at line 272 of file memif.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static void memif_remove_pending_conn ( memif_pending_conn_t pending_conn)
static

Definition at line 60 of file memif.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int memif_worker_thread_disable ( )

Definition at line 772 of file memif.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int memif_worker_thread_enable ( )

Definition at line 757 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:

Variable Documentation

memif_main_t memif_main

Definition at line 47 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:604

(constructor) VLIB_REGISTER_NODE (memif_process_node)

Definition at line 702 of file memif.c.