FD.io VPP  v16.12-rc0-308-g931be3a
Vector Packet Processing
ip6_ioam_trace.c File Reference
+ Include dependency graph for ip6_ioam_trace.c:

Go to the source code of this file.

Data Structures

union  time_u64_t
 
struct  ip6_hop_by_hop_ioam_trace_main_t
 

Macros

#define foreach_ip6_hop_by_hop_ioam_trace_stats
 

Enumerations

enum  ip6_ioam_trace_stats_t { IP6_IOAM_TRACE_N_STATS }
 

Functions

static void ip6_ioam_trace_stats_increment_counter (u32 counter_index, u64 increment)
 
static u8format_ioam_data_list_element (u8 *s, va_list *args)
 
int ioam_trace_get_sizeof_handler (u32 *result)
 
int ip6_hop_by_hop_ioam_trace_rewrite_handler (u8 *rewrite_string, u8 *rewrite_size)
 
int ip6_hbh_ioam_trace_data_list_handler (vlib_buffer_t *b, ip6_header_t *ip, ip6_hop_by_hop_option_t *opt)
 
u8ip6_hbh_ioam_trace_data_list_trace_handler (u8 *s, ip6_hop_by_hop_option_t *opt)
 
static clib_error_tip6_show_ioam_trace_cmd_fn (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 
static clib_error_tip6_hop_by_hop_ioam_trace_init (vlib_main_t *vm)
 

Variables

static f64 trace_tsp_mul [4] = { 1, 1e3, 1e6, 1e9 }
 
ip6_hop_by_hop_ioam_main_t ip6_hop_by_hop_ioam_main
 
ip6_main_t ip6_main
 
static char * ip6_hop_by_hop_ioam_trace_stats_strings []
 
ip6_hop_by_hop_ioam_trace_main_t ip6_hop_by_hop_ioam_trace_main
 
static vlib_cli_command_t ip6_show_ioam_trace_cmd
 (constructor) VLIB_CLI_COMMAND (ip6_show_ioam_trace_cmd) More...
 

Macro Definition Documentation

#define foreach_ip6_hop_by_hop_ioam_trace_stats
Value:
_(PROCESSED, "Pkts with ip6 hop-by-hop trace options") \
_(PROFILE_MISS, "Pkts with ip6 hop-by-hop trace options but no profile set") \
_(UPDATED, "Pkts with trace updated") \
_(FULL, "Pkts with trace options but no space")

Definition at line 45 of file ip6_ioam_trace.c.

Enumeration Type Documentation

Enumerator
IP6_IOAM_TRACE_N_STATS 

Definition at line 57 of file ip6_ioam_trace.c.

Function Documentation

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

Definition at line 88 of file ip6_ioam_trace.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int ioam_trace_get_sizeof_handler ( u32 result)

Definition at line 133 of file ip6_ioam_trace.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int ip6_hbh_ioam_trace_data_list_handler ( vlib_buffer_t b,
ip6_header_t ip,
ip6_hop_by_hop_option_t opt 
)

Definition at line 203 of file ip6_ioam_trace.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

u8* ip6_hbh_ioam_trace_data_list_trace_handler ( u8 s,
ip6_hop_by_hop_option_t opt 
)

Definition at line 284 of file ip6_ioam_trace.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static clib_error_t* ip6_hop_by_hop_ioam_trace_init ( vlib_main_t vm)
static

Definition at line 350 of file ip6_ioam_trace.c.

+ Here is the call graph for this function:

int ip6_hop_by_hop_ioam_trace_rewrite_handler ( u8 rewrite_string,
u8 rewrite_size 
)

Definition at line 166 of file ip6_ioam_trace.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static void ip6_ioam_trace_stats_increment_counter ( u32  counter_index,
u64  increment 
)
inlinestatic

Definition at line 79 of file ip6_ioam_trace.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

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

Definition at line 319 of file ip6_ioam_trace.c.

+ Here is the call graph for this function:

Variable Documentation

ip6_hop_by_hop_ioam_main_t ip6_hop_by_hop_ioam_main

Definition at line 44 of file ip6_hop_by_hop.c.

ip6_hop_by_hop_ioam_trace_main_t ip6_hop_by_hop_ioam_trace_main

Definition at line 76 of file ip6_ioam_trace.c.

char* ip6_hop_by_hop_ioam_trace_stats_strings[]
static
Initial value:
= {
#define _(sym,string)
}
#define foreach_ip6_hop_by_hop_ioam_trace_stats

Definition at line 51 of file ip6_ioam_trace.c.

ip6_main_t ip6_main

Definition at line 2655 of file ip6_forward.c.

vlib_cli_command_t ip6_show_ioam_trace_cmd
static
Initial value:
= {
.path = "show ioam trace",
.short_help = "iOAM trace statistics",
}
static clib_error_t * ip6_show_ioam_trace_cmd_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)

(constructor) VLIB_CLI_COMMAND (ip6_show_ioam_trace_cmd)

Definition at line 341 of file ip6_ioam_trace.c.

f64 trace_tsp_mul[4] = { 1, 1e3, 1e6, 1e9 }
static

Definition at line 33 of file ip6_ioam_trace.c.