FD.io VPP  v21.10.1-2-g0a485f517
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)
 

Functions

static int vtc_cfg_sync (vcl_test_session_t *ts)
 
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_inc_stats_check (vcl_test_session_t *ts)
 
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 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)
 
static int vtc_ctrl_session_init (vcl_test_client_main_t *vcm, vcl_test_session_t *ctrl)
 
static void vt_sigs_handler (int signum, siginfo_t *si, void *uc)
 
static void vt_incercept_sigs (void)
 
int main (int argc, char **argv)
 

Variables

vcl_test_client_main_t vcl_client_main
 
vcl_test_main_t vcl_test_main
 
static int stats_lock = 0
 

Macro Definition Documentation

◆ vtc_max

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

Definition at line 61 of file vcl_test_client.c.

◆ vtc_min

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

Definition at line 60 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 560 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 540 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 581 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 519 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 601 of file vcl_test_client.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 1019 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 612 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 665 of file vcl_test_client.c.

+ Here is the caller graph for this function:

◆ vt_incercept_sigs()

static void vt_incercept_sigs ( void  )
static

Definition at line 1004 of file vcl_test_client.c.

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

◆ vt_sigs_handler()

static void vt_sigs_handler ( int  signum,
siginfo_t *  si,
void *  uc 
)
static

Definition at line 994 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 246 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 120 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 941 of file vcl_test_client.c.

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

◆ vtc_ctrl_session_init()

static int vtc_ctrl_session_init ( vcl_test_client_main_t vcm,
vcl_test_session_t ctrl 
)
static

Definition at line 956 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 437 of file vcl_test_client.c.

+ Here is the caller graph for this function:

◆ vtc_inc_stats_check()

static void vtc_inc_stats_check ( vcl_test_session_t ts)
static

Definition at line 297 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 399 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 694 of file vcl_test_client.c.

+ Here is the call graph for this function:
+ 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 921 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 457 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 212 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 312 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 281 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 172 of file vcl_test_client.c.

Variable Documentation

◆ stats_lock

int stats_lock = 0
static

Definition at line 243 of file vcl_test_client.c.

◆ vcl_client_main

vcl_test_client_main_t vcl_client_main

Definition at line 58 of file vcl_test_client.c.

◆ vcl_test_main

vcl_test_main_t vcl_test_main

Definition at line 63 of file vcl_test_client.c.