summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephen Worley <sworley@cumulusnetworks.com>2019-03-08 10:29:43 -0500
committerStephen Worley <sworley@cumulusnetworks.com>2019-10-25 11:13:37 -0400
commite25f64010ef853728de087ad873e018f34a98382 (patch)
treea0655c2d77af1f76b43d164f013a369a5e020f03
parent9865e1c393ff3c3828a6ff85231c1144e86e03b4 (diff)
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 <sworley@cumulusnetworks.com>
-rw-r--r--zebra/zebra_nhg.c2
1 files changed, 1 insertions, 1 deletions
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;