]> git.proxmox.com Git - mirror_frr.git/commit
zebra: Resolved nh change, inc refcnt by rt refcnt
authorStephen Worley <sworley@cumulusnetworks.com>
Tue, 2 Jul 2019 05:04:29 +0000 (01:04 -0400)
committerStephen Worley <sworley@cumulusnetworks.com>
Fri, 25 Oct 2019 15:13:40 +0000 (11:13 -0400)
commit9834bb52aebb46fc4ba85e959cc98adda996a4b3
tree5807fe69cf0cb45a50fb8b8bda59f971867b6205
parent1e9aad82ba65df9c50eb819334cb2caace57df6c
zebra: Resolved nh change, inc refcnt by rt refcnt

When the resolved nexthop changes, we should increment the new
resolved NHE by the refcnt for the unresolved NHE being used
by the routes and decrement the old one by the same amount.

Before, we were simple incrementing by one, causing incorrect refcnts
to occur.

Signed-off-by: Stephen Worley <sworley@cumulusnetworks.com>
zebra/zebra_nhg.c