FD.io VPP  v21.01
Vector Packet Processing
nsh_md2_ioam.c File Reference
+ Include dependency graph for nsh_md2_ioam.c:

Go to the source code of this file.

Macros

#define vl_typedefs
 
#define vl_endianfun
 
#define TRANSIT_UNIT_TEST_HACK   1
 

Functions

static void nsh_md2_ioam_set_clear_output_feature_on_intf (vlib_main_t *vm, u32 sw_if_index0, u8 is_add)
 
void nsh_md2_ioam_clear_output_feature_on_all_intfs (vlib_main_t *vm)
 
fib_forward_chain_type_t fib_entry_get_default_chain_type (const fib_entry_t *fib_entry)
 
int nsh_md2_ioam_enable_disable_for_dest (vlib_main_t *vm, ip46_address_t dst_addr, u32 outer_fib_index, u8 is_ipv4, u8 is_add)
 
void nsh_md2_ioam_refresh_output_feature_on_all_dest (void)
 
void nsh_md2_ioam_clear_output_feature_on_select_intfs (void)
 
clib_error_tnsh_md2_ioam_enable_disable (int has_trace_option, int has_pot_option, int has_ppc_option)
 
int nsh_md2_ioam_disable_for_dest (vlib_main_t *vm, ip46_address_t dst_addr, u32 outer_fib_index, u8 ipv4_set)
 
