FD.io VPP  v19.08.3-2-gbabecb413
Vector Packet Processing
vcl_test_client.c File Reference
+ Include dependency graph for vcl_test_client.c:

Go to the source code of this file.

Data Structures

struct  vcl_test_client_worker_t
 
struct  vcl_test_client_main_t
 

Macros

#define vtc_min(a, b)   (a < b ? a : b)
 
#define vtc_max(a, b)   (a > b ? a : b)
 
#define INDENT   "\n "
 

Functions

static int vtc_cfg_sync (vcl_test_session_t *ts)
 
static int vtc_quic_connect_test_sessions (vcl_test_client_worker_t *wrk)
 
static int vtc_connect_test_sessions (vcl_test_client_worker_t *wrk)
 
static int vtc_worker_test_setup (vcl_test_client_worker_t *wrk)
 
static int vtc_worker_init (vcl_test_client_worker_t *wrk)
 
static void vtc_accumulate_stats (vcl_test_client_worker_t *wrk, vcl_test_session_t *ctrl)
 
static void vtc_worker_sessions_exit (vcl_test_client_worker_t *wrk)
 
static void * vtc_worker_loop (void *arg)
 
static void vtc_print_stats (vcl_test_session_t *ctrl)
 
static void vtc_echo_client (vcl_test_client_main_t *vcm)
 
static void vtc_stream_client (vcl_test_client_main_t *vcm)
 
static void dump_help (void)
 
static void cfg_txbuf_size_set (void)
 
static void cfg_num_writes_set (void)
 
static void cfg_num_test_sessions_set (void)
 
static void cfg_rxbuf_size_set (void)
 
static void cfg_verbose_toggle (void)
 
static vcl_test_t parse_input ()
 
void print_usage_and_exit (void)
 
static void vtc_process_opts (vcl_test_client_main_t *vcm, int argc, char **argv)
 
static void vtc_read_user_input (vcl_test_session_t *ctrl)
 
static void vtc_ctrl_session_exit (void)
 
int main (int argc, char **argv)
 

Variables

vcl_test_client_main_t vcl_client_main
 
static int stats_lock = 0
 

Macro Definition Documentation

◆ INDENT

#define INDENT   "\n "

◆ vtc_max

#define vtc_max (   a,
 
)    (a > b ? a : b)

Definition at line 63 of file vcl_test_client.c.

◆ vtc_min

#define vtc_min (   a,
 
)    (a < b ? a : b)

Definition at line 62 of file vcl_test_client.c.

Function Documentation

◆ cfg_num_test_sessions_set()

static void cfg_num_test_sessions_set ( void  )
static

Definition at line 712 of file vcl_test_client.c.

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

◆ cfg_num_writes_set()

static void cfg_num_writes_set ( void  )
static

Definition at line 692 of file vcl_test_client.c.

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

◆ cfg_rxbuf_size_set()

static void cfg_rxbuf_size_set ( void  )
static

Definition at line 733 of file vcl_test_client.c.

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

◆ cfg_txbuf_size_set()

static void cfg_txbuf_size_set ( void  )
static

Definition at line 671 of file vcl_test_client.c.

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

◆ cfg_verbose_toggle()

static void cfg_verbose_toggle ( void  )
static

Definition at line 753 of file vcl_test_client.c.

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

◆ dump_help()

static void dump_help ( void  )
static

Definition at line 645 of file vcl_test_client.c.

+ Here is the caller graph for this function:

◆ main()

int main ( int  argc,
char **  argv 
)

Definition at line 1105 of file vcl_test_client.c.

+ Here is the call graph for this function:

◆ parse_input()

static vcl_test_t parse_input ( )
static

Definition at line 764 of file vcl_test_client.c.

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

◆ print_usage_and_exit()

void print_usage_and_exit ( void  )

Definition at line 817 of file vcl_test_client.c.

+ Here is the caller graph for this function:

◆ vtc_accumulate_stats()

static void vtc_accumulate_stats ( vcl_test_client_worker_t wrk,
vcl_test_session_t ctrl 
)
static

Definition at line 376 of file vcl_test_client.c.

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

◆ vtc_cfg_sync()

static int vtc_cfg_sync ( vcl_test_session_t ts)
static

Definition at line 66 of file vcl_test_client.c.

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

◆ vtc_connect_test_sessions()

static int vtc_connect_test_sessions ( vcl_test_client_worker_t wrk)
static

Definition at line 225 of file vcl_test_client.c.

+ Here is the call graph for this function:

◆ vtc_ctrl_session_exit()

static void vtc_ctrl_session_exit ( void  )
static

Definition at line 1087 of file vcl_test_client.c.

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

◆ vtc_echo_client()

static void vtc_echo_client ( vcl_test_client_main_t vcm)
static

Definition at line 563 of file vcl_test_client.c.

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

◆ vtc_print_stats()

static void vtc_print_stats ( vcl_test_session_t ctrl)
static

Definition at line 525 of file vcl_test_client.c.

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

◆ vtc_process_opts()

static void vtc_process_opts ( vcl_test_client_main_t vcm,
int  argc,
char **  argv 
)
static

Definition at line 844 of file vcl_test_client.c.

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

◆ vtc_quic_connect_test_sessions()

static int vtc_quic_connect_test_sessions ( vcl_test_client_worker_t wrk)
static

Definition at line 122 of file vcl_test_client.c.

+ Here is the caller graph for this function:

◆ vtc_read_user_input()

static void vtc_read_user_input ( vcl_test_session_t ctrl)
static

Definition at line 1067 of file vcl_test_client.c.

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

◆ vtc_stream_client()

static void vtc_stream_client ( vcl_test_client_main_t vcm)
static

Definition at line 587 of file vcl_test_client.c.

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

◆ vtc_worker_init()

static int vtc_worker_init ( vcl_test_client_worker_t wrk)
static

Definition at line 329 of file vcl_test_client.c.

+ Here is the caller graph for this function:

◆ vtc_worker_loop()

static void* vtc_worker_loop ( void *  arg)
static

Definition at line 436 of file vcl_test_client.c.

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

◆ vtc_worker_sessions_exit()

static void vtc_worker_sessions_exit ( vcl_test_client_worker_t wrk)
static

Definition at line 411 of file vcl_test_client.c.

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

◆ vtc_worker_test_setup()

static int vtc_worker_test_setup ( vcl_test_client_worker_t wrk)
static

Definition at line 288 of file vcl_test_client.c.

+ Here is the call graph for this function:

Variable Documentation

◆ stats_lock

int stats_lock = 0
static

Definition at line 373 of file vcl_test_client.c.

◆ vcl_client_main

vcl_test_client_main_t vcl_client_main

Definition at line 60 of file vcl_test_client.c.