|
FD.io VPP
v21.10.1-2-g0a485f517
Vector Packet Processing
|
Go to the documentation of this file.
18 #ifndef included_vlibmemory_api_common_h
19 #define included_vlibmemory_api_common_h
64 #define VL_API_MAX_TIME_IN_HANDLER 0.001
137 #define foreach_histogram_bucket \
145 #define _(n) SLEEP_##n##_US,
void vl_client_msg_api_send(vl_api_registration_t *cm, u8 *elem)
volatile int ** vl_api_queue_cursizes
static vl_api_registration_t * vl_api_client_index_to_registration(u32 index)
clib_file_main_t file_main
static u32 vl_api_registration_file_index(vl_api_registration_t *reg)
static void vl_api_send_msg(vl_api_registration_t *rp, u8 *elem)
#define foreach_histogram_bucket
vl_registration_type_t registration_type
type
static int vl_api_process_may_suspend(vlib_main_t *vm, vl_api_registration_t *rp, f64 start)
vl_api_registration_t * sockclnt_get_registration(u32 index)
vlib_main_t * vm
X-connect all packets from the HOST to the PHY.
svm_queue_t * vl_input_queue
shared memory only: pointer to client input queue
vl_api_registration_t * vl_socket_api_client_handle_to_registration(u32 handle)
void vl_api_send_pending_rpc_requests(vlib_main_t *vm)
static clib_error_t * vl_api_recv_fd_msg(vl_api_registration_t *reg, int fds[], int n_fds, u32 wait)
void socksvr_add_pending_output(struct clib_file *uf, struct vl_api_registration_ *cf, u8 *buffer, uword buffer_bytes)
u8 * vl_api_serialize_message_table(api_main_t *am, u8 *vector)
void vl_socket_api_send(vl_api_registration_t *rp, u8 *elem)
void vl_api_force_rpc_call_main_thread(void *fp, u8 *data, u32 data_length)
An API client registration, only in vpp/vlib.
u32 clib_file_index
Socket only: file index.
vnet_feature_config_main_t * cm
struct _vlib_node_registration vlib_node_registration_t
static clib_file_t * clib_file_get(clib_file_main_t *fm, u32 file_index)
API main structure, used by both vpp and binary API clients.
u16 vl_client_get_first_plugin_msg_id(const char *plugin_name)
clib_error_t * vl_sock_api_send_fd_msg(int socket_fd, int fds[], int n_fds)
enum vl_api_clnt_process_events vl_api_clnt_process_events_t
static clib_error_t * vl_api_send_fd_msg(vl_api_registration_t *reg, int fds[], int n_fds)
static clib_file_t * vl_api_registration_file(vl_api_registration_t *reg)
static int vl_api_can_send_msg(vl_api_registration_t *rp)
static void clib_file_del(clib_file_main_t *um, clib_file_t *f)
u64 vector_rate_histogram[]
void vl_api_rpc_call_main_thread(void *fp, u8 *data, u32 data_length)
void vl_socket_process_msg(struct clib_file *uf, struct vl_api_registration_ *rp, i8 *input_v)
u8 vl_socket_api_registration_handle_is_valid(u32 reg_handle)
void vl_msg_api_send_shmem(svm_queue_t *q, u8 *elem)
static void vl_api_registration_del_file(vl_api_registration_t *reg)
clib_error_t * vl_sock_api_recv_fd_msg(int socket_fd, int fds[], int n_fds, u32 wait)
void sockclnt_close_index(u32 index)
int vl_mem_api_can_send(svm_queue_t *q)
@ REGISTRATION_TYPE_SHMEM
Shared memory connection.
vl_api_clnt_process_events
static f64 vlib_time_now(vlib_main_t *vm)
u32 sockclnt_open_index(char *client_name, char *hostname, int port)
vl_api_registration_t * vl_mem_api_client_index_to_registration(u32 handle)
vlib_node_registration_t vl_api_clnt_node
(constructor) VLIB_REGISTER_NODE (vl_api_clnt_node)
#define VL_API_MAX_TIME_IN_HANDLER