]> git.proxmox.com Git - mirror_frr.git/commit - zebra/zebra_nhg.h
zebra: Read in nexthop dependencies from the kernel
authorStephen Worley <sworley@cumulusnetworks.com>
Thu, 21 Mar 2019 14:47:19 +0000 (10:47 -0400)
committerStephen Worley <sworley@cumulusnetworks.com>
Fri, 25 Oct 2019 15:13:38 +0000 (11:13 -0400)
commit85f5e76175f190ef13b7d883a256612380574ca6
tree1bee71064d9572335152ed1a368369edf24c2ae7
parent3119f6a11455b9c5648167f4c8293476be9c5a9e
zebra: Read in nexthop dependencies from the kernel

Add functionality to read in a group from the kernel,
create a hash entry for it, and add its nexthops to
its dependency list.

Further, we create its nhg struct separtely from this,
copying over any nexthops it should reference directly
into it.

Thus, we have two types for representation of the nexthop group:
nhe->nhg_depends->[nhe, nhe, nhe]

nhe->nhg->nexthop->nexthop->nexthop

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