FD.io VPP  v19.04.1-1-ge4a0f9f
Vector Packet Processing
memif_api.c File Reference
+ Include dependency graph for memif_api.c:

Go to the source code of this file.

Macros

#define vl_typedefs
 
#define vl_endianfun
 
#define vl_print(handle, ...)   vlib_cli_output (handle, __VA_ARGS__)
 
#define vl_printfun
 
#define vl_api_version(n, v)   static u32 api_version=(v);
 
#define REPLY_MSG_ID_BASE   mm->msg_id_base
 
#define foreach_memif_plugin_api_msg
 
#define vl_msg_name_crc_list
 

Functions

void vl_api_memif_socket_filename_add_del_t_handler (vl_api_memif_socket_filename_add_del_t *mp)
 Message handler for memif_socket_filename_add_del API. More...
 
void vl_api_memif_create_t_handler (vl_api_memif_create_t *mp)
 Message handler for memif_create API. More...
 
void vl_api_memif_delete_t_handler (vl_api_memif_delete_t *mp)
 Message handler for memif_delete API. More...
 
static void send_memif_details (vl_api_registration_t *reg, memif_if_t *mif, vnet_sw_interface_t *swif, u8 *interface_name, u32 context)
 
void vl_api_memif_dump_t_handler (vl_api_memif_dump_t *mp)
 Message handler for memif_dump API. More...
 
static void send_memif_socket_filename_details (vl_api_registration_t *reg, u32 socket_id, u8 *socket_filename, u32 context)
 
void vl_api_memif_socket_filename_dump_t_handler (vl_api_memif_socket_filename_dump_t *mp)
 Message handler for memif_socket_filename_dump API. More...
 
static void setup_message_id_table (memif_main_t *mm, api_main_t *am)
 
clib_error_tmemif_plugin_api_hookup (vlib_main_t *vm)
 

Macro Definition Documentation

#define foreach_memif_plugin_api_msg
Value:
_(MEMIF_SOCKET_FILENAME_ADD_DEL, memif_socket_filename_add_del) \
_(MEMIF_CREATE, memif_create) \
_(MEMIF_DELETE, memif_delete) \
_(MEMIF_SOCKET_FILENAME_DUMP, memif_socket_filename_dump) \
_(MEMIF_DUMP, memif_dump) \
int memif_socket_filename_add_del(u8 is_add, u32 sock_id, u8 *sock_filename)
Definition: memif.c:624
int memif_create(memif_conn_handle_t *conn, memif_conn_args_t *args, memif_connection_update_t *on_connect, memif_connection_update_t *on_disconnect, memif_interrupt_t *on_interrupt, void *private_ctx)
Memory interface create function.
Definition: main.c:648
int memif_delete(memif_conn_handle_t *conn)
Memif delete.
Definition: main.c:1276

Definition at line 57 of file memif_api.c.

#define REPLY_MSG_ID_BASE   mm->msg_id_base

Definition at line 54 of file memif_api.c.

#define vl_api_version (   n,
 
)    static u32 api_version=(v);

Definition at line 50 of file memif_api.c.

#define vl_endianfun

Definition at line 39 of file memif_api.c.

#define vl_msg_name_crc_list

Definition at line 359 of file memif_api.c.

#define vl_print (   handle,
  ... 
)    vlib_cli_output (handle, __VA_ARGS__)

Definition at line 44 of file memif_api.c.

#define vl_printfun

Definition at line 45 of file memif_api.c.

#define vl_typedefs

Definition at line 34 of file memif_api.c.

Function Documentation

clib_error_t* memif_plugin_api_hookup ( vlib_main_t vm)

Definition at line 374 of file memif_api.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static void send_memif_details ( vl_api_registration_t reg,
memif_if_t mif,
vnet_sw_interface_t swif,
u8 interface_name,
u32  context 
)
static

Definition at line 229 of file memif_api.c.

+ Here is the call graph for this function:

static void send_memif_socket_filename_details ( vl_api_registration_t reg,
u32  socket_id,
u8 socket_filename,
u32  context 
)
static

Definition at line 308 of file memif_api.c.

+ Here is the call graph for this function:

static void setup_message_id_table ( memif_main_t mm,
api_main_t am 
)
static

Definition at line 364 of file memif_api.c.

+ Here is the caller graph for this function:

void vl_api_memif_create_t_handler ( vl_api_memif_create_t mp)

Message handler for memif_create API.

Parameters
mpvl_api_memif_create_t * mp the api message

Definition at line 116 of file memif_api.c.

+ Here is the call graph for this function:

void vl_api_memif_delete_t_handler ( vl_api_memif_delete_t mp)

Message handler for memif_delete API.

Parameters
mpvl_api_memif_delete_t * mp the api message

Definition at line 206 of file memif_api.c.

+ Here is the call graph for this function:

void vl_api_memif_dump_t_handler ( vl_api_memif_dump_t mp)

Message handler for memif_dump API.

Parameters
mpvl_api_memif_dump_t * mp the api message

Definition at line 277 of file memif_api.c.

+ Here is the call graph for this function:

void vl_api_memif_socket_filename_add_del_t_handler ( vl_api_memif_socket_filename_add_del_t mp)

Message handler for memif_socket_filename_add_del API.

Parameters
mpthe vl_api_memif_socket_filename_add_del_t API message

Definition at line 71 of file memif_api.c.

+ Here is the call graph for this function:

void vl_api_memif_socket_filename_dump_t_handler ( vl_api_memif_socket_filename_dump_t mp)

Message handler for memif_socket_filename_dump API.

Parameters
mpvl_api_memif_socket_filename_dump_t api message

Definition at line 335 of file memif_api.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function: