]> git.puffer.fish Git - mirror/frr.git/commit
zebra: Refactor nexthop resolution in active funcs
authorStephen Worley <sworley@cumulusnetworks.com>
Tue, 2 Jul 2019 05:37:17 +0000 (01:37 -0400)
committerStephen Worley <sworley@cumulusnetworks.com>
Fri, 25 Oct 2019 15:13:41 +0000 (11:13 -0400)
commitdf31a989cac681c061051bbd6f53d8a246f41135
tree2c5cd7e3e1a2c06bd9b383debd632d729570077b
parent2f00094498ebd5dc65c66c1219e4553e36ec35f6
zebra: Refactor nexthop resolution in active funcs

Refactor/move around the code for nexthop resolution so
that it occurs only when the nexthop actually changes. Further,
provide a helper function to make the code more readable.

Also, remove the check for NEXTHOPS_CHANGED as this flag is used
specifcially for nexthop tracking and not an appropriate check
here.

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