diff options
author | Florin Coras <fcoras@cisco.com> | 2017-06-07 21:50:57 -0700 |
---|---|---|
committer | Damjan Marion <dmarion.lists@gmail.com> | 2017-06-08 17:43:56 +0000 |
commit | a4e63e5593d53692b8085dc666f8670ece135f32 (patch) | |
tree | 42cc0326c181351c7dcd0ce08a478dc076858d86 /src/vnet/lisp-gpe/lisp_gpe.h | |
parent | 6899a30bd70f219cfd182dfb0e9ac96faf5d9892 (diff) |
Add gpe native-forward static route support
Change-Id: I744e7d64d94dbb302f2c1246663480f720672ee2
Signed-off-by: Florin Coras <fcoras@cisco.com>
Diffstat (limited to 'src/vnet/lisp-gpe/lisp_gpe.h')
-rw-r--r-- | src/vnet/lisp-gpe/lisp_gpe.h | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/src/vnet/lisp-gpe/lisp_gpe.h b/src/vnet/lisp-gpe/lisp_gpe.h index f0405644b11..660f8a6628b 100644 --- a/src/vnet/lisp-gpe/lisp_gpe.h +++ b/src/vnet/lisp-gpe/lisp_gpe.h @@ -163,6 +163,10 @@ typedef struct lisp_gpe_main uword *lisp_stats_index_by_key; vlib_combined_counter_main_t counters; + /** Native fwd data structures */ + fib_route_path_t *native_fwd_rpath[2]; + u32 *native_fwd_lfes[2]; + /** convenience */ vlib_main_t *vlib_main; vnet_main_t *vnet_main; @@ -271,6 +275,12 @@ typedef struct typedef struct { + fib_route_path_t rpath; + u8 is_add; +} vnet_gpe_native_fwd_rpath_args_t; + +typedef struct +{ u32 fwd_entry_index; u32 dp_table; u32 vni; @@ -313,7 +323,7 @@ u8 vnet_lisp_stats_enable_disable_state (void); vnet_api_error_t vnet_lisp_stats_enable_disable (u8 enable); lisp_api_stats_t *vnet_lisp_get_stats (void); int vnet_lisp_flush_stats (void); - +int vnet_gpe_add_del_native_fwd_rpath (vnet_gpe_native_fwd_rpath_args_t * a); #endif /* included_vnet_lisp_gpe_h */ /* |