]> git.puffer.fish Git - mirror/frr.git/commit
lib, zebra: Allow for installation of a weighted nexthop
authorDonald Sharp <sharpd@cumulusnetworks.com>
Fri, 6 Dec 2019 13:58:47 +0000 (08:58 -0500)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Mon, 9 Dec 2019 18:37:37 +0000 (13:37 -0500)
commitdf7fb5800b3798057747873c8be245eb13f3ec36
treee795efba029d5404013d570bc6ec652bb4b67c34
parent0dcbec72aa2b508c194ec4391b6d821ea996fb08
lib, zebra: Allow for installation of a weighted nexthop

Linux has the idea of allowing a weight to be sent
down as part of a nexthop group to allow the kernel
to weight particular nexthop paths a bit more or less
than others.

See:
http://tldp.org/HOWTO/Adv-Routing-HOWTO/lartc.rpdb.multiple-links.html

Allow for installation into the kernel using the weight attribute
associated with the nexthop.

This code is foundational in that it just sets up the ability
to do this, we do not use it yet.  Further commits will
allow for the pass through of this data from upper level protocols.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
lib/nexthop.c
lib/nexthop.h
zebra/rt_netlink.c
zebra/zebra_nhg.c