FD.io VPP  v19.04.4-rc0-5-ge88582fac
Vector Packet Processing
bier_bift_table.c File Reference
+ Include dependency graph for bier_bift_table.c:

Go to the source code of this file.

Data Structures

struct  bier_bift_input_trace_t_
 Packet trace record for BIER input. More...
 

Macros

#define bier_error(n, s)   BIER_INPUT_ERROR_##n,
 
#define bier_error(n, s)   s,
 

Typedefs

typedef struct bier_bift_input_trace_t_ bier_bift_input_trace_t
 Packet trace record for BIER input. More...
 

Enumerations

enum  bier_input_error_t { BIER_INPUT_N_ERROR, BIER_INPUT_N_ERROR }
 

Functions

void bier_bift_table_entry_add (bier_bift_id_t id, const dpo_id_t *dpo)
 
void bier_bift_table_entry_remove (bier_bift_id_t id)
 
static uword bier_bift_input (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *from_frame)
 
static u8format_bier_bift_input_trace (u8 *s, va_list *args)
 
clib_error_tshow_bier_bift_cmd (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 

Variables

static char * bier_error_strings []
 
bier_bfit_table_tbier_bift_table
 Global BIFT table. More...
 
vlib_node_registration_t bier_bift_input_node
 Forward declare the node. More...
 
static vlib_cli_command_t show_bier_bift_command
 (constructor) VLIB_CLI_COMMAND (show_bier_bift_command) More...
 

Macro Definition Documentation

◆ bier_error [1/2]

#define bier_error (   n,
 
)    BIER_INPUT_ERROR_##n,

Definition at line 21 of file bier_bift_table.c.

◆ bier_error [2/2]

#define bier_error (   n,
 
)    s,

Definition at line 21 of file bier_bift_table.c.

Typedef Documentation

◆ bier_bift_input_trace_t

Packet trace record for BIER input.

Enumeration Type Documentation

◆ bier_input_error_t

Enumerator
BIER_INPUT_N_ERROR 
BIER_INPUT_N_ERROR 

Definition at line 20 of file bier_bift_table.c.

Function Documentation

◆ bier_bift_input()

static uword bier_bift_input ( vlib_main_t vm,
vlib_node_runtime_t node,
vlib_frame_t from_frame 
)
static

Definition at line 119 of file bier_bift_table.c.

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

◆ bier_bift_table_entry_add()

void bier_bift_table_entry_add ( bier_bift_id_t  id,
const dpo_id_t dpo 
)

Definition at line 44 of file bier_bift_table.c.

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

◆ bier_bift_table_entry_remove()

void bier_bift_table_entry_remove ( bier_bift_id_t  id)

Definition at line 88 of file bier_bift_table.c.

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

◆ format_bier_bift_input_trace()

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

Definition at line 192 of file bier_bift_table.c.

+ Here is the call graph for this function:

◆ show_bier_bift_cmd()

clib_error_t* show_bier_bift_cmd ( vlib_main_t vm,
unformat_input_t input,
vlib_cli_command_t cmd 
)

Definition at line 215 of file bier_bift_table.c.

+ Here is the call graph for this function:

Variable Documentation

◆ bier_bift_input_node

vlib_node_registration_t bier_bift_input_node
Initial value:
= {
.function = bier_bift_input,
.name = "bier-bift-input",
.vector_size = sizeof (u32),
.n_errors = BIER_INPUT_N_ERROR,
.error_strings = bier_error_strings,
.n_next_nodes = 0,
}
static char * bier_error_strings[]
unsigned int u32
Definition: types.h:88
static uword bier_bift_input(vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *from_frame)
static u8 * format_bier_bift_input_trace(u8 *s, va_list *args)

Forward declare the node.

(constructor) VLIB_REGISTER_NODE (bier_bift_input_node)

Definition at line 41 of file bier_bift_table.c.

◆ bier_bift_table

bier_bfit_table_t* bier_bift_table

Global BIFT table.

Definition at line 36 of file bier_bift_table.c.

◆ bier_error_strings

char* bier_error_strings[]
static
Initial value:
= {
#define bier_error(n,s)
}

Definition at line 27 of file bier_bift_table.c.

◆ show_bier_bift_command

vlib_cli_command_t show_bier_bift_command
static
Initial value:
= {
.path = "show bier bift",
.short_help = "show bier bift [set <value> sd <value> bsl <value>]",
.function = show_bier_bift_cmd,
}
clib_error_t * show_bier_bift_cmd(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)

(constructor) VLIB_CLI_COMMAND (show_bier_bift_command)

Definition at line 287 of file bier_bift_table.c.