FD.io VPP  v20.01-rc0-788-g61e3ade84
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)
 
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 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 115 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 121 of file api.h.

◆ vl_api_clnt_process_events

Enumerator
QUEUE_SIGNAL_EVENT 
SOCKET_READ_EVENT 

Definition at line 109 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 57 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 611 of file vlib_api.c.

+ Here is the caller 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 94 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 77 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 71 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 65 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 600 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 85 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 1674 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 193 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 532 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 415 of file vlib_api.c.

◆ vl_api_queue_cursizes

volatile int** vl_api_queue_cursizes

Definition at line 61 of file memory_api.c.