FD.io VPP  v17.01.1-3-gc6833f8
Vector Packet Processing
pot_api.c File Reference
+ Include dependency graph for pot_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_MACRO(t)
 
#define REPLY_MACRO2(t, body)
 
#define foreach_pot_plugin_api_msg
 
#define vl_msg_name_crc_list
 

Functions

static void vl_api_pot_profile_add_t_handler (vl_api_pot_profile_add_t *mp)
 
static void send_pot_profile_details (vl_api_pot_profile_show_config_dump_t *mp, u8 id)
 
static void vl_api_pot_profile_show_config_dump_t_handler (vl_api_pot_profile_show_config_dump_t *mp)
 
static void vl_api_pot_profile_activate_t_handler (vl_api_pot_profile_activate_t *mp)
 
static void vl_api_pot_profile_del_t_handler (vl_api_pot_profile_del_t *mp)
 
static clib_error_tpot_plugin_api_hookup (vlib_main_t *vm)
 
static void setup_message_id_table (pot_main_t *sm, api_main_t *am)
 
static clib_error_tpot_init (vlib_main_t *vm)
 

Macro Definition Documentation

#define foreach_pot_plugin_api_msg
Value:
_(POT_PROFILE_ADD, pot_profile_add) \
_(POT_PROFILE_ACTIVATE, pot_profile_activate) \
_(POT_PROFILE_DEL, pot_profile_del) \
_(POT_PROFILE_SHOW_CONFIG_DUMP, pot_profile_show_config_dump) \

Definition at line 95 of file pot_api.c.

#define REPLY_MACRO (   t)
Value:
do { \
if (!q) \
return; \
\
rmp = vl_msg_api_alloc (sizeof (*rmp)); \
rmp->_vl_msg_id = ntohs((t)+sm->msg_id_base); \
rmp->context = mp->context; \
rmp->retval = ntohl(rv); \
vl_msg_api_send_shmem (q, (u8 *)&rmp); \
} while(0);
void vl_msg_api_send_shmem(unix_shared_memory_queue_t *q, u8 *elem)
unix_shared_memory_queue_t * vl_api_client_index_to_input_queue(u32 index)
void * vl_msg_api_alloc(int nbytes)
unsigned char u8
Definition: types.h:56
struct _unix_shared_memory_queue unix_shared_memory_queue_t

Definition at line 62 of file pot_api.c.

#define REPLY_MACRO2 (   t,
  body 
)
Value:
do { \
rv = vl_msg_api_pd_handler (mp, rv); \
q = vl_api_client_index_to_input_queue (mp->client_index); \
if (!q) \
return; \
\
rmp = vl_msg_api_alloc (sizeof (*rmp)); \
rmp->_vl_msg_id = ntohs((t)+sm->msg_id_base); \
rmp->context = mp->context; \
rmp->retval = ntohl(rv); \
do {body;} while (0); \
vl_msg_api_send_shmem (q, (u8 *)&rmp); \
} while(0);
void vl_msg_api_send_shmem(unix_shared_memory_queue_t *q, u8 *elem)
unix_shared_memory_queue_t * vl_api_client_index_to_input_queue(u32 index)
void * vl_msg_api_alloc(int nbytes)
int vl_msg_api_pd_handler(void *mp, int rv)
Definition: api_shared.c:1280
unsigned char u8
Definition: types.h:56
struct _unix_shared_memory_queue unix_shared_memory_queue_t

Definition at line 77 of file pot_api.c.

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

Definition at line 50 of file pot_api.c.

#define vl_endianfun

Definition at line 39 of file pot_api.c.

#define vl_msg_name_crc_list

Definition at line 235 of file pot_api.c.

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

Definition at line 44 of file pot_api.c.

#define vl_printfun

Definition at line 45 of file pot_api.c.

#define vl_typedefs

Definition at line 34 of file pot_api.c.

Function Documentation

static clib_error_t* pot_init ( vlib_main_t vm)
static

Definition at line 248 of file pot_api.c.

+ Here is the call graph for this function:

static clib_error_t* pot_plugin_api_hookup ( vlib_main_t vm)
static

Definition at line 218 of file pot_api.c.

+ Here is the caller graph for this function:

static void send_pot_profile_details ( vl_api_pot_profile_show_config_dump_t mp,
u8  id 
)
static

Definition at line 136 of file pot_api.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static void setup_message_id_table ( pot_main_t sm,
api_main_t am 
)
static

Definition at line 240 of file pot_api.c.

+ Here is the caller graph for this function:

static void vl_api_pot_profile_activate_t_handler ( vl_api_pot_profile_activate_t mp)
static

Definition at line 182 of file pot_api.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static void vl_api_pot_profile_add_t_handler ( vl_api_pot_profile_add_t mp)
static

Definition at line 102 of file pot_api.c.

+ Here is the call graph for this function:

static void vl_api_pot_profile_del_t_handler ( vl_api_pot_profile_del_t mp)
static

Definition at line 205 of file pot_api.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static void vl_api_pot_profile_show_config_dump_t_handler ( vl_api_pot_profile_show_config_dump_t mp)
static

Definition at line 169 of file pot_api.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function: