FD.io VPP
v19.01.3-6-g70449b9b9
Vector Packet Processing
|
Go to the source code of this file.
Functions | |
void | adj_nbr_midchain_update_rewrite (adj_index_t adj_index, adj_midchain_fixup_t fixup, const void *fixup_data, adj_flags_t flags, u8 *rewrite) |
Midchain Adjacency sub-type. More... | |
void | adj_nbr_midchain_stack (adj_index_t adj_index, const dpo_id_t *dpo) |
[re]stack a midchain. More... | |
void | adj_nbr_midchain_stack_on_fib_entry (adj_index_t adj_index, fib_node_index_t fei, fib_forward_chain_type_t fct) |
[re]stack a midchain. More... | |
void | adj_nbr_midchain_unstack (adj_index_t adj_index) |
unstack a midchain. More... | |
int | adj_ndr_midchain_recursive_loop_detect (adj_index_t ai, fib_node_index_t **entry_indicies) |
descend the FIB graph looking for loops More... | |
void | adj_midchain_module_init (void) |
Module initialisation. More... | |
u8 * | format_adj_midchain (u8 *s, va_list *ap) |
Format a midchain adjacency. More... | |
void adj_midchain_module_init | ( | void | ) |
Module initialisation.
Definition at line 789 of file adj_midchain.c.
void adj_nbr_midchain_stack | ( | adj_index_t | adj_index, |
const dpo_id_t * | next | ||
) |
[re]stack a midchain.
'Stacking' is the act of forming parent-child relationships in the data-plane graph. Do NOT use this function to stack on a DPO type that might form a loop.
adj_index | The index of the midchain to stack |
dpo | The parent DPO to stack onto (i.e. become a child of). |
[re]stack a midchain.
Definition at line 655 of file adj_midchain.c.
void adj_nbr_midchain_stack_on_fib_entry | ( | adj_index_t | adj_index, |
fib_node_index_t | fei, | ||
fib_forward_chain_type_t | fct | ||
) |
[re]stack a midchain.
'Stacking' is the act of forming parent-child relationships in the data-plane graph. Since function performs recursive loop detection.
adj_index | The index of the midchain to stack |
fei | The FIB entry to stack on |
fct | The chain type to use from the fib entry fowarding |
Definition at line 584 of file adj_midchain.c.
void adj_nbr_midchain_unstack | ( | adj_index_t | adj_index | ) |
unstack a midchain.
This will break the chain between the midchain and the next graph section. This is a implemented as stack-on-drop
adj_index | The index of the midchain to stack |
unstack a midchain.
Unstack the adj. stack it on drop
Definition at line 552 of file adj_midchain.c.
void adj_nbr_midchain_update_rewrite | ( | adj_index_t | adj_index, |
adj_midchain_fixup_t | fixup, | ||
const void * | fixup_data, | ||
adj_flags_t | flags, | ||
u8 * | rewrite | ||
) |
Midchain Adjacency sub-type.
These adjs represent an L3 peer on a tunnel interface. The tunnel's adjacency is thus not the end of the chain, and needs to stack on/link to another chain (or portion of the graph) to reach the tunnel's destination.
Convert an existing neighbour adjacency into a midchain
adj_index | The index of the neighbour adjacency. |
fixup | The function that will be invoked at paket switch time to 'fixup' the rewrite applied with necessary per-packet info (i.e. length, checksums). |
fixup_data | Context data set by the caller that is provided as an argument in the fixup function. |
flags | Flags controlling the adjacency behaviour |
rewrite | The rewrite. |
Midchain Adjacency sub-type.
Update the adjacency's rewrite string. A NULL string implies the rewrite is reset (i.e. when ARP/ND etnry is gone). NB: the adj being updated may be handling traffic in the DP.
Definition at line 509 of file adj_midchain.c.
int adj_ndr_midchain_recursive_loop_detect | ( | adj_index_t | ai, |
fib_node_index_t ** | entry_indicies | ||
) |
descend the FIB graph looking for loops
ai | The adj index to traverse |
entry_indicies) | A pointer to a vector of FIB entries already visited. |
Definition at line 673 of file adj_midchain.c.
Format a midchain adjacency.
Definition at line 700 of file adj_midchain.c.