]> git.proxmox.com Git - mirror_frr.git/commitdiff
zebra: Uninstall nexthop when ref count hits zero
authorStephen Worley <sworley@cumulusnetworks.com>
Fri, 8 Mar 2019 15:29:43 +0000 (10:29 -0500)
committerStephen Worley <sworley@cumulusnetworks.com>
Fri, 25 Oct 2019 15:13:37 +0000 (11:13 -0400)
When nexthop entry reference counts hit zero and
we created them, uninstall them from the kernel.

Signed-off-by: Stephen Worley <sworley@cumulusnetworks.com>
zebra/zebra_nhg.c

index 2ac8678e1251ccff80dc22418fd21b76c0eb55d7..c663022caa7040de79b27421773c595ffc3f94c8 100644 (file)
@@ -313,7 +313,7 @@ void zebra_nhg_decrement_ref(struct nhg_hash_entry *nhe)
        nhe->refcnt--;
 
        if (!nhe->is_kernel_nh && nhe->refcnt <= 0) {
-               zebra_nhg_release(nhe);
+               zebra_nhg_uninstall_kernel(nhe);
        }
 
        // re->ng = NULL;