X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=src%2Fvnet%2Fbier%2Fbier_table.c;h=0e8cc1e88b4b53e8a97bedf86109ad00314c01c6;hb=097fa66b986f06281f603767d321ab13ab6c88c3;hp=edfb754ecc18e92b3053a4f25abd411fd2cce947;hpb=fe4e48f617f3e0f62880adebdcfb5989aa4e6db7;p=vpp.git diff --git a/src/vnet/bier/bier_table.c b/src/vnet/bier/bier_table.c index edfb754ecc1..0e8cc1e88b4 100644 --- a/src/vnet/bier/bier_table.c +++ b/src/vnet/bier/bier_table.c @@ -251,7 +251,7 @@ bier_table_mk_lfib (bier_table_t *bt) FIB_SOURCE_BIER); /* - * stack the entry on the forwarding chain prodcued by the + * stack the entry on the forwarding chain produced by the * path-list via the ECMP tables. */ fib_path_list_contribute_forwarding(bt->bt_pl, @@ -309,7 +309,7 @@ bier_table_mk_ecmp (index_t bti) } /* - * no oppotunity to share, this the resolving ECMP tables are unique + * no opportunity to share, this the resolving ECMP tables are unique * to this table. * no need to be a child of the path list, we can do nothing with any * notifications it would generate [not that it will]. @@ -779,9 +779,12 @@ bier_table_ecmp_walk (index_t bti, bt = bier_table_get(bti); - fib_path_list_walk(bt->bt_pl, - bier_table_ecmp_walk_path_list, - &ewc); + if (FIB_NODE_INDEX_INVALID != bt->bt_pl) + { + fib_path_list_walk(bt->bt_pl, + bier_table_ecmp_walk_path_list, + &ewc); + } } void