FD.io VPP  v21.01.1
Vector Packet Processing
api.h File Reference
+ Include dependency graph for api.h:

Go to the source code of this file.

Macros

#define VL_API_MAX_TIME_IN_HANDLER   0.001 /* 1 ms */
 
#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)
 
void vl_api_force_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 int vl_api_process_may_suspend (vlib_main_t *vm, vl_api_registration_t *rp, f64 start)
 
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

◆ foreach_histogram_bucket

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

Definition at line 137 of file api.h.

◆ VL_API_MAX_TIME_IN_HANDLER

#define VL_API_MAX_TIME_IN_HANDLER   0.001 /* 1 ms */

Definition at line 64 of file api.h.

Typedef Documentation

◆ vl_api_clnt_process_events_t

Enumeration Type Documentation

◆ histogram_index_t

Enumerator
SLEEP_N_BUCKETS 

Definition at line 143 of file api.h.

◆ vl_api_clnt_process_events

Enumerator
QUEUE_SIGNAL_EVENT 
SOCKET_READ_EVENT 

Definition at line 131 of file api.h.

Function Documentation

◆ sockclnt_close_index()

void sockclnt_close_index ( u32  index)

◆ sockclnt_get_registration()

vl_api_registration_t* sockclnt_get_registration ( u32  index)

◆ sockclnt_open_index()

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

◆ socksvr_add_pending_output()

void socksvr_add_pending_output ( struct clib_file uf,
struct vl_api_registration_ cf,
u8 buffer,
uword  buffer_bytes 
)

◆ vl_api_can_send_msg()

static int vl_api_can_send_msg ( vl_api_registration_t rp)
inlinestatic

Definition at line 48 of file api.h.

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

◆ vl_api_client_index_to_registration()

static vl_api_registration_t* vl_api_client_index_to_registration ( u32  index)
inlinestatic

Definition at line 79 of file api.h.

+ Here is the call graph for this function:

◆ vl_api_force_rpc_call_main_thread()

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

Definition at line 630 of file vlib_api.c.

+ Here is the caller graph for this function:

◆ vl_api_process_may_suspend()

static int vl_api_process_may_suspend ( vlib_main_t vm,
vl_api_registration_t rp,
f64  start 
)
inlinestatic

Definition at line 66 of file api.h.

+ Here is the call graph for this function:

◆ vl_api_recv_fd_msg()

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 116 of file api.h.

+ Here is the call graph for this function:

◆ vl_api_registration_del_file()

static void vl_api_registration_del_file ( vl_api_registration_t reg)
inlinestatic

Definition at line 99 of file api.h.

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

◆ vl_api_registration_file()

static clib_file_t* vl_api_registration_file ( vl_api_registration_t reg)
inlinestatic

Definition at line 93 of file api.h.

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

◆ vl_api_registration_file_index()

static u32 vl_api_registration_file_index ( vl_api_registration_t reg)
inlinestatic

Definition at line 87 of file api.h.

+ Here is the caller graph for this function:

◆ vl_api_rpc_call_main_thread()

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

Definition at line 619 of file vlib_api.c.

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

◆ vl_api_send_fd_msg()

static clib_error_t* vl_api_send_fd_msg ( vl_api_registration_t reg,
int  fds[],
int  n_fds 
)
inlinestatic

Definition at line 107 of file api.h.

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

◆ vl_api_send_msg()

static void vl_api_send_msg ( vl_api_registration_t rp,
u8 elem 
)
inlinestatic

Definition at line 35 of file api.h.

+ Here is the call graph for this function:

◆ vl_api_send_pending_rpc_requests()

void vl_api_send_pending_rpc_requests ( vlib_main_t vm)

Definition at line 1699 of file main.c.

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

◆ vl_api_serialize_message_table()

u8* vl_api_serialize_message_table ( api_main_t am,
u8 vector 
)

Definition at line 204 of file api_shared.c.

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

◆ vl_client_get_first_plugin_msg_id()

u16 vl_client_get_first_plugin_msg_id ( const char *  plugin_name)

Definition at line 552 of file memory_client.c.

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

◆ vl_client_msg_api_send()

void vl_client_msg_api_send ( vl_api_registration_t cm,
u8 elem 
)

◆ vl_socket_process_msg()

void vl_socket_process_msg ( struct clib_file uf,
struct vl_api_registration_ rp,
i8 input_v 
)

Variable Documentation

◆ vector_rate_histogram

u64 vector_rate_histogram[]

Definition at line 179 of file vlib_api.c.

◆ vl_api_clnt_node

vlib_node_registration_t vl_api_clnt_node

(constructor) VLIB_REGISTER_NODE (vl_api_clnt_node)

Definition at line 433 of file vlib_api.c.

◆ vl_api_queue_cursizes

volatile int** vl_api_queue_cursizes

Definition at line 61 of file memory_api.c.