FD.io VPP  v18.10-34-gcce845e
Vector Packet Processing
lacp_api.c File Reference
+ Include dependency graph for lacp_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_lacp_plugin_api_msg   _(SW_INTERFACE_LACP_DUMP, sw_interface_lacp_dump)
 
#define vl_msg_name_crc_list
 

Functions

static void lacp_send_sw_interface_details (vl_api_registration_t *reg, lacp_interface_details_t *lacp_if, u32 context)
 
void vl_api_sw_interface_lacp_dump_t_handler (vl_api_sw_interface_lacp_dump_t *mp)
 Message handler for lacp_dump API. More...
 
static void setup_message_id_table (lacp_main_t *lm, api_main_t *am)
 
clib_error_tlacp_plugin_api_hookup (vlib_main_t *vm)
 

Macro Definition Documentation

#define foreach_lacp_plugin_api_msg   _(SW_INTERFACE_LACP_DUMP, sw_interface_lacp_dump)

Definition at line 90 of file lacp_api.c.

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

Definition at line 60 of file lacp_api.c.

#define REPLY_MACRO2 (   t,
  body 
)
Value:
do { \
if (!q) \
return; \
\
rmp = vl_msg_api_alloc (sizeof (*rmp)); \
rmp->_vl_msg_id = htons ((t)+lm->msg_id_base); \
rmp->context = mp->context; \
rmp->retval = htonl (rv); \
do {body;} while (0); \
vl_msg_api_send_shmem (q, (u8 *)&rmp); \
} while(0);
void * vl_msg_api_alloc(int nbytes)
unsigned char u8
Definition: types.h:56
void vl_msg_api_send_shmem(svm_queue_t *q, u8 *elem)
svm_queue_t * vl_api_client_index_to_input_queue(u32 index)
Definition: memory_api.c:759
struct _svm_queue svm_queue_t

Definition at line 75 of file lacp_api.c.

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

Definition at line 49 of file lacp_api.c.

#define vl_endianfun

Definition at line 38 of file lacp_api.c.

#define vl_msg_name_crc_list

Definition at line 163 of file lacp_api.c.

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

Definition at line 43 of file lacp_api.c.

#define vl_printfun

Definition at line 44 of file lacp_api.c.

#define vl_typedefs

Definition at line 33 of file lacp_api.c.

Function Documentation

clib_error_t* lacp_plugin_api_hookup ( vlib_main_t vm)

Definition at line 178 of file lacp_api.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static void lacp_send_sw_interface_details ( vl_api_registration_t reg,
lacp_interface_details_t lacp_if,
u32  context 
)
static

Definition at line 94 of file lacp_api.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static void setup_message_id_table ( lacp_main_t lm,
api_main_t am 
)
static

Definition at line 168 of file lacp_api.c.

+ Here is the caller graph for this function:

void vl_api_sw_interface_lacp_dump_t_handler ( vl_api_sw_interface_lacp_dump_t mp)

Message handler for lacp_dump API.

Parameters
mpvl_api_lacp_dump_t * mp the api message

Definition at line 140 of file lacp_api.c.

+ Here is the call graph for this function: