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

Go to the source code of this file.

Functions

u8format_session_fifos (u8 *s, va_list *args)
 
u8format_session_state (u8 *s, va_list *args)
 
u8format_session_flags (u8 *s, va_list *args)
 
u8format_session (u8 *s, va_list *args)
 Format stream session as per the following format. More...
 
uword unformat_stream_session_id (unformat_input_t *input, va_list *args)
 
uword unformat_session_state (unformat_input_t *input, va_list *args)
 
uword unformat_session (unformat_input_t *input, va_list *args)
 
uword unformat_transport_connection (unformat_input_t *input, va_list *args)
 
static void session_cli_show_all_sessions (vlib_main_t *vm, int verbose)
 
static int session_cli_filter_check (session_t *s, session_state_t *states, transport_proto_t tp)
 
static void session_cli_show_session_filter (vlib_main_t *vm, u32 thread_index, u32 start, u32 end, session_state_t *states, transport_proto_t tp, int verbose)
 
void session_cli_show_events_thread (vlib_main_t *vm, u32 thread_index)
 
static void session_cli_show_events (vlib_main_t *vm, u32 thread_index)
 
static void session_cli_print_session_states (vlib_main_t *vm)
 
static clib_error_tshow_session_command_fn (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 
static int clear_session (session_t *s)
 
static clib_error_tclear_session_command_fn (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 
static clib_error_tshow_session_fifo_trace_command_fn (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 
static clib_error_tsession_replay_fifo_command_fn (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 
static clib_error_tsession_enable_disable_fn (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 

Variables

const char * session_state_str []
 
const char * session_flags_str []
 
vlib_cli_command_t vlib_cli_show_session_command
 (constructor) VLIB_CLI_COMMAND (vlib_cli_show_session_command) More...
 
static vlib_cli_command_t clear_session_command
 (constructor) VLIB_CLI_COMMAND (clear_session_command) More...
 
static vlib_cli_command_t show_session_fifo_trace_command
 (constructor) VLIB_CLI_COMMAND (show_session_fifo_trace_command) More...
 
static vlib_cli_command_t session_replay_fifo_trace_command
 (constructor) VLIB_CLI_COMMAND (session_replay_fifo_trace_command) More...
 
static vlib_cli_command_t session_enable_disable_command
 (constructor) VLIB_CLI_COMMAND (session_enable_disable_command) More...
 

Function Documentation

◆ clear_session()

static int clear_session ( session_t s)
static

Definition at line 682 of file session_cli.c.

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

◆ clear_session_command_fn()

static clib_error_t* clear_session_command_fn ( vlib_main_t vm,
unformat_input_t input,
vlib_cli_command_t cmd 
)
static

Definition at line 690 of file session_cli.c.

+ Here is the call graph for this function:

◆ format_session()

u8* format_session ( u8 s,
va_list *  args 
)

Format stream session as per the following format.

verbose: "Connection", "Rx fifo", "Tx fifo", "Session Index" non-verbose: "Connection"

Definition at line 101 of file session_cli.c.

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

◆ format_session_fifos()

u8* format_session_fifos ( u8 s,
va_list *  args 
)

Definition at line 19 of file session_cli.c.

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

◆ format_session_flags()

u8* format_session_flags ( u8 s,
va_list *  args 
)

Definition at line 72 of file session_cli.c.

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

◆ format_session_state()

u8* format_session_state ( u8 s,
va_list *  args 
)

Definition at line 53 of file session_cli.c.

+ Here is the caller graph for this function:

◆ session_cli_filter_check()

static int session_cli_filter_check ( session_t s,
session_state_t states,
transport_proto_t  tp 
)
static

Definition at line 364 of file session_cli.c.

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

◆ session_cli_print_session_states()

static void session_cli_print_session_states ( vlib_main_t vm)
static

Definition at line 478 of file session_cli.c.

+ Here is the caller graph for this function:

◆ session_cli_show_all_sessions()

static void session_cli_show_all_sessions ( vlib_main_t vm,
int  verbose 
)
static

Definition at line 304 of file session_cli.c.

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

◆ session_cli_show_events()

static void session_cli_show_events ( vlib_main_t vm,
u32  thread_index 
)
static

Definition at line 464 of file session_cli.c.

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

◆ session_cli_show_events_thread()

void session_cli_show_events_thread ( vlib_main_t vm,
u32  thread_index 
)

Definition at line 445 of file session_cli.c.

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

◆ session_cli_show_session_filter()

static void session_cli_show_session_filter ( vlib_main_t vm,
u32  thread_index,
u32  start,
u32  end,
session_state_t states,
transport_proto_t  tp,
int  verbose 
)
static

Definition at line 384 of file session_cli.c.

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

◆ session_enable_disable_fn()

static clib_error_t* session_enable_disable_fn ( vlib_main_t vm,
unformat_input_t input,
vlib_cli_command_t cmd 
)
static

Definition at line 851 of file session_cli.c.

+ Here is the call graph for this function:

◆ session_replay_fifo_command_fn()

static clib_error_t* session_replay_fifo_command_fn ( vlib_main_t vm,
unformat_input_t input,
vlib_cli_command_t cmd 
)
static

Definition at line 804 of file session_cli.c.

+ Here is the call graph for this function:

◆ show_session_command_fn()

static clib_error_t* show_session_command_fn ( vlib_main_t vm,
unformat_input_t input,
vlib_cli_command_t cmd 
)
static

Definition at line 486 of file session_cli.c.

+ Here is the call graph for this function:

◆ show_session_fifo_trace_command_fn()

static clib_error_t* show_session_fifo_trace_command_fn ( vlib_main_t vm,
unformat_input_t input,
vlib_cli_command_t cmd 
)
static

Definition at line 754 of file session_cli.c.

+ Here is the call graph for this function:

◆ unformat_session()

uword unformat_session ( unformat_input_t input,
va_list *  args 
)

Definition at line 238 of file session_cli.c.

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

◆ unformat_session_state()

uword unformat_session_state ( unformat_input_t input,
va_list *  args 
)

Definition at line 217 of file session_cli.c.

+ Here is the caller graph for this function:

◆ unformat_stream_session_id()

uword unformat_stream_session_id ( unformat_input_t input,
va_list *  args 
)

Definition at line 164 of file session_cli.c.

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

◆ unformat_transport_connection()

uword unformat_transport_connection ( unformat_input_t input,
va_list *  args 
)

Definition at line 269 of file session_cli.c.

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

Variable Documentation

◆ clear_session_command

vlib_cli_command_t clear_session_command
static
Initial value:
=
{
.path = "clear session",
.short_help = "clear session thread <thread> session <index>",
}

(constructor) VLIB_CLI_COMMAND (clear_session_command)

Definition at line 745 of file session_cli.c.

◆ session_enable_disable_command

vlib_cli_command_t session_enable_disable_command
static
Initial value:
=
{
.path = "session",
.short_help = "session [enable|disable]",
}

(constructor) VLIB_CLI_COMMAND (session_enable_disable_command)

Definition at line 881 of file session_cli.c.

◆ session_flags_str

const char* session_flags_str[]
Initial value:
= {
#define _(sym, str)
}

Definition at line 65 of file session_cli.c.

◆ session_replay_fifo_trace_command

vlib_cli_command_t session_replay_fifo_trace_command
static
Initial value:
=
{
.path = "session replay fifo",
.short_help = "session replay fifo <session>",
}

(constructor) VLIB_CLI_COMMAND (session_replay_fifo_trace_command)

Definition at line 842 of file session_cli.c.

◆ session_state_str

const char* session_state_str[]
Initial value:
= {
#define _(sym, str)
}

Definition at line 46 of file session_cli.c.

◆ show_session_fifo_trace_command

vlib_cli_command_t show_session_fifo_trace_command
static
Initial value:
=
{
.path = "show session fifo trace",
.short_help = "show session fifo trace <session>",
}

(constructor) VLIB_CLI_COMMAND (show_session_fifo_trace_command)

Definition at line 795 of file session_cli.c.

◆ vlib_cli_show_session_command

vlib_cli_command_t vlib_cli_show_session_command
Initial value:
=
{
.path = "show session",
.short_help = "show session [verbose [n]] [listeners <proto>] "
"[<session-id> [elog]] [thread <n> [index <n>] "
"[proto <proto>] [state <state>] [range <min> [<max>]] "
"[protos] [states] ",
}

(constructor) VLIB_CLI_COMMAND (vlib_cli_show_session_command)

Definition at line 670 of file session_cli.c.

foreach_session_flag
@ foreach_session_flag
Definition: session_types.h:171
clear_session_command_fn
static clib_error_t * clear_session_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
Definition: session_cli.c:690
foreach_session_state
#define foreach_session_state
Definition: session_types.h:129
session_replay_fifo_command_fn
static clib_error_t * session_replay_fifo_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
Definition: session_cli.c:804
show_session_command_fn
static clib_error_t * show_session_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
Definition: session_cli.c:486
session_enable_disable_fn
static clib_error_t * session_enable_disable_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
Definition: session_cli.c:851
show_session_fifo_trace_command_fn
static clib_error_t * show_session_fifo_trace_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
Definition: session_cli.c:754