]> git.proxmox.com Git - mirror_frr.git/commit - zebra/rt_netlink.c
zebra: Refactor nexthop group creation code to use allocated memory
authorStephen Worley <sworley@cumulusnetworks.com>
Fri, 22 Mar 2019 17:11:07 +0000 (13:11 -0400)
committerStephen Worley <sworley@cumulusnetworks.com>
Fri, 25 Oct 2019 15:13:38 +0000 (11:13 -0400)
commit8e401b251f25be5d9daceab12c73b760a771df6e
tree6eefb81f2c4f491f4d35736b140afd1ff9954a56
parentb599cd2acceb4ac96e4d3569bb1caaea4f51f266
zebra: Refactor nexthop group creation code to use allocated memory

Simplify the code for nexthop hash entry creation. I made nexthop
hash entry creation expect the nexthop group and depends to always
be allocated before lookup. Before, it was only allocated if it had
dependencies. I think it makes the code a bit more readable to go
ahead an allocate even for single nexthops as well.

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