]> git.puffer.fish Git - mirror/frr.git/commit
zebra: NHG ID bounds macros
authorStephen Worley <sworley@cumulusnetworks.com>
Wed, 13 May 2020 18:32:13 +0000 (14:32 -0400)
committerStephen Worley <sworley@cumulusnetworks.com>
Mon, 28 Sep 2020 16:40:59 +0000 (12:40 -0400)
commit54c89c9377685e32010ab1f788b2a19c0bc3531b
tree0c3e604646bd67b9230d151058fdcb9a9358197f
parent16b20ad0628ee98537c79ae7e018303ad1de8aca
zebra: NHG ID bounds macros

Determine the NHG ID spacing and lower bound with ZEBRA_ROUTE_MAX
in macros.

Directly set the upperbound to be the lower 28bits of the uint32_t ID
space (the top 4 are reserved for l2-NHGs). Round that number down
a bit to make it more even.

Convert all former lower_bound calls to just use the macro.

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