FD.io VPP  v21.06-3-gbb25fbf28
Vector Packet Processing
vcl_test_server.c File Reference
+ Include dependency graph for vcl_test_server.c:

Go to the source code of this file.

Data Structures

struct  vcl_test_server_cfg_t
 
struct  vcl_test_server_worker_t
 
struct  vcl_test_server_main_t
 

Functions

static void conn_pool_expand (vcl_test_server_worker_t *wrk, size_t expand_size)
 
static vcl_test_session_tconn_pool_alloc (vcl_test_server_worker_t *wrk)
 
static void conn_pool_free (vcl_test_session_t *ts)
 
static void sync_config_and_reply (vcl_test_session_t *conn, vcl_test_cfg_t *rx_cfg)
 
static void vts_session_close (vcl_test_session_t *conn)
 
static void vts_session_cleanup (vcl_test_session_t *ts)
 
static void vts_wrk_cleanup_all (vcl_test_server_worker_t *wrk)
 
static void vts_test_cmd (vcl_test_server_worker_t *wrk, vcl_test_session_t *conn, vcl_test_cfg_t *rx_cfg)
 
static void vts_server_process_rx (vcl_test_session_t *conn, int rx_bytes)
 
static void vts_server_echo (vcl_test_session_t *conn, int rx_bytes)
 
static vcl_test_session_tvts_accept_client (vcl_test_server_worker_t *wrk, int listen_fd)
 
static void print_usage_and_exit (void)
 
static void vcl_test_init_endpoint_addr (vcl_test_server_main_t *vsm)
 
static void vcl_test_server_process_opts (vcl_test_server_main_t *vsm, int argc, char **argv)
 
int vts_handle_ctrl_cfg (vcl_test_server_worker_t *wrk, vcl_test_cfg_t *rx_cfg, vcl_test_session_t *conn, int rx_bytes)
 
static void vts_worker_init (vcl_test_server_worker_t *wrk)
 
static int vts_conn_read (vcl_test_session_t *conn)
 
static void vts_inc_stats_check (vcl_test_session_t *ts)
 
static void * vts_worker_loop (void *arg)
 
static void vts_ctrl_session_init (vcl_test_server_worker_t *wrk)
 
int main (int argc, char **argv)
 

Variables

vcl_test_main_t vcl_test_main
 
static vcl_test_server_main_t vcl_server_main
 

Function Documentation

◆ conn_pool_alloc()

static vcl_test_session_t* conn_pool_alloc ( vcl_test_server_worker_t wrk)
inlinestatic

Definition at line 94 of file vcl_test_server.c.

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

◆ conn_pool_expand()

static void conn_pool_expand ( vcl_test_server_worker_t wrk,
size_t  expand_size 
)
inlinestatic

Definition at line 69 of file vcl_test_server.c.

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

◆ conn_pool_free()

static void conn_pool_free ( vcl_test_session_t ts)
inlinestatic

Definition at line 125 of file vcl_test_server.c.

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

◆ main()

int main ( int  argc,
char **  argv 
)

Definition at line 784 of file vcl_test_server.c.

+ Here is the call graph for this function:

◆ print_usage_and_exit()

static void print_usage_and_exit ( void  )
static

Definition at line 351 of file vcl_test_server.c.

+ Here is the caller graph for this function:

◆ sync_config_and_reply()

static void sync_config_and_reply ( vcl_test_session_t conn,
vcl_test_cfg_t rx_cfg 
)
inlinestatic

Definition at line 133 of file vcl_test_server.c.

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

◆ vcl_test_init_endpoint_addr()

static void vcl_test_init_endpoint_addr ( vcl_test_server_main_t vsm)
static

Definition at line 366 of file vcl_test_server.c.

+ Here is the caller graph for this function:

◆ vcl_test_server_process_opts()

static void vcl_test_server_process_opts ( vcl_test_server_main_t vsm,
int  argc,
char **  argv 
)
static

Definition at line 403 of file vcl_test_server.c.

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

◆ vts_accept_client()

static vcl_test_session_t* vts_accept_client ( vcl_test_server_worker_t wrk,
int  listen_fd 
)
static

Definition at line 310 of file vcl_test_server.c.

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

◆ vts_conn_read()

static int vts_conn_read ( vcl_test_session_t conn)
inlinestatic

Definition at line 577 of file vcl_test_server.c.

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

◆ vts_ctrl_session_init()

static void vts_ctrl_session_init ( vcl_test_server_worker_t wrk)
static

Definition at line 747 of file vcl_test_server.c.

+ Here is the caller graph for this function:

◆ vts_handle_ctrl_cfg()

int vts_handle_ctrl_cfg ( vcl_test_server_worker_t wrk,
vcl_test_cfg_t rx_cfg,
vcl_test_session_t conn,
int  rx_bytes 
)

Definition at line 481 of file vcl_test_server.c.

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

◆ vts_inc_stats_check()

static void vts_inc_stats_check ( vcl_test_session_t ts)
static

Definition at line 587 of file vcl_test_server.c.

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

◆ vts_server_echo()

static void vts_server_echo ( vcl_test_session_t conn,
int  rx_bytes 
)
static

Definition at line 291 of file vcl_test_server.c.

+ Here is the caller graph for this function:

◆ vts_server_process_rx()

static void vts_server_process_rx ( vcl_test_session_t conn,
int  rx_bytes 
)
inlinestatic

Definition at line 267 of file vcl_test_server.c.

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

◆ vts_session_cleanup()

static void vts_session_cleanup ( vcl_test_session_t ts)
static

Definition at line 165 of file vcl_test_server.c.

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

◆ vts_session_close()

static void vts_session_close ( vcl_test_session_t conn)
static

Definition at line 149 of file vcl_test_server.c.

+ Here is the caller graph for this function:

◆ vts_test_cmd()

static void vts_test_cmd ( vcl_test_server_worker_t wrk,
vcl_test_session_t conn,
vcl_test_cfg_t rx_cfg 
)
static

Definition at line 187 of file vcl_test_server.c.

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

◆ vts_worker_init()

static void vts_worker_init ( vcl_test_server_worker_t wrk)
static

Definition at line 535 of file vcl_test_server.c.

+ Here is the caller graph for this function:

◆ vts_worker_loop()

static void* vts_worker_loop ( void *  arg)
static

Definition at line 602 of file vcl_test_server.c.

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

◆ vts_wrk_cleanup_all()

static void vts_wrk_cleanup_all ( vcl_test_server_worker_t wrk)
static

Definition at line 172 of file vcl_test_server.c.

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

Variable Documentation

◆ vcl_server_main

vcl_test_server_main_t vcl_server_main
static

Definition at line 66 of file vcl_test_server.c.

◆ vcl_test_main

vcl_test_main_t vcl_test_main

Definition at line 64 of file vcl_test_server.c.