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>
This commit is contained in:
Stephen Worley 2019-03-08 10:29:43 -05:00
parent 9865e1c393
commit e25f64010e

View 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;