FD.io VPP  v18.04-17-g3a0d853
Vector Packet Processing
kp_api.c File Reference
+ Include dependency graph for kp_api.c:

Go to the source code of this file.

Macros

#define vl_msg_id(n, h)   n,
 
#define vl_typedefs
 
#define vl_endianfun
 
#define vl_print(handle, ...)   vlib_cli_output (handle, __VA_ARGS__)
 
#define vl_api_version(n, v)   static u32 api_version=(v);
 
#define vl_msg_name_crc_list
 
#define REPLY_MSG_ID_BASE   kpm->msg_id_base
 
#define FINISH
 
#define foreach_kp_plugin_api_msg
 

Enumerations

enum  vl_msg_id_t {
  VL_ILLEGAL_MESSAGE_ID = 0, VL_ILLEGAL_MESSAGE_ID = 0, VL_MSG_FIRST_AVAILABLE, VL_ILLEGAL_MESSAGE_ID = 0,
  VL_MSG_FIRST_AVAILABLE, VL_MSG_FIRST_AVAILABLE, VL_MSG_FIRST_AVAILABLE, VL_MSG_FIRST_AVAILABLE,
  VL_MSG_FIRST_AVAILABLE, VL_MSG_FIRST_AVAILABLE, VL_MSG_FIRST_AVAILABLE, VL_MSG_FIRST_AVAILABLE,
  VL_MSG_FIRST_AVAILABLE, VL_MSG_FIRST_AVAILABLE, VL_MSG_FIRST_AVAILABLE, VL_MSG_FIRST_AVAILABLE,
  VL_MSG_FIRST_AVAILABLE, VL_MSG_FIRST_AVAILABLE, VL_MSG_FIRST_AVAILABLE, VL_MSG_FIRST_AVAILABLE,
  VL_MSG_FIRST_AVAILABLE, VL_MSG_FIRST_AVAILABLE, VL_MSG_FIRST_AVAILABLE, VL_MSG_FIRST_AVAILABLE,
  VL_MSG_FIRST_AVAILABLE, VL_MSG_FIRST_AVAILABLE, VL_MSG_FIRST_AVAILABLE, VL_MSG_FIRST_AVAILABLE,
  VL_MSG_FIRST_AVAILABLE, VL_MSG_FIRST_AVAILABLE
}
 

Functions

static void setup_message_id_table (kp_main_t *kpm, api_main_t *am)
 
static void vl_api_kp_conf_t_handler (vl_api_kp_conf_t *mp)
 
static void * vl_api_kp_conf_t_print (vl_api_kp_conf_t *mp, void *handle)
 
static void vl_api_kp_add_del_vip_t_handler (vl_api_kp_add_del_vip_t *mp)
 
static void * vl_api_kp_add_del_vip_t_print (vl_api_kp_add_del_vip_t *mp, void *handle)
 
static void vl_api_kp_add_del_pod_t_handler (vl_api_kp_add_del_pod_t *mp)
 
static void * vl_api_kp_add_del_pod_t_print (vl_api_kp_add_del_pod_t *mp, void *handle)
 
static clib_error_tkp_api_init (vlib_main_t *vm)
 

Macro Definition Documentation

#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:520
#define vec_free(V)
Free vector's memory (no header).
Definition: vec.h:336
#define vl_print(handle,...)
Definition: kp_api.c:41

Definition at line 66 of file kp_api.c.

#define foreach_kp_plugin_api_msg
Value:
_(KP_CONF, kp_conf) \
_(KP_ADD_DEL_VIP, kp_add_del_vip) \
_(KP_ADD_DEL_POD, kp_add_del_pod)
int kp_conf(u32 per_cpu_sticky_buckets, u32 flow_timeout)
Fix global kube-proxy parameters.
Definition: kp.c:421

Definition at line 220 of file kp_api.c.

#define REPLY_MSG_ID_BASE   kpm->msg_id_base

Definition at line 53 of file kp_api.c.

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

Definition at line 44 of file kp_api.c.

#define vl_endianfun

Definition at line 37 of file kp_api.c.

#define vl_msg_id (   n,
  h 
)    n,

Definition at line 22 of file kp_api.c.

#define vl_msg_name_crc_list

Definition at line 48 of file kp_api.c.

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

Definition at line 41 of file kp_api.c.

#define vl_typedefs

Definition at line 32 of file kp_api.c.

Enumeration Type Documentation

Enumerator
VL_ILLEGAL_MESSAGE_ID 
VL_ILLEGAL_MESSAGE_ID 
VL_MSG_FIRST_AVAILABLE 
VL_ILLEGAL_MESSAGE_ID 
VL_MSG_FIRST_AVAILABLE 
VL_MSG_FIRST_AVAILABLE 
VL_MSG_FIRST_AVAILABLE 
VL_MSG_FIRST_AVAILABLE 
VL_MSG_FIRST_AVAILABLE 
VL_MSG_FIRST_AVAILABLE 
VL_MSG_FIRST_AVAILABLE 
VL_MSG_FIRST_AVAILABLE 
VL_MSG_FIRST_AVAILABLE 
VL_MSG_FIRST_AVAILABLE 
VL_MSG_FIRST_AVAILABLE 
VL_MSG_FIRST_AVAILABLE 
VL_MSG_FIRST_AVAILABLE 
VL_MSG_FIRST_AVAILABLE 
VL_MSG_FIRST_AVAILABLE 
VL_MSG_FIRST_AVAILABLE 
VL_MSG_FIRST_AVAILABLE 
VL_MSG_FIRST_AVAILABLE 
VL_MSG_FIRST_AVAILABLE 
VL_MSG_FIRST_AVAILABLE 
VL_MSG_FIRST_AVAILABLE 
VL_MSG_FIRST_AVAILABLE 
VL_MSG_FIRST_AVAILABLE 
VL_MSG_FIRST_AVAILABLE 
VL_MSG_FIRST_AVAILABLE 
VL_MSG_FIRST_AVAILABLE 

Definition at line 23 of file kp_api.c.

Function Documentation

static clib_error_t* kp_api_init ( vlib_main_t vm)
static

Definition at line 225 of file kp_api.c.

+ Here is the call graph for this function:

static void setup_message_id_table ( kp_main_t kpm,
api_main_t am 
)
static

Definition at line 57 of file kp_api.c.

+ Here is the caller graph for this function:

static void vl_api_kp_add_del_pod_t_handler ( vl_api_kp_add_del_pod_t mp)
static

Definition at line 157 of file kp_api.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static void* vl_api_kp_add_del_pod_t_print ( vl_api_kp_add_del_pod_t mp,
void *  handle 
)
static

Definition at line 207 of file kp_api.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static void vl_api_kp_add_del_vip_t_handler ( vl_api_kp_add_del_vip_t mp)
static

Definition at line 99 of file kp_api.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static void* vl_api_kp_add_del_vip_t_print ( vl_api_kp_add_del_vip_t mp,
void *  handle 
)
static

Definition at line 140 of file kp_api.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static void vl_api_kp_conf_t_handler ( vl_api_kp_conf_t mp)
static

Definition at line 74 of file kp_api.c.

+ Here is the call graph for this function:

static void* vl_api_kp_conf_t_print ( vl_api_kp_conf_t mp,
void *  handle 
)
static

Definition at line 87 of file kp_api.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function: