Code Review
/
vpp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
fib: fib api updates
[vpp.git]
/
src
/
vnet
/
bier
/
bier_table.c
diff --git
a/src/vnet/bier/bier_table.c
b/src/vnet/bier/bier_table.c
index
edfb754
..
0e8cc1e
100644
(file)
--- 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);
/*
FIB_SOURCE_BIER);
/*
- * stack the entry on the forwarding chain prod
cu
ed by the
+ * stack the entry on the forwarding chain prod
uc
ed by the
* path-list via the ECMP tables.
*/
fib_path_list_contribute_forwarding(bt->bt_pl,
* 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 oppo
r
tunity 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].
* 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);
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
}
void