![]() |
FD.io VPP
v21.01
Vector Packet Processing
|
Include dependency graph for mpls_tunnel.c:Go to the source code of this file.
Data Structures | |
| struct | mpls_tunnel_trace_t_ |
| Packet trace structure. More... | |
| struct | mpls_tunnel_collect_forwarding_ctx_t_ |
Typedefs | |
| typedef struct mpls_tunnel_trace_t_ | mpls_tunnel_trace_t |
| Packet trace structure. More... | |
| typedef struct mpls_tunnel_collect_forwarding_ctx_t_ | mpls_tunnel_collect_forwarding_ctx_t |
Enumerations | |
| enum | mpls_tunnel_encap_next_t { MPLS_TUNNEL_ENCAP_NEXT_L2_MIDCHAIN, MPLS_TUNNEL_ENCAP_N_NEXT } |
Variables | |
| static mpls_tunnel_t * | mpls_tunnel_pool |
| pool of tunnel instances More... | |
| static u32 * | mpls_tunnel_db |
| DB of SW index to tunnel index. More... | |
| static const char * | mpls_tunnel_attribute_names [] = MPLS_TUNNEL_ATTRIBUTES |
| MPLS tunnel flags strings. More... | |
| vlib_node_registration_t | mpls_tunnel_tx |
| (constructor) VLIB_REGISTER_NODE (mpls_tunnel_tx) More... | |
| static vlib_cli_command_t | create_mpls_tunnel_command |
| (constructor) VLIB_CLI_COMMAND (create_mpls_tunnel_command) More... | |
| static vlib_cli_command_t | show_mpls_tunnel_command |
| (constructor) VLIB_CLI_COMMAND (show_mpls_tunnel_command) More... | |
| static const fib_node_vft_t | mpls_vft |
| typedef struct mpls_tunnel_trace_t_ mpls_tunnel_trace_t |
Packet trace structure.
| Enumerator | |
|---|---|
| MPLS_TUNNEL_ENCAP_NEXT_L2_MIDCHAIN | |
| MPLS_TUNNEL_ENCAP_N_NEXT | |
Definition at line 66 of file mpls_tunnel.c.
Definition at line 938 of file mpls_tunnel.c.
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Call back when restacking all adjacencies on a MPLS interface.
Definition at line 437 of file mpls_tunnel.c.
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Definition at line 483 of file mpls_tunnel.c.
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Function definition to backwalk a FIB node.
Definition at line 1046 of file mpls_tunnel.c.
Here is the call graph for this function:
|
static |
Build a rewrite string for the MPLS tunnel.
Definition at line 219 of file mpls_tunnel.c.
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Build a rewrite string for the MPLS tunnel.
Definition at line 199 of file mpls_tunnel.c.
Here is the caller graph for this function:
|
static |
Definition at line 235 of file mpls_tunnel.c.
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Function definition to get a FIB node from its index.
Definition at line 1058 of file mpls_tunnel.c.
|
static |
Fixup the adj rewrite post encap.
This is a no-op since the rewrite is a stack of labels.
Definition at line 513 of file mpls_tunnel.c.
Here is the caller graph for this function:
|
static |
| const mpls_tunnel_t* mpls_tunnel_get | ( | u32 | mti | ) |
|
static |
Get a tunnel object from a SW interface index.
Definition at line 185 of file mpls_tunnel.c.
Here is the caller graph for this function:
|
static |
|
static |
Function definition to inform the FIB node that its last lock has gone.
Definition at line 1071 of file mpls_tunnel.c.
|
static |
Definition at line 277 of file mpls_tunnel.c.
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Definition at line 446 of file mpls_tunnel.c.
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
mpls_tunnel_stack
'stack' (resolve the recursion for) the tunnel's midchain adjacency
Definition at line 371 of file mpls_tunnel.c.
Here is the call graph for this function:
Here is the caller graph for this function:| VLIB_NODE_FN() mpls_tunnel_tx | ( | vlib_main_t * | vm, |
| vlib_node_runtime_t * | node, | ||
| vlib_frame_t * | frame | ||
| ) |
TX function.
Only called L2. L3 traffic uses the adj-midchains
Definition at line 75 of file mpls_tunnel.c.
Here is the call graph for this function:
|
static |
Definition at line 527 of file mpls_tunnel.c.
Here is the call graph for this function:
Here is the caller graph for this function:| void mpls_tunnel_walk | ( | mpls_tunnel_walk_cb_t | cb, |
| void * | ctx | ||
| ) |
Walk all the MPLS tunnels.
Definition at line 615 of file mpls_tunnel.c.
Here is the caller graph for this function:
|
static |
|
static |
| VNET_DEVICE_CLASS | ( | mpls_tunnel_class | ) |
Here is the caller graph for this function:| VNET_HW_INTERFACE_CLASS | ( | mpls_tunnel_hw_interface_class | ) |
Here is the caller graph for this function:Create a new MPLS tunnel.
Definition at line 648 of file mpls_tunnel.c.
Here is the call graph for this function:
Here is the caller graph for this function:| void vnet_mpls_tunnel_del | ( | u32 | sw_if_index | ) |
Delete an MPLS tunnel.
Definition at line 627 of file mpls_tunnel.c.
Here is the call graph for this function:
Here is the caller graph for this function:| int vnet_mpls_tunnel_get_index | ( | u32 | sw_if_index | ) |
return the tunnel index from the sw_if_index
Definition at line 829 of file mpls_tunnel.c.
Here is the call graph for this function:
Here is the caller graph for this function:| void vnet_mpls_tunnel_path_add | ( | u32 | sw_if_index, |
| fib_route_path_t * | rpaths | ||
| ) |
Add a path to an MPLS tunnel.
Definition at line 703 of file mpls_tunnel.c.
Here is the call graph for this function:
Here is the caller graph for this function:| int vnet_mpls_tunnel_path_remove | ( | u32 | sw_if_index, |
| fib_route_path_t * | rpath | ||
| ) |
remove a path from a tunnel.
Definition at line 759 of file mpls_tunnel.c.
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
(constructor) VLIB_CLI_COMMAND (create_mpls_tunnel_command)
Definition at line 930 of file mpls_tunnel.c.
|
static |
MPLS tunnel flags strings.
Definition at line 41 of file mpls_tunnel.c.
|
static |
DB of SW index to tunnel index.
Definition at line 36 of file mpls_tunnel.c.
|
static |
pool of tunnel instances
Definition at line 31 of file mpls_tunnel.c.
| vlib_node_registration_t mpls_tunnel_tx |
(constructor) VLIB_REGISTER_NODE (mpls_tunnel_tx)
Definition at line 167 of file mpls_tunnel.c.
|
static |
Definition at line 1084 of file mpls_tunnel.c.
|
static |
(constructor) VLIB_CLI_COMMAND (show_mpls_tunnel_command)
Definition at line 1029 of file mpls_tunnel.c.