X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=src%2Fvnet%2Ffib%2Ffib_path_list.c;h=df08bb2b0d05bb536b36f63b646251174879651b;hb=da3310597;hp=a9976e52ba92e1aed32f4dc689f141d8beea8ed5;hpb=513582c96a6d58a3980b3e444446bc6e5c4e4764;p=vpp.git diff --git a/src/vnet/fib/fib_path_list.c b/src/vnet/fib/fib_path_list.c index a9976e52ba9..df08bb2b0d0 100644 --- a/src/vnet/fib/fib_path_list.c +++ b/src/vnet/fib/fib_path_list.c @@ -29,7 +29,7 @@ /** * The magic number of child entries that make a path-list popular. - * There's a trade-off here between convergnece and forwarding speed. + * There's a trade-off here between convergence and forwarding speed. * Popular path-lists generate load-balance maps for the entries that * use them. If the map is present there is a switch path cost to indirect * through the map - this indirection provides the fast convergence - so @@ -62,11 +62,6 @@ typedef struct fib_path_list_t_ { * the RPF list calculated for this path list */ fib_node_index_t fpl_urpf; - - /** - * Hash table of paths. valid only with INDEXED flag - */ - uword *fpl_db; } fib_path_list_t; /* @@ -512,7 +507,7 @@ fib_path_list_back_walk_notify (fib_node_t *node, { /* * the path-list is not a direct child of any other node type - * paths, which do not change thier to-list-mapping, save the + * paths, which do not change their to-list-mapping, save the * list they are a member of, and invoke the BW function directly. */ ASSERT(0); @@ -1317,7 +1312,7 @@ fib_path_list_child_add (fib_node_index_t path_list_index, * threshold. then walk children to update. * We don't undo this action. The rational being that the number * of entries using this prefix is large enough such that it is a - * non-trival amount of effort to converge them. If we get into the + * non-trivial amount of effort to converge them. If we get into the * situation where we are adding and removing entries such that we * flip-flop over the threshold, then this non-trivial work is added * to each of those routes adds/deletes - not a situation we want. @@ -1460,7 +1455,7 @@ show_fib_path_list_command (vlib_main_t * vm, u8 *s = fib_path_list_format(pli, NULL); s = format(s, "children:"); s = fib_node_children_format(path_list->fpl_node.fn_children, s); - vlib_cli_output (vm, "%s", s); + vlib_cli_output (vm, "%v", s); vec_free(s); } else @@ -1474,10 +1469,10 @@ show_fib_path_list_command (vlib_main_t * vm, * show all */ vlib_cli_output (vm, "FIB Path Lists"); - pool_foreach_index (pli, fib_path_list_pool, - ({ + pool_foreach_index (pli, fib_path_list_pool) + { vlib_cli_output (vm, "%U", format_fib_path_list, pli, 0); - })); + } } return (NULL); }