]> git.puffer.fish Git - mirror/frr.git/commit
bgpd: fix label allocation should not be allocated at startup
authorPhilippe Guibert <philippe.guibert@6wind.com>
Fri, 1 Sep 2023 15:51:54 +0000 (17:51 +0200)
committerPhilippe Guibert <philippe.guibert@6wind.com>
Wed, 18 Oct 2023 07:41:02 +0000 (09:41 +0200)
commitcb86d8e3a4515291f8bbd34a0a32e23f2495a315
treefcf0b370d9cf17ae54207f7d1c9164bfa75706fa
parentd162d5f6f538e60385290fddf8ed256d2e15f628
bgpd: fix label allocation should not be allocated at startup

BGP always asks zebra for a chunk of MPLS label even if it doesn't need it.
Fix this by correcting the rounding up "labels_needed" formula.

Fixes: 80853c2ec7f8 ("bgpd: improve labelpool performance at scale")
Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
bgpd/bgp_labelpool.c
tests/topotests/bgp_lu_topo1/R2/labelpool.summ.json