Skip to content

Commit

Permalink
zebra: Update rib_add_multipath with increment nhe
Browse files Browse the repository at this point in the history
Update rib_add_multipath to use the reference count
increment function for nexthop group hash entries.

Signed-off-by: Stephen Worley <sworley@cumulusnetworks.com>
  • Loading branch information
sworleys committed Oct 25, 2019
1 parent f54ef6a commit 86946a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion zebra/zebra_rib.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 86946a2

Please sign in to comment.