FD.io VPP  v20.05.1-6-gf53edbc3b
Vector Packet Processing
flow_cli.c File Reference
+ Include dependency graph for flow_cli.c:

Go to the source code of this file.

Macros

#define check_rss_types(_str)
 

Functions

uword unformat_ip_port_and_mask (unformat_input_t *input, va_list *args)
 
u8format_ip_port_and_mask (u8 *s, va_list *args)
 
u8format_flow_error (u8 *s, va_list *args)
 
u8format_flow_actions (u8 *s, va_list *args)
 
u8format_flow_enabled_hw (u8 *s, va_list *args)
 
static clib_error_tshow_flow_entry (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd_arg)
 
static clib_error_tshow_flow_ranges (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd_arg)
 
static clib_error_tshow_flow_interface (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd_arg)
 
static clib_error_ttest_flow (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd_arg)
 
static u8format_flow_match_element (u8 *s, va_list *args)
 
static foreach_flow_type u8format_flow_match (u8 *s, va_list *args)
 
static u8format_flow (u8 *s, va_list *args)
 

Variables

static format_function_t format_flow
 
static const char * flow_type_strings []
 
static vlib_cli_command_t show_flow_entry_command
 (constructor) VLIB_CLI_COMMAND (show_flow_entry_command) More...
 
static vlib_cli_command_t show_flow_ranges_command
 (constructor) VLIB_CLI_COMMAND (show_flow_ranges_command) More...
 
static vlib_cli_command_t show_flow_interface_command
 (constructor) VLIB_CLI_COMMAND (show_flow_interface_command) More...
 
static vlib_cli_command_t test_flow_command
 (constructor) VLIB_CLI_COMMAND (test_flow_command) More...
 

Macro Definition Documentation

◆ check_rss_types

#define check_rss_types (   _str)
Value:
if (_str != NULL) {\
type_str = _str;\
if (0) \
; \
foreach_flow_rss_types \
else \
{ \
return clib_error_return (0, "parse error: '%U'", \
format_unformat_error(), line_input); \
} \
}
#define clib_error_return(e, args...)
Definition: error.h:99
u8 * format_unformat_error(u8 *s, va_list *va)
Definition: unformat.c:91

Function Documentation

◆ format_flow()

static u8* format_flow ( u8 s,
va_list *  args 
)
static

Definition at line 737 of file flow_cli.c.

+ Here is the call graph for this function:

◆ format_flow_actions()

u8* format_flow_actions ( u8 s,
va_list *  args 
)

Definition at line 79 of file flow_cli.c.

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

◆ format_flow_enabled_hw()

u8* format_flow_enabled_hw ( u8 s,
va_list *  args 
)

Definition at line 94 of file flow_cli.c.

+ Here is the call graph for this function:

◆ format_flow_error()

u8* format_flow_error ( u8 s,
va_list *  args 
)

Definition at line 64 of file flow_cli.c.

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

◆ format_flow_match()

static foreach_flow_type u8* format_flow_match ( u8 s,
va_list *  args 
)
static

Definition at line 723 of file flow_cli.c.

+ Here is the caller graph for this function:

◆ format_flow_match_element()

static u8* format_flow_match_element ( u8 s,
va_list *  args 
)
static

Definition at line 671 of file flow_cli.c.

+ Here is the call graph for this function:

◆ format_ip_port_and_mask()

u8* format_ip_port_and_mask ( u8 s,
va_list *  args 
)

Definition at line 50 of file flow_cli.c.

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

◆ show_flow_entry()

static clib_error_t* show_flow_entry ( vlib_main_t vm,
unformat_input_t input,
vlib_cli_command_t cmd_arg 
)
static

Definition at line 124 of file flow_cli.c.

+ Here is the call graph for this function:

◆ show_flow_interface()

static clib_error_t* show_flow_interface ( vlib_main_t vm,
unformat_input_t input,
vlib_cli_command_t cmd_arg 
)
static

Definition at line 219 of file flow_cli.c.

+ Here is the call graph for this function:

◆ show_flow_ranges()

static clib_error_t* show_flow_ranges ( vlib_main_t vm,
unformat_input_t input,
vlib_cli_command_t cmd_arg 
)
static

Definition at line 193 of file flow_cli.c.

+ Here is the call graph for this function:

◆ test_flow()

static clib_error_t* test_flow ( vlib_main_t vm,
unformat_input_t input,
vlib_cli_command_t cmd_arg 
)
static

Definition at line 263 of file flow_cli.c.

+ Here is the call graph for this function:

◆ unformat_ip_port_and_mask()

uword unformat_ip_port_and_mask ( unformat_input_t input,
va_list *  args 
)

Definition at line 25 of file flow_cli.c.

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

Variable Documentation

◆ flow_type_strings

const char* flow_type_strings[]
static
Initial value:
= { 0,
#define _(a,b,c)
}
foreach_flow_type
Definition: flow.h:230

Definition at line 117 of file flow_cli.c.

◆ format_flow

format_function_t format_flow
static

Definition at line 22 of file flow_cli.c.

◆ show_flow_entry_command

vlib_cli_command_t show_flow_entry_command
static
Initial value:
= {
.path = "show flow entry",
.short_help = "show flow entry [index <index>]",
.function = show_flow_entry,
}
static clib_error_t * show_flow_entry(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd_arg)
Definition: flow_cli.c:124

(constructor) VLIB_CLI_COMMAND (show_flow_entry_command)

Definition at line 185 of file flow_cli.c.

◆ show_flow_interface_command

vlib_cli_command_t show_flow_interface_command
static
Initial value:
= {
.path = "show flow interface",
.short_help = "show flow interface <interface name>",
.function = show_flow_interface,
}
static clib_error_t * show_flow_interface(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd_arg)
Definition: flow_cli.c:219

(constructor) VLIB_CLI_COMMAND (show_flow_interface_command)

Definition at line 255 of file flow_cli.c.

◆ show_flow_ranges_command

vlib_cli_command_t show_flow_ranges_command
static
Initial value:
= {
.path = "show flow ranges",
.short_help = "show flow ranges",
.function = show_flow_ranges,
}
static clib_error_t * show_flow_ranges(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd_arg)
Definition: flow_cli.c:193

(constructor) VLIB_CLI_COMMAND (show_flow_ranges_command)

Definition at line 211 of file flow_cli.c.

◆ test_flow_command

vlib_cli_command_t test_flow_command
static
Initial value:
= {
.path = "test flow",
.short_help = "test flow add [src-ip <ip-addr/mask>] [dst-ip "
"<ip-addr/mask>] [src-port <port/mask>] [dst-port <port/mask>] "
"[proto <ip-proto>",
.function = test_flow,
}
static clib_error_t * test_flow(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd_arg)
Definition: flow_cli.c:263

(constructor) VLIB_CLI_COMMAND (test_flow_command)

Definition at line 660 of file flow_cli.c.