]> git.proxmox.com Git - mirror_frr.git/commit - lib/nexthop.c
lib: Add hash function for nexthop groups
authorStephen Worley <sworley@cumulusnetworks.com>
Tue, 2 Apr 2019 17:57:48 +0000 (13:57 -0400)
committerStephen Worley <sworley@cumulusnetworks.com>
Fri, 5 Apr 2019 18:19:44 +0000 (14:19 -0400)
commit1b1fe1c4090ee98908f216d13af0c766df772714
treefb1af35e4eba4aa381fcc4f20065168f3fe66202
parent5eec4615a2ca5992f68572f500ede951960acfa4
lib: Add hash function for nexthop groups

Add a hash function to turn a nexthop group into a
32 bit unsigned hash key with jhash. We do not care to
hash any recursively resolved nexthops, just the group.

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