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

◆ foreach_memif_plugin_api_msg

#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:660
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:1095
int memif_delete(memif_conn_handle_t *conn)
Memif delete.
Definition: main.c:1816

Definition at line 57 of file memif_api.c.

◆ REPLY_MSG_ID_BASE

#define REPLY_MSG_ID_BASE   mm->msg_id_base

Definition at line 54 of file memif_api.c.

◆ vl_api_version

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

Definition at line 50 of file memif_api.c.

◆ vl_endianfun

#define vl_endianfun

Definition at line 39 of file memif_api.c.

◆ vl_msg_name_crc_list

#define vl_msg_name_crc_list

Definition at line 362 of file memif_api.c.

◆ vl_print

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

Definition at line 44 of file memif_api.c.

◆ vl_printfun

#define vl_printfun

Definition at line 45 of file memif_api.c.

◆ vl_typedefs

#define vl_typedefs

Definition at line 34 of file memif_api.c.

Function Documentation

◆ memif_plugin_api_hookup()

clib_error_t* memif_plugin_api_hookup ( vlib_main_t vm)

Definition at line 377 of file memif_api.c.

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

◆ send_memif_details()

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 232 of file memif_api.c.

+ Here is the call graph for this function:

◆ send_memif_socket_filename_details()

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

Definition at line 311 of file memif_api.c.

+ Here is the call graph for this function:

◆ setup_message_id_table()

static void setup_message_id_table ( memif_main_t mm,
api_main_t am 
)
static

Definition at line 367 of file memif_api.c.

+ Here is the caller graph for this function:

◆ vl_api_memif_create_t_handler()

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:

◆ vl_api_memif_delete_t_handler()

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:

◆ vl_api_memif_dump_t_handler()

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 280 of file memif_api.c.

+ Here is the call graph for this function:

◆ vl_api_memif_socket_filename_add_del_t_handler()

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:

◆ vl_api_memif_socket_filename_dump_t_handler()

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 338 of file memif_api.c.

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