summaryrefslogtreecommitdiff
path: root/lib/routemap_cli.c
diff options
context:
space:
mode:
authorG. Paul Ziemba <paulz@labn.net>2022-08-26 14:47:07 -0700
committerG. Paul Ziemba <paulz@labn.net>2022-08-31 08:21:27 -0700
commit80853c2ec7f8fa0534a12adf809e124e5b0dc79f (patch)
treec7e6b3ff625a114c7223f5ed7b894ae9bb865ae2 /lib/routemap_cli.c
parent43bb6fc8d4dec4c4a6ddae35e43bcc867b034d5d (diff)
bgpd: improve labelpool performance at scale
- double the size of each new chunk request from zebra - use bitfields to track label allocations in a chunk - When allocating: - skip chunks with no free labels - search biggest chunks first - start search in chunk where last search ended - Improve API documentation in comments (bgp_lp_get() and callback) - Tweak formatting of "show bgp labelpool chunks" - Add test features (compiled conditionally on BGP_LABELPOOL_ENABLE_TESTS) Signed-off-by: G. Paul Ziemba <paulz@labn.net>
Diffstat (limited to 'lib/routemap_cli.c')
0 files changed, 0 insertions, 0 deletions