]> git.proxmox.com Git - mirror_frr.git/commit
lib: Sort zapi_nexthops on the encode
authorStephen Worley <sworley@cumulusnetworks.com>
Mon, 19 Aug 2019 19:56:45 +0000 (15:56 -0400)
committerStephen Worley <sworley@cumulusnetworks.com>
Mon, 19 Aug 2019 19:56:45 +0000 (15:56 -0400)
commit3c6e0bd4726f43bd0ab96c26747022bff03b119d
treef082c807a625c8b2d5290c98548102d716f66c97
parent8c15fa95a81fe0062556e3b64df29509eeb035e6
lib: Sort zapi_nexthops on the encode

Sort nexthops before we push them to zebra. This offloads
the nexthop sorting zebra is doing onto the upper level protocols
so that when it gets to zebra and we construct a group, it just has
to append them to the tail for every nexthop.

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