diff options
author | anlan_cs <vic.lan@pica8.com> | 2022-06-16 10:04:46 +0200 |
---|---|---|
committer | anlan_cs <vic.lan@pica8.com> | 2022-06-17 23:42:12 +0200 |
commit | f1f4a6528880b3142995ee8b0af6026a60697bd5 (patch) | |
tree | 550563ac38a4606fbf335a46caf4b1b62a8c706e /zebra | |
parent | Merge pull request #11407 from opensourcerouting/ldp_topo1_fix (diff) | |
download | frr-f1f4a6528880b3142995ee8b0af6026a60697bd5.tar.xz frr-f1f4a6528880b3142995ee8b0af6026a60697bd5.zip |
zebra: remove redundant calling hook for fpm
Since the calling hook for old fpm is done in `rib_uninstall_kernel()`
inside, this calling place outside should be redundant. Just remove it.
Signed-off-by: anlan_cs <vic.lan@pica8.com>
Diffstat (limited to 'zebra')
-rw-r--r-- | zebra/zebra_rib.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/zebra/zebra_rib.c b/zebra/zebra_rib.c index 680128001..3699b53f1 100644 --- a/zebra/zebra_rib.c +++ b/zebra/zebra_rib.c @@ -4171,21 +4171,15 @@ unsigned long rib_score_proto(uint8_t proto, unsigned short instance) void rib_close_table(struct route_table *table) { struct route_node *rn; - struct rib_table_info *info; rib_dest_t *dest; if (!table) return; - info = route_table_get_info(table); - for (rn = route_top(table); rn; rn = srcdest_route_next(rn)) { dest = rib_dest_from_rnode(rn); if (dest && dest->selected_fib) { - if (info->safi == SAFI_UNICAST) - hook_call(rib_update, rn, NULL); - rib_uninstall_kernel(rn, dest->selected_fib); dest->selected_fib = NULL; } |