]> git.proxmox.com Git - mirror_frr.git/commit - zebra/rt_netlink.c
zebra: Sweep our nexthop objects out on restart
authorStephen Worley <sworley@cumulusnetworks.com>
Thu, 1 Aug 2019 18:07:04 +0000 (14:07 -0400)
committerStephen Worley <sworley@cumulusnetworks.com>
Fri, 25 Oct 2019 15:13:41 +0000 (11:13 -0400)
commit38e40db1c9695786d41a85661e313ce5a207866f
tree16e6399ae8cdc01a20bff437db782689ad94b786
parent428b4c0a5d798d3a0c1984da7d02e0df86df978e
zebra: Sweep our nexthop objects out on restart

On restart, if we failed to remove any nexthop objects due
to a kill -9 or such event, sweep them if we aren't using them.
Add a proto field to handle this and remove the is_kernel bool.

Add a dupicate flag that indicates this nexthop group is only
present in our ID hashtable. It is a dupicate nexthop we received
from the kernel, therefore we cannot hash on it.

Make the idcounter globally accessible so that kernel updates
increment it as soon as we receive them, not when we handle them.

Signed-off-by: Stephen Worley <sworley@cumulusnetworks.com>
zebra/if_netlink.c
zebra/rt_netlink.c
zebra/zebra_dplane.c
zebra/zebra_dplane.h
zebra/zebra_nhg.c
zebra/zebra_nhg.h
zebra/zebra_rib.c
zebra/zebra_router.c
zebra/zebra_router.h