]> git.puffer.fish Git - matthieu/frr.git/commitdiff
zebra: Just uninstall NHE when refcnt hits zero
authorStephen Worley <sworley@cumulusnetworks.com>
Tue, 14 May 2019 17:12:28 +0000 (10:12 -0700)
committerStephen Worley <sworley@cumulusnetworks.com>
Fri, 25 Oct 2019 15:13:39 +0000 (11:13 -0400)
Just going to uninstall the NHE when refcnt hits zero
for now.

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

index 44265bc5805a3d57737ae42cd9d1d8714dcbe364..376d07535db2bc88df1c3de1e518c30048e51e2a 100644 (file)
@@ -605,7 +605,8 @@ void zebra_nhg_decrement_ref(struct nhg_hash_entry *nhe)
        nhe->refcnt--;
 
        if (!nhe->is_kernel_nh && nhe->refcnt <= 0) {
-               zebra_nhg_uninstall_release(nhe);
+               zebra_nhg_uninstall_kernel(nhe);
+               // zebra_nhg_release(nhe);
        }
 }