From e25f64010ef853728de087ad873e018f34a98382 Mon Sep 17 00:00:00 2001 From: Stephen Worley Date: Fri, 8 Mar 2019 10:29:43 -0500 Subject: [PATCH] zebra: Uninstall nexthop when ref count hits zero When nexthop entry reference counts hit zero and we created them, uninstall them from the kernel. Signed-off-by: Stephen Worley --- zebra/zebra_nhg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zebra/zebra_nhg.c b/zebra/zebra_nhg.c index 2ac8678e12..c663022caa 100644 --- a/zebra/zebra_nhg.c +++ b/zebra/zebra_nhg.c @@ -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;