FD.io VPP
v19.04.4-rc0-5-ge88582fac
Vector Packet Processing
|
Go to the source code of this file.
Data Structures | |
struct | mpls_fib_t_ |
Macros | |
#define | MPLS_FIB_DEFAULT_TABLE_ID 0 |
#define | MPLS_FIB_KEY_SIZE 21 |
Type exposure is to allow the DP fast/inlined access. More... | |
#define | MPLS_FIB_DB_SIZE (1 << (MPLS_FIB_KEY_SIZE-1)) |
#define | MPLS_FLOW_HASH_DEFAULT 0 |
There are no options for controlling the MPLS flow hash. More... | |
Typedefs | |
typedef struct mpls_fib_t_ | mpls_fib_t |
#define MPLS_FIB_DB_SIZE (1 << (MPLS_FIB_KEY_SIZE-1)) |
Definition at line 34 of file mpls_fib.h.
#define MPLS_FIB_DEFAULT_TABLE_ID 0 |
Definition at line 28 of file mpls_fib.h.
#define MPLS_FIB_KEY_SIZE 21 |
Type exposure is to allow the DP fast/inlined access.
Definition at line 33 of file mpls_fib.h.
#define MPLS_FLOW_HASH_DEFAULT 0 |
There are no options for controlling the MPLS flow hash.
Definition at line 39 of file mpls_fib.h.
typedef struct mpls_fib_t_ mpls_fib_t |
Definition at line 363 of file mpls_fib.c.
void mpls_fib_forwarding_table_reset | ( | mpls_fib_t * | mf, |
mpls_label_t | label, | ||
mpls_eos_bit_t | eos | ||
) |
Definition at line 337 of file mpls_fib.c.
void mpls_fib_forwarding_table_update | ( | mpls_fib_t * | mf, |
mpls_label_t | label, | ||
mpls_eos_bit_t | eos, | ||
const dpo_id_t * | dpo | ||
) |
Definition at line 315 of file mpls_fib.c.
|
inlinestatic |
Definition at line 62 of file mpls_fib.h.
u32 mpls_fib_table_create_and_lock | ( | fib_source_t | src | ) |
Definition at line 238 of file mpls_fib.c.
void mpls_fib_table_destroy | ( | u32 | fib_index | ) |
Definition at line 244 of file mpls_fib.c.
fib_node_index_t mpls_fib_table_entry_add_from_ip_fib_entry | ( | u32 | table_id, |
mpls_label_t | label, | ||
mpls_eos_bit_t | eos, | ||
fib_node_index_t | fib_entry_index | ||
) |
void mpls_fib_table_entry_insert | ( | mpls_fib_t * | mf, |
mpls_label_t | label, | ||
mpls_eos_bit_t | eos, | ||
fib_node_index_t | fei | ||
) |
Definition at line 298 of file mpls_fib.c.
void mpls_fib_table_entry_remove | ( | mpls_fib_t * | mf, |
mpls_label_t | label, | ||
mpls_eos_bit_t | eos | ||
) |
Definition at line 307 of file mpls_fib.c.
u32 mpls_fib_table_find_or_create_and_lock | ( | u32 | table_id, |
fib_source_t | src | ||
) |
Definition at line 224 of file mpls_fib.c.
|
inlinestatic |
Lookup a label and EOS bit in the MPLS_FIB table to retrieve the load-balance index to be used for packet forwarding.
Definition at line 121 of file mpls_fib.h.
fib_node_index_t mpls_fib_table_lookup | ( | const mpls_fib_t * | mf, |
mpls_label_t | label, | ||
mpls_eos_bit_t | eos | ||
) |
Definition at line 283 of file mpls_fib.c.
void mpls_fib_table_walk | ( | mpls_fib_t * | fib, |
fib_table_walk_fn_t | fn, | ||
void * | ctx | ||
) |
Walk all entries in a FIB table N.B: This is NOT safe to deletes.
If you need to delete walk the whole table and store elements in a vector, then delete the elements
Definition at line 349 of file mpls_fib.c.