FD.io VPP  v19.08.3-2-gbabecb413
Vector Packet Processing
api.c File Reference
+ Include dependency graph for 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   lbm->msg_id_base
 
#define foreach_lb_plugin_api_msg
 
#define FINISH
 
#define vl_msg_name_crc_list
 

Functions

static void vl_api_lb_conf_t_handler (vl_api_lb_conf_t *mp)
 
static void * vl_api_lb_conf_t_print (vl_api_lb_conf_t *mp, void *handle)
 
static void vl_api_lb_add_del_vip_t_handler (vl_api_lb_add_del_vip_t *mp)
 
static void * vl_api_lb_add_del_vip_t_print (vl_api_lb_add_del_vip_t *mp, void *handle)
 
static void vl_api_lb_add_del_as_t_handler (vl_api_lb_add_del_as_t *mp)
 
static void * vl_api_lb_add_del_as_t_print (vl_api_lb_add_del_as_t *mp, void *handle)
 
static void vl_api_lb_vip_dump_t_handler (vl_api_lb_vip_dump_t *mp)
 
static void send_lb_as_details (vl_api_registration_t *reg, u32 context, lb_vip_t *vip)
 
static void vl_api_lb_as_dump_t_handler (vl_api_lb_as_dump_t *mp)
 
static void vl_api_lb_flush_vip_t_handler (vl_api_lb_flush_vip_t *mp)
 
static void * vl_api_lb_flush_vip_t_print (vl_api_lb_flush_vip_t *mp, void *handle)
 
static clib_error_tlb_plugin_api_hookup (vlib_main_t *vm)
 
static void setup_message_id_table (lb_main_t *lmp, api_main_t *am)
 
static clib_error_tlb_api_init (vlib_main_t *vm)
 

Macro Definition Documentation

◆ FINISH

#define FINISH
Value:
vec_add1 (s, 0); \
vl_print (handle, (char *)s); \
vec_free (s); \
return handle;
#define vec_add1(V, E)
Add 1 element to end of vector (unspecified alignment).
Definition: vec.h:522

Definition at line 66 of file api.c.

◆ foreach_lb_plugin_api_msg

#define foreach_lb_plugin_api_msg
Value:
_(LB_CONF, lb_conf) \
_(LB_ADD_DEL_VIP, lb_add_del_vip) \
_(LB_ADD_DEL_AS, lb_add_del_as) \
_(LB_VIP_DUMP, lb_vip_dump) \
_(LB_AS_DUMP, lb_as_dump) \
_(LB_FLUSH_VIP, lb_flush_vip) \
int lb_conf(ip4_address_t *ip4_address, ip6_address_t *ip6_address, u32 per_cpu_sticky_buckets, u32 flow_timeout)
Fix global load-balancer parameters.
Definition: lb.c:473

Definition at line 56 of file api.c.

◆ REPLY_MSG_ID_BASE

#define REPLY_MSG_ID_BASE   lbm->msg_id_base

Definition at line 52 of file api.c.

◆ vl_api_version

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

Definition at line 48 of file api.c.

◆ vl_endianfun

#define vl_endianfun

Definition at line 37 of file api.c.

◆ vl_msg_name_crc_list

#define vl_msg_name_crc_list

Definition at line 429 of file api.c.

◆ vl_print

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

Definition at line 42 of file api.c.

◆ vl_printfun

#define vl_printfun

Definition at line 43 of file api.c.

◆ vl_typedefs

#define vl_typedefs

Definition at line 32 of file api.c.

Function Documentation

◆ lb_api_init()

static clib_error_t* lb_api_init ( vlib_main_t vm)
static

Definition at line 441 of file api.c.

+ Here is the call graph for this function:

◆ lb_plugin_api_hookup()

static clib_error_t* lb_plugin_api_hookup ( vlib_main_t vm)
static

Definition at line 412 of file api.c.

+ Here is the caller graph for this function:

◆ send_lb_as_details()

static void send_lb_as_details ( vl_api_registration_t reg,
u32  context,
lb_vip_t vip 
)
static

Definition at line 299 of file api.c.

◆ setup_message_id_table()

static void setup_message_id_table ( lb_main_t lmp,
api_main_t am 
)
static

Definition at line 434 of file api.c.

+ Here is the caller graph for this function:

◆ vl_api_lb_add_del_as_t_handler()

static void vl_api_lb_add_del_as_t_handler ( vl_api_lb_add_del_as_t mp)
static

Definition at line 206 of file api.c.

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

◆ vl_api_lb_add_del_as_t_print()

static void* vl_api_lb_add_del_as_t_print ( vl_api_lb_add_del_as_t mp,
void *  handle 
)
static

Definition at line 237 of file api.c.

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

◆ vl_api_lb_add_del_vip_t_handler()

static void vl_api_lb_add_del_vip_t_handler ( vl_api_lb_add_del_vip_t mp)
static

Definition at line 110 of file api.c.

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

◆ vl_api_lb_add_del_vip_t_print()

static void* vl_api_lb_add_del_vip_t_print ( vl_api_lb_add_del_vip_t mp,
void *  handle 
)
static

Definition at line 173 of file api.c.

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

◆ vl_api_lb_as_dump_t_handler()

static void vl_api_lb_as_dump_t_handler ( vl_api_lb_as_dump_t *  mp)
static

Definition at line 338 of file api.c.

+ Here is the call graph for this function:

◆ vl_api_lb_conf_t_handler()

static void vl_api_lb_conf_t_handler ( vl_api_lb_conf_t mp)
static

Definition at line 74 of file api.c.

+ Here is the call graph for this function:

◆ vl_api_lb_conf_t_print()

static void* vl_api_lb_conf_t_print ( vl_api_lb_conf_t mp,
void *  handle 
)
static

Definition at line 96 of file api.c.

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

◆ vl_api_lb_flush_vip_t_handler()

static void vl_api_lb_flush_vip_t_handler ( vl_api_lb_flush_vip_t mp)
static

Definition at line 371 of file api.c.

+ Here is the call graph for this function:

◆ vl_api_lb_flush_vip_t_print()

static void* vl_api_lb_flush_vip_t_print ( vl_api_lb_flush_vip_t mp,
void *  handle 
)
static

Definition at line 398 of file api.c.

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

◆ vl_api_lb_vip_dump_t_handler()

static void vl_api_lb_vip_dump_t_handler ( vl_api_lb_vip_dump_t *  mp)
static

Definition at line 257 of file api.c.

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