![]() |
FD.io VPP
v17.10-9-gd594711
Vector Packet Processing
|
Include dependency graph for lisp_gpe_fwd_entry.c:Go to the source code of this file.
Macros | |
| #define | L2_FIB_DEFAULT_HASH_NUM_BUCKETS (64 * 1024) |
| #define | L2_FIB_DEFAULT_HASH_MEMORY_SIZE (32<<20) |
| #define | NSH_FIB_DEFAULT_HASH_NUM_BUCKETS (64 * 1024) |
| #define | NSH_FIB_DEFAULT_HASH_MEMORY_SIZE (32<<20) |
Typedefs | |
| typedef enum lisp_gpe_fwd_entry_format_flag_t_ | lisp_gpe_fwd_entry_format_flag_t |
Enumerations | |
| enum | lisp_gpe_fwd_entry_format_flag_t_ { LISP_GPE_FWD_ENTRY_FORMAT_NONE = (0 << 0), LISP_GPE_FWD_ENTRY_FORMAT_DETAIL = (1 << 1) } |
Variables | |
| static const fib_node_vft_t | lisp_fwd_vft |
| Virtual function table to register with FIB for the LISP type. More... | |
| static vlib_cli_command_t | lisp_gpe_fwd_entry_show_command |
| (constructor) VLIB_CLI_COMMAND (lisp_gpe_fwd_entry_show_command) More... | |
| #define L2_FIB_DEFAULT_HASH_MEMORY_SIZE (32<<20) |
Definition at line 706 of file lisp_gpe_fwd_entry.c.
| #define L2_FIB_DEFAULT_HASH_NUM_BUCKETS (64 * 1024) |
Definition at line 705 of file lisp_gpe_fwd_entry.c.
| #define NSH_FIB_DEFAULT_HASH_MEMORY_SIZE (32<<20) |
Definition at line 971 of file lisp_gpe_fwd_entry.c.
| #define NSH_FIB_DEFAULT_HASH_NUM_BUCKETS (64 * 1024) |
Definition at line 970 of file lisp_gpe_fwd_entry.c.
| Enumerator | |
|---|---|
| LISP_GPE_FWD_ENTRY_FORMAT_NONE | |
| LISP_GPE_FWD_ENTRY_FORMAT_DETAIL | |
Definition at line 1387 of file lisp_gpe_fwd_entry.c.
|
static |
Add/Delete LISP IP forwarding entry.
creation of forwarding entries for IP LISP overlay:
| [in] | lgm | Reference to lisp_gpe_main_t. |
| [in] | a | Parameters for building the forwarding entry. |
Definition at line 520 of file lisp_gpe_fwd_entry.c.
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Add LISP L2 forwarding entry.
Coordinates the creation of forwarding entries for L2 LISP overlay: creates lisp-gpe tunnel and injects new entry in Source/Dest L2 FIB.
| [in] | lgm | Reference to lisp_gpe_main_t. |
| [in] | a | Parameters for building the forwarding entry. |
Definition at line 828 of file lisp_gpe_fwd_entry.c.
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Add LISP NSH forwarding entry.
Coordinates the creation of forwarding entries for L2 LISP overlay: creates lisp-gpe tunnel and injects new entry in Source/Dest L2 FIB.
| [in] | lgm | Reference to lisp_gpe_main_t. |
| [in] | a | Parameters for building the forwarding entry. |
Definition at line 1111 of file lisp_gpe_fwd_entry.c.
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Definition at line 323 of file lisp_gpe_fwd_entry.c.
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Add/Delete LISP IP forwarding entry.
removal of forwarding entries for IP LISP overlay:
| [in] | lgm | Reference to lisp_gpe_main_t. |
| [in] | a | Parameters for building the forwarding entry. |
Definition at line 604 of file lisp_gpe_fwd_entry.c.
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Definition at line 569 of file lisp_gpe_fwd_entry.c.
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Delete LISP L2 forwarding entry.
Coordinates the removal of forwarding entries for L2 LISP overlay:
| [in] | lgm | Reference to lisp_gpe_main_t. |
| [in] | a | Parameters for building the forwarding entry. |
Definition at line 761 of file lisp_gpe_fwd_entry.c.
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Definition at line 727 of file lisp_gpe_fwd_entry.c.
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Delete LISP NSH forwarding entry.
Coordinates the removal of forwarding entries for NSH LISP overlay:
| [in] | lgm | Reference to lisp_gpe_main_t. |
| [in] | a | Parameters for building the forwarding entry. |
Definition at line 1020 of file lisp_gpe_fwd_entry.c.
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Definition at line 987 of file lisp_gpe_fwd_entry.c.
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Definition at line 388 of file lisp_gpe_fwd_entry.c.
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Definition at line 406 of file lisp_gpe_fwd_entry.c.
Here is the call graph for this function:
Here is the caller graph for this function:Definition at line 1374 of file lisp_gpe_fwd_entry.c.
Here is the call graph for this function:
Here is the caller graph for this function:Definition at line 1395 of file lisp_gpe_fwd_entry.c.
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Definition at line 292 of file lisp_gpe_fwd_entry.c.
Here is the call graph for this function:
Here is the caller graph for this function:Add route to IP4 or IP6 Destination FIB.
Add a route to the destination FIB that results in the lookup in the SRC FIB. The SRC FIB is created is it does not yet exist.
| [in] | dst_table_id | Destination FIB Table-ID |
| [in] | dst_prefix | Destination IP prefix. |
Definition at line 42 of file lisp_gpe_fwd_entry.c.
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Del route to IP4 or IP6 SD FIB.
Remove routes from both destination and source FIBs.
| [in] | src_fib_index | The index/ID of the SRC FIB |
| [in] | src_prefix | Source IP prefix. |
| [in] | dst_fib_index | The index/ID of the DST FIB |
| [in] | dst_prefix | Destination IP prefix. |
Definition at line 141 of file lisp_gpe_fwd_entry.c.
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Add route to IP4 or IP6 SRC FIB.
Adds a route to in the LISP SRC FIB for the tunnel.
| [in] | src_fib_index | The index/ID of the SRC FIB |
| [in] | src_prefix | Source IP prefix. |
| [in] | paths | The paths from which to construct the load balance |
Definition at line 273 of file lisp_gpe_fwd_entry.c.
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Add route to IP4 or IP6 SRC FIB.
Adds a route to in the LISP SRC FIB with the result of the route being the DPO passed.
| [in] | src_fib_index | The index/ID of the SRC FIB |
| [in] | src_prefix | Source IP prefix. |
| [in] | src_dpo | The DPO the route will link to. |
Definition at line 202 of file lisp_gpe_fwd_entry.c.
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Definition at line 709 of file lisp_gpe_fwd_entry.c.
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Definition at line 1297 of file lisp_gpe_fwd_entry.c.
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Function invoked during a backwalk of the FIB graph.
Definition at line 1189 of file lisp_gpe_fwd_entry.c.
Here is the call graph for this function:
|
static |
An indication from the graph that the last lock has gone.
Definition at line 1220 of file lisp_gpe_fwd_entry.c.
|
static |
conver from the embedded fib_node_t struct to the LSIP entry
Definition at line 1178 of file lisp_gpe_fwd_entry.c.
Here is the caller graph for this function:
|
static |
Get a fib_node_t struct from the index of a LISP fwd entry.
Definition at line 1206 of file lisp_gpe_fwd_entry.c.
| clib_error_t* lisp_gpe_fwd_entry_init | ( | vlib_main_t * | vm | ) |
|
static |
Definition at line 446 of file lisp_gpe_fwd_entry.c.
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
|
static |
|
static |
Construct and insert the forwarding information used by an L2 entry.
Definition at line 781 of file lisp_gpe_fwd_entry.c.
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Definition at line 231 of file lisp_gpe_fwd_entry.c.
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Construct and insert the forwarding information used by an NSH entry.
Definition at line 1040 of file lisp_gpe_fwd_entry.c.
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Add/del L2 SD FIB entry.
Inserts value in L2 FIB keyed by vni + dest + source. If entry is overwritten the associated value is returned.
| [in] | lgm | Reference to lisp_gpe_main_t. |
| [in] | bd_index | Bridge domain index. |
| [in] | src_mac | Source mac address. |
| [in] | dst_mac | Destination mac address. |
| [in] | val | Value to add. |
| [in] | is_add | Add/del flag. |
Definition at line 683 of file lisp_gpe_fwd_entry.c.
Here is the call graph for this function:
Here is the caller graph for this function:| index_t lisp_l2_fib_lookup | ( | lisp_gpe_main_t * | lgm, |
| u16 | bd_index, | ||
| u8 | src_mac[6], | ||
| u8 | dst_mac[6] | ||
| ) |
Lookup L2 SD FIB entry.
Does a vni + dest + source lookup in the L2 LISP FIB. If the lookup fails it tries a second time with source set to 0 (i.e., a simple dest lookup).
| [in] | lgm | Reference to lisp_gpe_main_t. |
| [in] | bd_index | Bridge domain index. |
| [in] | src_mac | Source mac address. |
| [in] | dst_mac | Destination mac address. |
Definition at line 644 of file lisp_gpe_fwd_entry.c.
Here is the call graph for this function:
Here is the caller graph for this function:Add/del NSH FIB entry.
Inserts value in NSH FIB keyed by SPI+SI. If entry is overwritten the associated value is returned.
| [in] | lgm | Reference to lisp_gpe_main_t. |
| [in] | spi_si | SPI + SI. |
| [in] | dpo | Load balanced mapped to SPI + SI |
Definition at line 947 of file lisp_gpe_fwd_entry.c.
Here is the call graph for this function:
Here is the caller graph for this function:| const dpo_id_t* lisp_nsh_fib_lookup | ( | lisp_gpe_main_t * | lgm, |
| u32 | spi_si_net_order | ||
| ) |
Lookup NSH SD FIB entry.
Does an SPI+SI lookup in the NSH LISP FIB.
| [in] | lgm | Reference to lisp_gpe_main_t. |
| [in] | spi_si | SPI + SI. |
Definition at line 913 of file lisp_gpe_fwd_entry.c.
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Definition at line 622 of file lisp_gpe_fwd_entry.c.
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Definition at line 974 of file lisp_gpe_fwd_entry.c.
Here is the call graph for this function:
Here is the caller graph for this function:| int vnet_lisp_flush_stats | ( | void | ) |
Definition at line 1284 of file lisp_gpe_fwd_entry.c.
Here is the call graph for this function:
Here is the caller graph for this function:| int vnet_lisp_gpe_add_del_fwd_entry | ( | vnet_lisp_gpe_add_del_fwd_entry_args_t * | a, |
| u32 * | hw_if_indexp | ||
| ) |
Forwarding entry create/remove dispatcher.
Calls l2 or l3 forwarding entry add/del function based on input data.
| [in] | a | Forwarding entry parameters. |
| [out] | hw_if_indexp | NOT USED |
Definition at line 1246 of file lisp_gpe_fwd_entry.c.
Here is the call graph for this function:
Here is the caller graph for this function:| void vnet_lisp_gpe_add_fwd_counters | ( | vnet_lisp_gpe_add_del_fwd_entry_args_t * | a, |
| u32 | fwd_entry_index | ||
| ) |
Definition at line 470 of file lisp_gpe_fwd_entry.c.
Here is the call graph for this function:
Here is the caller graph for this function:| void vnet_lisp_gpe_del_fwd_counters | ( | vnet_lisp_gpe_add_del_fwd_entry_args_t * | a, |
| u32 | fwd_entry_index | ||
| ) |
Definition at line 1322 of file lisp_gpe_fwd_entry.c.
Here is the call graph for this function:
Here is the caller graph for this function:| lisp_api_gpe_fwd_entry_t* vnet_lisp_gpe_fwd_entries_get_by_vni | ( | u32 | vni | ) |
| void vnet_lisp_gpe_fwd_entry_flush | ( | void | ) |
Flush all the forwrding entries.
Definition at line 1349 of file lisp_gpe_fwd_entry.c.
Here is the caller graph for this function:| u32* vnet_lisp_gpe_get_fwd_entry_vnis | ( | void | ) |
Definition at line 1513 of file lisp_gpe_fwd_entry.c.
Here is the call graph for this function:
Here is the caller graph for this function:| int vnet_lisp_gpe_get_fwd_stats | ( | vnet_lisp_gpe_add_del_fwd_entry_args_t * | a, |
| vlib_counter_t * | c | ||
| ) |
Definition at line 1558 of file lisp_gpe_fwd_entry.c.
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Virtual function table to register with FIB for the LISP type.
Definition at line 1229 of file lisp_gpe_fwd_entry.c.
|
static |
(constructor) VLIB_CLI_COMMAND (lisp_gpe_fwd_entry_show_command)
Definition at line 1488 of file lisp_gpe_fwd_entry.c.