static clib_error_tnsh_md2_ioam_set_transit_rewrite_command_fn (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 
static fib_node_back_walk_rc_t nsh_md2_ioam_back_walk (fib_node_t *node, fib_node_back_walk_ctx_t *ctx)
 Function definition to backwalk a FIB node. More...
 
static fib_node_tnsh_md2_ioam_fib_node_get (fib_node_index_t index)
 Function definition to get a FIB node from its index. More...
 
static void nsh_md2_ioam_last_lock_gone (fib_node_t *node)
 Function definition to inform the FIB node that its last lock has gone. More...
 
void nsh_md2_ioam_interface_init (void)
 

Variables

nsh_md2_ioam_main_t nsh_md2_ioam_main
 
static vlib_cli_command_t nsh_md2_ioam_set_transit_rewrite_cmd
 (constructor) VLIB_CLI_COMMAND (nsh_md2_ioam_set_transit_rewrite_cmd) More...
 
static const fib_node_vft_t nsh_md2_ioam_vft
 

Macro Definition Documentation

◆ TRANSIT_UNIT_TEST_HACK

#define TRANSIT_UNIT_TEST_HACK   1

◆ vl_endianfun

#define vl_endianfun

Definition at line 38 of file nsh_md2_ioam.c.

◆ vl_typedefs

#define vl_typedefs

Definition at line 33 of file nsh_md2_ioam.c.

Function Documentation

◆ fib_entry_get_default_chain_type()

fib_forward_chain_type_t fib_entry_get_default_chain_type ( const fib_entry_t fib_entry)

Definition at line 81 of file fib_entry.c.

+ Here is the caller graph for this function:

◆ nsh_md2_ioam_back_walk()

static fib_node_back_walk_rc_t nsh_md2_ioam_back_walk ( fib_node_t node,
fib_node_back_walk_ctx_t ctx 
)
static

Function definition to backwalk a FIB node.

Definition at line 463 of file nsh_md2_ioam.c.

+ Here is the call graph for this function:

◆ nsh_md2_ioam_clear_output_feature_on_all_intfs()

void nsh_md2_ioam_clear_output_feature_on_all_intfs ( vlib_main_t vm)

Definition at line 61 of file nsh_md2_ioam.c.

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

◆ nsh_md2_ioam_clear_output_feature_on_select_intfs()

void nsh_md2_ioam_clear_output_feature_on_select_intfs ( void  )

Definition at line 322 of file nsh_md2_ioam.c.

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

◆ nsh_md2_ioam_disable_for_dest()

int nsh_md2_ioam_disable_for_dest ( vlib_main_t vm,
ip46_address_t  dst_addr,
u32  outer_fib_index,
u8  ipv4_set 
)

Definition at line 368 of file nsh_md2_ioam.c.

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

◆ nsh_md2_ioam_enable_disable()

clib_error_t* nsh_md2_ioam_enable_disable ( int  has_trace_option,
int  has_pot_option,
int  has_ppc_option 
)

Definition at line 345 of file nsh_md2_ioam.c.

+ Here is the call graph for this function:

◆ nsh_md2_ioam_enable_disable_for_dest()

int nsh_md2_ioam_enable_disable_for_dest ( vlib_main_t vm,
ip46_address_t  dst_addr,
u32  outer_fib_index,
u8  is_ipv4,
u8  is_add 
)

Definition at line 80 of file nsh_md2_ioam.c.

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

◆ nsh_md2_ioam_fib_node_get()

static fib_node_t* nsh_md2_ioam_fib_node_get ( fib_node_index_t  index)
static

Function definition to get a FIB node from its index.

Definition at line 473 of file nsh_md2_ioam.c.

◆ nsh_md2_ioam_interface_init()

void nsh_md2_ioam_interface_init ( void  )

Definition at line 500 of file nsh_md2_ioam.c.

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

◆ nsh_md2_ioam_last_lock_gone()

static void nsh_md2_ioam_last_lock_gone ( fib_node_t node)
static

Function definition to inform the FIB node that its last lock has gone.

Definition at line 483 of file nsh_md2_ioam.c.

◆ nsh_md2_ioam_refresh_output_feature_on_all_dest()

void nsh_md2_ioam_refresh_output_feature_on_all_dest ( void  )

Definition at line 294 of file nsh_md2_ioam.c.

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

◆ nsh_md2_ioam_set_clear_output_feature_on_intf()

static void nsh_md2_ioam_set_clear_output_feature_on_intf ( vlib_main_t vm,
u32  sw_if_index0,
u8  is_add 
)
static

Definition at line 45 of file nsh_md2_ioam.c.

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

◆ nsh_md2_ioam_set_transit_rewrite_command_fn()

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

Definition at line 399 of file nsh_md2_ioam.c.

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

Variable Documentation

◆ nsh_md2_ioam_main

nsh_md2_ioam_main_t nsh_md2_ioam_main

Definition at line 42 of file nsh_md2_ioam.c.

◆ nsh_md2_ioam_set_transit_rewrite_cmd

vlib_cli_command_t nsh_md2_ioam_set_transit_rewrite_cmd
static
Initial value:
= {
.path = "set nsh-md2-ioam-transit",
.short_help = "set nsh-ioam-lisp-gpe-transit dst-ip <dst_ip> [outer-fib-index <outer_fib_index>] [disable]",
}
static clib_error_t * nsh_md2_ioam_set_transit_rewrite_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
Definition: nsh_md2_ioam.c:399

(constructor) VLIB_CLI_COMMAND (nsh_md2_ioam_set_transit_rewrite_cmd)

Definition at line 453 of file nsh_md2_ioam.c.

◆ nsh_md2_ioam_vft

const fib_node_vft_t nsh_md2_ioam_vft
static
Initial value:
= {
.fnv_last_lock = nsh_md2_ioam_last_lock_gone,
.fnv_back_walk = nsh_md2_ioam_back_walk,
}
static fib_node_back_walk_rc_t nsh_md2_ioam_back_walk(fib_node_t *node, fib_node_back_walk_ctx_t *ctx)
Function definition to backwalk a FIB node.
Definition: nsh_md2_ioam.c:463
static fib_node_t * nsh_md2_ioam_fib_node_get(fib_node_index_t index)
Function definition to get a FIB node from its index.
Definition: nsh_md2_ioam.c:473
static void nsh_md2_ioam_last_lock_gone(fib_node_t *node)
Function definition to inform the FIB node that its last lock has gone.
Definition: nsh_md2_ioam.c:483

Definition at line 493 of file nsh_md2_ioam.c.