diff options
author | G. Paul Ziemba <paulz@labn.net> | 2022-08-26 23:47:07 +0200 |
---|---|---|
committer | G. Paul Ziemba <paulz@labn.net> | 2022-08-31 17:21:27 +0200 |
commit | 80853c2ec7f8fa0534a12adf809e124e5b0dc79f (patch) | |
tree | c7e6b3ff625a114c7223f5ed7b894ae9bb865ae2 /pimd/pim_cmd.c | |
parent | Merge pull request #11863 from sri-mohan1/sri-ospf-dbg1 (diff) | |
download | frr-80853c2ec7f8fa0534a12adf809e124e5b0dc79f.tar.xz frr-80853c2ec7f8fa0534a12adf809e124e5b0dc79f.zip |
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 'pimd/pim_cmd.c')
0 files changed, 0 insertions, 0 deletions