]> git.puffer.fish Git - mirror/frr.git/commitdiff
zebra: Pass in ZEBRA_ROUTE_MAX instead of true 16881/head
authorDonald Sharp <sharpd@nvidia.com>
Fri, 20 Sep 2024 14:58:46 +0000 (10:58 -0400)
committerDonald Sharp <sharpd@nvidia.com>
Fri, 20 Sep 2024 15:00:11 +0000 (11:00 -0400)
zebra_nhg_install_kernel takes a route type.  We don't
know it at that particular spot but we should not be passing
in `true`.  Let's use ZEBRA_ROUTE_MAX to indicate we do not
know, so that the correct thing is done.

Signed-off-by: Donald Sharp <sharpd@nvidia.com>
zebra/zebra_nhg.c

index 637eabde8d2da6738679e84de33f8e5d395c8062..4ee9dc5fcf8ec85f7f8d49533a32f340ad3258d6 100644 (file)
@@ -1167,7 +1167,8 @@ static void zebra_nhg_handle_install(struct nhg_hash_entry *nhe, bool install)
                                        "%s nh id %u (flags 0x%x) associated dependent NHG %pNG install",
                                        __func__, nhe->id, nhe->flags,
                                        rb_node_dep->nhe);
-                       zebra_nhg_install_kernel(rb_node_dep->nhe, true);
+                       zebra_nhg_install_kernel(rb_node_dep->nhe,
+                                                ZEBRA_ROUTE_MAX);
                }
        }
 }