diff options
Diffstat (limited to 'src/plugins/l3xc/l3xc.c')
-rw-r--r-- | src/plugins/l3xc/l3xc.c | 20 |
1 files changed, 6 insertions, 14 deletions
diff --git a/src/plugins/l3xc/l3xc.c b/src/plugins/l3xc/l3xc.c index ac0e4cf0d2c..427c38e9ab5 100644 --- a/src/plugins/l3xc/l3xc.c +++ b/src/plugins/l3xc/l3xc.c @@ -67,11 +67,11 @@ l3xc_stack (l3xc_t * l3xc) */ dpo_id_t via_dpo = DPO_INVALID; - fib_path_list_contribute_forwarding (l3xc->l3xc_pl, - (FIB_PROTOCOL_IP4 == l3xc->l3xc_proto ? - FIB_FORW_CHAIN_TYPE_UNICAST_IP4 : - FIB_FORW_CHAIN_TYPE_UNICAST_IP6), - FIB_PATH_LIST_FWD_FLAG_NONE, &via_dpo); + fib_path_list_contribute_forwarding ( + l3xc->l3xc_pl, + (FIB_PROTOCOL_IP4 == l3xc->l3xc_proto ? FIB_FORW_CHAIN_TYPE_UNICAST_IP4 : + FIB_FORW_CHAIN_TYPE_UNICAST_IP6), + FIB_PATH_LIST_FWD_FLAG_COLLAPSE, &via_dpo); dpo_stack_from_node ((FIB_PROTOCOL_IP4 == l3xc->l3xc_proto ? l3xc_ip4_node.index : @@ -264,7 +264,6 @@ out: return (NULL); } -/* *INDENT-OFF* */ /** * Create an L3XC policy. */ @@ -274,7 +273,6 @@ VLIB_CLI_COMMAND (l3xc_cmd_node, static) = { .short_help = "l3xc [add|del] <INTERFACE> via ...", .is_mp_safe = 1, }; -/* *INDENT-ON* */ static u8 * format_l3xc (u8 * s, va_list * args) @@ -305,13 +303,11 @@ l3xc_walk (l3xc_walk_cb_t cb, void *ctx) { u32 l3xci; - /* *INDENT-OFF* */ pool_foreach_index (l3xci, l3xc_pool) { if (!cb(l3xci, ctx)) break; } - /* *INDENT-ON* */ } static clib_error_t * @@ -320,24 +316,20 @@ l3xc_show_cmd (vlib_main_t * vm, { l3xc_t *l3xc; - /* *INDENT-OFF* */ pool_foreach (l3xc, l3xc_pool) { vlib_cli_output(vm, "%U", format_l3xc, l3xc); } - /* *INDENT-ON* */ return (NULL); } -/* *INDENT-OFF* */ VLIB_CLI_COMMAND (l3xc_show_cmd_node, static) = { .path = "show l3xc", .function = l3xc_show_cmd, .short_help = "show l3xc", .is_mp_safe = 1, }; -/* *INDENT-ON* */ static fib_node_t * l3xc_get_node (fib_node_index_t index) @@ -381,7 +373,7 @@ static const fib_node_vft_t l3xc_vft = { static clib_error_t * l3xc_init (vlib_main_t * vm) { - l3xc_fib_node_type = fib_node_register_new_type (&l3xc_vft); + l3xc_fib_node_type = fib_node_register_new_type ("l3xc", &l3xc_vft); return (NULL); } |