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

Go to the source code of this file.

Macros

#define foreach_histogram_bucket
 

Typedefs

typedef enum vl_api_clnt_process_events vl_api_clnt_process_events_t
 

Enumerations

enum  vl_api_clnt_process_events { QUEUE_SIGNAL_EVENT = 1, SOCKET_READ_EVENT }
 
enum  histogram_index_t { SLEEP_N_BUCKETS }
 

Functions

void vl_api_rpc_call_main_thread (void *fp, u8 *data, u32 data_length)
 
u16 vl_client_get_first_plugin_msg_id (const char *plugin_name)
 
void vl_api_send_pending_rpc_requests (vlib_main_t *vm)
 
u8vl_api_serialize_message_table (api_main_t *am, u8 *vector)
 
static void vl_api_send_msg (vl_api_registration_t *rp, u8 *elem)
 
static int vl_api_can_send_msg (vl_api_registration_t *rp)
 
static vl_api_registration_tvl_api_client_index_to_registration (u32 index)
 
static u32 vl_api_registration_file_index (vl_api_registration_t *reg)
 
static clib_file_tvl_api_registration_file (vl_api_registration_t *reg)
 
static void vl_api_registration_del_file (vl_api_registration_t *reg)
 
static clib_error_tvl_api_send_fd_msg (vl_api_registration_t *reg, int fd_to_send)
 
static clib_error_tvl_api_recv_fd_msg (vl_api_registration_t *reg, int *fd_to_recv, u32 wait)
 
vl_api_registration_tsockclnt_get_registration (u32 index)
 
void socksvr_add_pending_output (struct clib_file *uf, struct vl_api_registration_ *cf, u8 *buffer, uword buffer_bytes)
 
void vl_socket_process_msg (struct clib_file *uf, struct vl_api_registration_ *rp, i8 *input_v)
 
u32 sockclnt_open_index (char *client_name, char *hostname, int port)
 
void sockclnt_close_index (u32 index)
 
void vl_client_msg_api_send (vl_api_registration_t *cm, u8 *elem)
 

Variables

vlib_node_registration_t vl_api_clnt_node
 (constructor) VLIB_REGISTER_NODE (vl_api_clnt_node) More...
 
volatile int ** vl_api_queue_cursizes
 
u64 vector_rate_histogram []
 

Macro Definition Documentation

#define foreach_histogram_bucket
Value:
_(400) \
_(200) \
_(100) \
_(10)

Definition at line 114 of file api.h.

Typedef Documentation

Enumeration Type Documentation

Enumerator
SLEEP_N_BUCKETS 

Definition at line 120 of file api.h.

Enumerator
QUEUE_SIGNAL_EVENT 
SOCKET_READ_EVENT 

Definition at line 108 of file api.h.

Function Documentation

void sockclnt_close_index ( u32  index)

Definition at line 151 of file sockclnt_vlib.c.

vl_api_registration_t* sockclnt_get_registration ( u32  index)

Definition at line 172 of file sockclnt_vlib.c.

u32 sockclnt_open_index ( char *  client_name,
char *  hostname,
int  port 
)

Definition at line 72 of file sockclnt_vlib.c.

void socksvr_add_pending_output ( struct clib_file uf,
struct vl_api_registration_ cf,
u8 buffer,
uword  buffer_bytes 
)
static int vl_api_can_send_msg ( vl_api_registration_t rp)
inlinestatic

Definition at line 47 of file api.h.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static vl_api_registration_t* vl_api_client_index_to_registration ( u32  index)
inlinestatic

Definition at line 56 of file api.h.

+ Here is the call graph for this function:

static clib_error_t* vl_api_recv_fd_msg ( vl_api_registration_t reg,
int *  fd_to_recv,
u32  wait 
)
inlinestatic

Definition at line 94 of file api.h.

+ Here is the call graph for this function:

static void vl_api_registration_del_file ( vl_api_registration_t reg)
inlinestatic

Definition at line 77 of file api.h.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static clib_file_t* vl_api_registration_file ( vl_api_registration_t reg)
inlinestatic

Definition at line 71 of file api.h.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static u32 vl_api_registration_file_index ( vl_api_registration_t reg)
inlinestatic

Definition at line 65 of file api.h.

+ Here is the caller graph for this function:

void vl_api_rpc_call_main_thread ( void *  fp,
u8 data,
u32  data_length 
)

Definition at line 644 of file vlib_api.c.

+ Here is the caller graph for this function:

static clib_error_t* vl_api_send_fd_msg ( vl_api_registration_t reg,
int  fd_to_send 
)
inlinestatic

Definition at line 85 of file api.h.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static void vl_api_send_msg ( vl_api_registration_t rp,
u8 elem 
)
inlinestatic

Definition at line 34 of file api.h.

+ Here is the call graph for this function:

void vl_api_send_pending_rpc_requests ( vlib_main_t vm)

Definition at line 1428 of file main.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

u8* vl_api_serialize_message_table ( api_main_t am,
u8 vector 
)

Definition at line 72 of file vlib_api.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

u16 vl_client_get_first_plugin_msg_id ( const char *  plugin_name)

Definition at line 499 of file memory_client.c.

+ Here is the call graph for this function:

void vl_client_msg_api_send ( vl_api_registration_t cm,
u8 elem 
)
void vl_socket_process_msg ( struct clib_file uf,
struct vl_api_registration_ rp,
i8 input_v 
)

Variable Documentation

u64 vector_rate_histogram[]

Definition at line 202 of file vlib_api.c.

vlib_node_registration_t vl_api_clnt_node

(constructor) VLIB_REGISTER_NODE (vl_api_clnt_node)

Definition at line 443 of file vlib_api.c.

volatile int** vl_api_queue_cursizes

Definition at line 61 of file memory_api.c.