From 5f3fcb96296a4769f55f60270e10c6294c604db9 Mon Sep 17 00:00:00 2001 From: Andrew Yourtchenko Date: Wed, 25 Oct 2017 05:50:37 -0700 Subject: L3 proxy FIB source for container networking Change-Id: I4164c4c19c8dbfd73e6ddf94a12056325cc093b9 Signed-off-by: Neale Ranns Signed-off-by: Andrew Yourtchenko --- src/vnet/dpo/dpo.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'src/vnet/dpo/dpo.c') diff --git a/src/vnet/dpo/dpo.c b/src/vnet/dpo/dpo.c index e94f347466e..7658132d47a 100644 --- a/src/vnet/dpo/dpo.c +++ b/src/vnet/dpo/dpo.c @@ -41,6 +41,7 @@ #include #include #include +#include /** * Array of char* names for the DPO types and protos @@ -345,6 +346,17 @@ dpo_unlock (dpo_id_t *dpo) dpo_vfts[dpo->dpoi_type].dv_unlock(dpo); } +u32 +dpo_get_urpf(const dpo_id_t *dpo) +{ + if (dpo_id_is_valid(dpo) && + (NULL != dpo_vfts[dpo->dpoi_type].dv_get_urpf)) + { + return (dpo_vfts[dpo->dpoi_type].dv_get_urpf(dpo)); + } + + return (~0); +} static u32 dpo_get_next_node (dpo_type_t child_type, @@ -525,6 +537,7 @@ dpo_module_init (vlib_main_t * vm) interface_tx_dpo_module_init(); mpls_disp_dpo_module_init(); l2_bridge_dpo_module_init(); + l3_proxy_dpo_module_init(); return (NULL); } -- cgit 1.2.3-korg