]> git.puffer.fish Git - matthieu/frr.git/commit
zebra: fix refcnt/rib issues in NHG replace/delete
authorStephen Worley <sworley@cumulusnetworks.com>
Wed, 20 May 2020 19:47:12 +0000 (15:47 -0400)
committerStephen Worley <sworley@cumulusnetworks.com>
Mon, 28 Sep 2020 16:40:59 +0000 (12:40 -0400)
commit1f655680469dc883298348b2bdd4c2ae8bff0fe7
treeea11c306b4a1b3a1d9642315c58095c7bc2cd4f3
parent68671c74390fdb746568413e6d2150cae4c2d4b9
zebra: fix refcnt/rib issues in NHG replace/delete

Fix some reference counting issues seen when replacing
a NHG and deleting one.

For replacement, we should end with the same refcnt on the new
one.

For delete, its the caller's job to decrement its ref after
its done with it.

Further, update routes in the rib with the new pointer after replace.

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