]> git.puffer.fish Git - mirror/frr.git/commit
lib: default nexthop weights to one 5540/head
authorStephen Worley <sworley@cumulusnetworks.com>
Mon, 16 Dec 2019 20:42:37 +0000 (15:42 -0500)
committerStephen Worley <sworley@cumulusnetworks.com>
Mon, 16 Dec 2019 20:42:37 +0000 (15:42 -0500)
commite28492ae84632d4f6be44e3219a3615df7821f17
tree265df304994574803e21dd5cc47e5293d3f440d6
parent8887295390c5785b82922eeb5caba49da2f373d9
lib: default nexthop weights to one

Default all nexthop weights to one. The linux kernel does
some weird stuff where it adds one to all nexthop weight values
it gets. So, we added df7fb5800b3798057747873c8be245eb13f3ec36 with
some special subtracing/adding to account for this. Though, that patch
did not account for the default case of the weight being zero for
elements in the group.

Hence, this patch defaults the nexthop weight to one during creation.
This should be a valid value on all platforms anyway so shouldn't
affect anything.

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