FD.io VPP  v17.07-30-g839fa73
Vector Packet Processing
lookup_dpo.h File Reference
+ Include dependency graph for lookup_dpo.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  lookup_dpo_t
 A representation of an MPLS label for imposition in the data-path. More...
 

Macros

#define LOOKUP_INPUTS
 
#define LOOKUP_TABLES
 
#define LOOKUP_CASTS
 

Typedefs

typedef enum lookup_input_t_ lookup_input_t
 Switch to use the packet's source or destination address for lookup. More...
 
typedef enum lookup_table_t_ lookup_table_t
 Switch to use the packet's source or destination address for lookup. More...
 
typedef enum lookup_cast_t_ lookup_cast_t
 Switch to use the packet's source or destination address for lookup. More...
 
typedef struct lookup_dpo_t lookup_dpo_t
 A representation of an MPLS label for imposition in the data-path. More...
 

Enumerations

enum  lookup_input_t_ { LOOKUP_INPUT_SRC_ADDR, LOOKUP_INPUT_DST_ADDR }
 Switch to use the packet's source or destination address for lookup. More...
 
enum  lookup_table_t_ { LOOKUP_TABLE_FROM_INPUT_INTERFACE, LOOKUP_TABLE_FROM_CONFIG }
 Switch to use the packet's source or destination address for lookup. More...
 
enum  lookup_cast_t_ { LOOKUP_UNICAST, LOOKUP_MULTICAST }
 Switch to use the packet's source or destination address for lookup. More...
 

Functions

void lookup_dpo_add_or_lock_w_fib_index (fib_node_index_t fib_index, dpo_proto_t proto, lookup_cast_t cast, lookup_input_t input, lookup_table_t table, dpo_id_t *dpo)
 
void lookup_dpo_add_or_lock_w_table_id (u32 table_id, dpo_proto_t proto, lookup_cast_t cast, lookup_input_t input, lookup_table_t table, dpo_id_t *dpo)
 
u8format_lookup_dpo (u8 *s, va_list *args)
 
static lookup_dpo_tlookup_dpo_get (index_t index)
 
void lookup_dpo_module_init (void)
 

Variables

lookup_dpo_tlookup_dpo_pool
 pool of all MPLS Label DPOs More...
 

Macro Definition Documentation

#define LOOKUP_CASTS
Value:
{ \
[LOOKUP_UNICAST] = "unicast", \
[LOOKUP_MULTICAST] = "multicast", \
}

Definition at line 57 of file lookup_dpo.h.

#define LOOKUP_INPUTS
Value:

Definition at line 31 of file lookup_dpo.h.

#define LOOKUP_TABLES
Value:
{ \
[LOOKUP_INPUT_SRC_ADDR] = "table-input-interface", \
[LOOKUP_INPUT_DST_ADDR] = "table-configured", \
}

Definition at line 44 of file lookup_dpo.h.

Typedef Documentation

Switch to use the packet's source or destination address for lookup.

typedef struct lookup_dpo_t lookup_dpo_t

A representation of an MPLS label for imposition in the data-path.

Switch to use the packet's source or destination address for lookup.

Switch to use the packet's source or destination address for lookup.

Enumeration Type Documentation

Switch to use the packet's source or destination address for lookup.

Enumerator
LOOKUP_UNICAST 
LOOKUP_MULTICAST 

Definition at line 52 of file lookup_dpo.h.

Switch to use the packet's source or destination address for lookup.

Enumerator
LOOKUP_INPUT_SRC_ADDR 
LOOKUP_INPUT_DST_ADDR 

Definition at line 26 of file lookup_dpo.h.

Switch to use the packet's source or destination address for lookup.

Enumerator
LOOKUP_TABLE_FROM_INPUT_INTERFACE 
LOOKUP_TABLE_FROM_CONFIG 

Definition at line 39 of file lookup_dpo.h.

Function Documentation

u8* format_lookup_dpo ( u8 s,
va_list *  args 
)

Definition at line 179 of file lookup_dpo.c.

+ Here is the call graph for this function:

void lookup_dpo_add_or_lock_w_fib_index ( fib_node_index_t  fib_index,
dpo_proto_t  proto,
lookup_cast_t  cast,
lookup_input_t  input,
lookup_table_t  table,
dpo_id_t dpo 
)

Definition at line 127 of file lookup_dpo.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void lookup_dpo_add_or_lock_w_table_id ( u32  table_id,
dpo_proto_t  proto,
lookup_cast_t  cast,
lookup_input_t  input,
lookup_table_t  table,
dpo_id_t dpo 
)

Definition at line 149 of file lookup_dpo.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static lookup_dpo_t* lookup_dpo_get ( index_t  index)
inlinestatic

Definition at line 121 of file lookup_dpo.h.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void lookup_dpo_module_init ( void  )

Definition at line 1396 of file lookup_dpo.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Variable Documentation

lookup_dpo_t* lookup_dpo_pool

pool of all MPLS Label DPOs

Definition at line 49 of file lookup_dpo.c.