FD.io VPP  v19.08-27-gf4dcae4
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 fds[], int n_fds)
 
static clib_error_tvl_api_recv_fd_msg (vl_api_registration_t *reg, int fds[], int n_fds, 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)
vl_api_registration_t* sockclnt_get_registration ( u32  index)
u32 sockclnt_open_index ( char *  client_name,
char *  hostname,
int  port 
)
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  fds[],
int  n_fds,
u32  wait 
)
inlinestatic

Definition at line 93 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 76 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 70 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 64 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 600 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  fds[],
int  n_fds 
)
inlinestatic

Definition at line 84 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 1667 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 193 of file api_shared.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 510 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 179 of file vlib_api.c.

vlib_node_registration_t vl_api_clnt_node

(constructor) VLIB_REGISTER_NODE (vl_api_clnt_node)

Definition at line 415 of file vlib_api.c.

volatile int** vl_api_queue_cursizes

Definition at line 61 of file memory_api.c.