]> git.puffer.fish Git - mirror/frr.git/commitdiff
zebra: remove redundant calling hook for fpm 11427/head
authoranlan_cs <vic.lan@pica8.com>
Thu, 16 Jun 2022 08:04:46 +0000 (04:04 -0400)
committeranlan_cs <vic.lan@pica8.com>
Fri, 17 Jun 2022 21:42:12 +0000 (17:42 -0400)
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>
zebra/zebra_rib.c

index 6801280012f7f695a63301e82d9f459b190601a9..3699b53f120e1b245a3af50bcaf581fb42d34dfb 100644 (file)
@@ -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;
                }