From cb50cbc96ee0b6c69e7c80d00c3d26070f4a1651 Mon Sep 17 00:00:00 2001 From: Stephen Worley Date: Tue, 14 May 2019 10:12:28 -0700 Subject: [PATCH] zebra: Just uninstall NHE when refcnt hits zero Just going to uninstall the NHE when refcnt hits zero for now. Signed-off-by: Stephen Worley --- zebra/zebra_nhg.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/zebra/zebra_nhg.c b/zebra/zebra_nhg.c index 44265bc580..376d07535d 100644 --- a/zebra/zebra_nhg.c +++ b/zebra/zebra_nhg.c @@ -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); } }