]> git.puffer.fish Git - mirror/frr.git/commitdiff
zebra: Update rib_add_multipath with increment nhe
authorStephen Worley <sworley@cumulusnetworks.com>
Mon, 1 Apr 2019 16:21:52 +0000 (12:21 -0400)
committerStephen Worley <sworley@cumulusnetworks.com>
Fri, 25 Oct 2019 15:13:39 +0000 (11:13 -0400)
Update rib_add_multipath to use the reference count
increment function for nexthop group hash entries.

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

index 558dbd33e09097f895fab0cc933bbf2baba58e71..d33b8494b020f68a810a9597cc036dc5fecea52d 100644 (file)
@@ -2684,7 +2684,7 @@ int rib_add_multipath(afi_t afi, safi_t safi, struct prefix *p,
                zebra_nhg_free_group_depends(re->ng, nhg_depends);
                re->ng = nhe->nhg;
                re->nhe_id = nhe->id;
-               nhe->refcnt++;
+               zebra_nhg_increment_ref(nhe);
        } else {
                flog_err(
                        EC_ZEBRA_TABLE_LOOKUP_FAILED,