FD.io VPP  v19.08-27-gf4dcae4
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

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

Definition at line 63 of file vcl_test_client.c.

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

Definition at line 62 of file vcl_test_client.c.

Function Documentation

static void cfg_num_test_sessions_set ( void  )
static

Definition at line 703 of file vcl_test_client.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static void cfg_num_writes_set ( void  )
static

Definition at line 683 of file vcl_test_client.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static void cfg_rxbuf_size_set ( void  )
static

Definition at line 724 of file vcl_test_client.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static void cfg_txbuf_size_set ( void  )
static

Definition at line 662 of file vcl_test_client.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static void cfg_verbose_toggle ( void  )
static

Definition at line 744 of file vcl_test_client.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static void dump_help ( void  )
static

Definition at line 636 of file vcl_test_client.c.

+ Here is the caller graph for this function:

int main ( int  argc,
char **  argv 
)

Definition at line 1096 of file vcl_test_client.c.

+ Here is the call graph for this function:

static vcl_test_t parse_input ( )
static

Definition at line 755 of file vcl_test_client.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void print_usage_and_exit ( void  )

Definition at line 808 of file vcl_test_client.c.

+ Here is the caller graph for this function:

static void vtc_accumulate_stats ( vcl_test_client_worker_t wrk,
vcl_test_session_t ctrl 
)
static

Definition at line 367 of file vcl_test_client.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

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:

static int vtc_connect_test_sessions ( vcl_test_client_worker_t wrk)
static

Definition at line 221 of file vcl_test_client.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static void vtc_ctrl_session_exit ( void  )
static

Definition at line 1078 of file vcl_test_client.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static void vtc_echo_client ( vcl_test_client_main_t vcm)
static

Definition at line 554 of file vcl_test_client.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static void vtc_print_stats ( vcl_test_session_t ctrl)
static

Definition at line 516 of file vcl_test_client.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

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

Definition at line 835 of file vcl_test_client.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

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:

static void vtc_read_user_input ( vcl_test_session_t ctrl)
static

Definition at line 1058 of file vcl_test_client.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static void vtc_stream_client ( vcl_test_client_main_t vcm)
static

Definition at line 578 of file vcl_test_client.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static int vtc_worker_init ( vcl_test_client_worker_t wrk)
static

Definition at line 320 of file vcl_test_client.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static void* vtc_worker_loop ( void *  arg)
static

Definition at line 427 of file vcl_test_client.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static void vtc_worker_sessions_exit ( vcl_test_client_worker_t wrk)
static

Definition at line 402 of file vcl_test_client.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static int vtc_worker_test_setup ( vcl_test_client_worker_t wrk)
static

Definition at line 279 of file vcl_test_client.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Variable Documentation

int stats_lock = 0
static

Definition at line 364 of file vcl_test_client.c.

vcl_test_client_main_t vcl_client_main

Definition at line 60 of file vcl_test_client.c.