summaryrefslogtreecommitdiff
path: root/zebra/zebra_rib.c
diff options
context:
space:
mode:
authorDonatas Abraitis <donatas@opensourcerouting.org>2022-06-22 11:39:13 +0300
committerGitHub <noreply@github.com>2022-06-22 11:39:13 +0300
commit0ba27f1cb2e9917f9a2cbea409d92b6175829534 (patch)
tree28c3f6036475d29169356fd5b58204ac32c692a6 /zebra/zebra_rib.c
parent14b27b36106a271ee4421ae0e50de1075387aee6 (diff)
parentf1f4a6528880b3142995ee8b0af6026a60697bd5 (diff)
Merge pull request #11427 from anlancs/fix/minor-2
zebra: remove redundant calling hook for fpm
Diffstat (limited to 'zebra/zebra_rib.c')
-rw-r--r--zebra/zebra_rib.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/zebra/zebra_rib.c b/zebra/zebra_rib.c
index 6801280012..3699b53f12 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;
}