FD.io VPP  v17.04.2-2-ga8f93f8
Vector Packet Processing
ioam_cache.c File Reference
+ Include dependency graph for ioam_cache.c:

Go to the source code of this file.

Macros

#define vl_typedefs
 
#define vl_endianfun
 
#define vl_print(handle, ...)   vlib_cli_output (handle, __VA_ARGS__)
 
#define vl_printfun
 
#define vl_api_version(n, v)   static u32 api_version=(v);
 
#define REPLY_MSG_ID_BASE   cm->msg_id_base
 
#define foreach_ioam_cache_plugin_api_msg   _(IOAM_CACHE_IP6_ENABLE_DISABLE, ioam_cache_ip6_enable_disable)
 
#define vl_msg_name_crc_list
 
#define IOAM_TS_WAIT_FOR_RESPONSES   3
 

Functions

static u8ioam_e2e_id_trace_handler (u8 *s, ip6_hop_by_hop_option_t *opt)
 
static u8ioam_e2e_cache_trace_handler (u8 *s, ip6_hop_by_hop_option_t *opt)
 
int ioam_cache_ip6_enable_disable (ioam_cache_main_t *em, ip6_address_t *sr_localsid, u8 is_disable)
 
int ioam_tunnel_select_ip6_enable_disable (ioam_cache_main_t *em, u8 criteria, u8 no_of_responses, ip6_address_t *sr_localsid, u8 is_disable)
 
static void vl_api_ioam_cache_ip6_enable_disable_t_handler (vl_api_ioam_cache_ip6_enable_disable_t *mp)
 
static clib_error_tioam_cache_plugin_api_hookup (vlib_main_t *vm)
 
static void setup_message_id_table (ioam_cache_main_t *sm, api_main_t *am)
 
static clib_error_tset_ioam_cache_command_fn (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 
static clib_error_tset_ioam_tunnel_select_command_fn (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 
static void ioam_cache_table_print (vlib_main_t *vm, u8 verbose)
 
static clib_error_tshow_ioam_cache_command_fn (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 
static clib_error_tioam_cache_init (vlib_main_t *vm)
 

Variables

static vlib_cli_command_t set_ioam_cache_command
 (constructor) VLIB_CLI_COMMAND (set_ioam_cache_command) More...
 
static vlib_cli_command_t set_ioam_cache_ts_command
 (constructor) VLIB_CLI_COMMAND (set_ioam_cache_ts_command) More...
 
static vlib_cli_command_t show_ioam_cache_command
 (constructor) VLIB_CLI_COMMAND (show_ioam_cache_command) More...
 

Macro Definition Documentation

#define foreach_ioam_cache_plugin_api_msg   _(IOAM_CACHE_IP6_ENABLE_DISABLE, ioam_cache_ip6_enable_disable)

Definition at line 60 of file ioam_cache.c.

#define IOAM_TS_WAIT_FOR_RESPONSES   3

Definition at line 254 of file ioam_cache.c.

#define REPLY_MSG_ID_BASE   cm->msg_id_base

Definition at line 56 of file ioam_cache.c.

#define vl_api_version (   n,
  v 
)    static u32 api_version=(v);

Definition at line 52 of file ioam_cache.c.

#define vl_endianfun

Definition at line 41 of file ioam_cache.c.

#define vl_msg_name_crc_list

Definition at line 204 of file ioam_cache.c.

#define vl_print (   handle,
  ... 
)    vlib_cli_output (handle, __VA_ARGS__)

Definition at line 46 of file ioam_cache.c.

#define vl_printfun

Definition at line 47 of file ioam_cache.c.

#define vl_typedefs

Definition at line 36 of file ioam_cache.c.

Function Documentation

static clib_error_t* ioam_cache_init ( vlib_main_t vm)
static

Definition at line 368 of file ioam_cache.c.

+ Here is the call graph for this function:

int ioam_cache_ip6_enable_disable ( ioam_cache_main_t em,
ip6_address_t sr_localsid,
u8  is_disable 
)

Definition at line 97 of file ioam_cache.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static clib_error_t* ioam_cache_plugin_api_hookup ( vlib_main_t vm)
static

Definition at line 187 of file ioam_cache.c.

+ Here is the caller graph for this function:

static void ioam_cache_table_print ( vlib_main_t vm,
u8  verbose 
)
static

Definition at line 303 of file ioam_cache.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static u8* ioam_e2e_cache_trace_handler ( u8 s,
ip6_hop_by_hop_option_t opt 
)
static

Definition at line 80 of file ioam_cache.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static u8* ioam_e2e_id_trace_handler ( u8 s,
ip6_hop_by_hop_option_t opt 
)
static

Definition at line 64 of file ioam_cache.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int ioam_tunnel_select_ip6_enable_disable ( ioam_cache_main_t em,
u8  criteria,
u8  no_of_responses,
ip6_address_t sr_localsid,
u8  is_disable 
)

Definition at line 129 of file ioam_cache.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

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

Definition at line 218 of file ioam_cache.c.

+ Here is the call graph for this function:

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

Definition at line 256 of file ioam_cache.c.

+ Here is the call graph for this function:

static void setup_message_id_table ( ioam_cache_main_t sm,
api_main_t am 
)
static

Definition at line 209 of file ioam_cache.c.

+ Here is the caller graph for this function:

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

Definition at line 343 of file ioam_cache.c.

+ Here is the call graph for this function:

static void vl_api_ioam_cache_ip6_enable_disable_t_handler ( vl_api_ioam_cache_ip6_enable_disable_t mp)
static

Definition at line 171 of file ioam_cache.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Variable Documentation

vlib_cli_command_t set_ioam_cache_command
static
Initial value:
=
{
.path = "set ioam ip6 cache",.short_help =
"set ioam ip6 cache sr_localsid <ip6 address> [disable]",.function =
static clib_error_t * set_ioam_cache_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
Definition: ioam_cache.c:218

(constructor) VLIB_CLI_COMMAND (set_ioam_cache_command)

Definition at line 247 of file ioam_cache.c.

vlib_cli_command_t set_ioam_cache_ts_command
static
Initial value:
=
{
.path = "set ioam ip6 sr-tunnel-select",.short_help =
"set ioam ip6 sr-tunnel-select [disable] [oneway|rtt] [wait_for_responses <n|default 3>] \
[sr_localsid <ip6 address>]",.function = set_ioam_tunnel_select_command_fn}
static clib_error_t * set_ioam_tunnel_select_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
Definition: ioam_cache.c:256

(constructor) VLIB_CLI_COMMAND (set_ioam_cache_ts_command)

Definition at line 295 of file ioam_cache.c.

vlib_cli_command_t show_ioam_cache_command
static
Initial value:
=
{
.path = "show ioam ip6 cache",.short_help =
"show ioam ip6 cache [verbose]",.function = show_ioam_cache_command_fn}
static clib_error_t * show_ioam_cache_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
Definition: ioam_cache.c:343

(constructor) VLIB_CLI_COMMAND (show_ioam_cache_command)

Definition at line 361 of file ioam_cache.c.