|
FD.io VPP
v21.06-3-gbb25fbf28
Vector Packet Processing
|
Go to the documentation of this file.
61 if (!trace_type || !num_elts || !(node_id))
65 if (profile && !profile->
valid)
104 .path =
"clear ioam-trace profile",
105 .short_help =
"clear ioam-trace profile [<index>|all]",
123 if (
unformat (input,
"trace-type 0x%x", &trace_type));
124 else if (
unformat (input,
"trace-elts %d", &num_elts));
125 else if (
unformat (input,
"trace-tsp %d", &trace_tsp));
126 else if (
unformat (input,
"node-id 0x%x", &node_id));
127 else if (
unformat (input,
"app-data 0x%x", &app_data));
143 .path =
"set ioam-trace profile",
144 .short_help =
"set ioam-trace \
145 trace-type <0x1f|0x3|0x9|0x11|0x19> trace-elts <nn> trace-tsp <0|1|2|3> \
146 node-id <node id in hex> app-data <app_data in hex>",
159 if (!(p && p->
valid))
161 s =
format (s,
"\nTrace configuration not valid\n");
166 s =
format (s,
" HOP BY HOP OPTIONS - TRACE CONFIG - \n");
167 s =
format (s,
" Trace Type : 0x%x (%d)\n",
170 format (s,
" Trace timestamp precision : %d (%s)\n",
182 format (s,
" Node-id : 0x%x (%d)\n",
185 format (s,
" App Data : 0x%x (%d)\n",
195 .path =
"show ioam-trace profile",
196 .short_help =
"show ioam-trace profile",
static trace_profile * trace_profile_find(void)
clib_error_t * clear_trace_profile_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
vlib_main_t * vm
X-connect all packets from the HOST to the PHY.
int ip6_trace_profile_setup(void)
static int trace_profile_cleanup(trace_profile *profile)
int trace_util_init(void)
static clib_error_t * set_trace_profile_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
#define VLIB_CLI_COMMAND(x,...)
void vlib_cli_output(vlib_main_t *vm, char *fmt,...)
static clib_error_t * show_trace_profile_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
int trace_profile_create(trace_profile *profile, u8 trace_type, u8 num_elts, u32 trace_tsp, u32 node_id, u32 app_data)
#define vec_free(V)
Free vector's memory (no header).
description fragment has unexpected format
void clear_trace_profiles(void)
static vlib_cli_command_t set_trace_profile_command
(constructor) VLIB_CLI_COMMAND (set_trace_profile_command)
int ip6_trace_profile_cleanup(void)
clib_memset(h->entries, 0, sizeof(h->entries[0]) *entries)
static vlib_cli_command_t show_trace_profile_command
(constructor) VLIB_CLI_COMMAND (show_trace_profile_command)
__clib_export trace_main_t trace_main
static int trace_main_profiles_reset(void)
vlib_cli_command_t clear_trace_profile_command
(constructor) VLIB_CLI_COMMAND (clear_trace_profile_command)