mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-04 18:44:54 +00:00
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:
parent
9865e1c393
commit
e25f64010e
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user