summaryrefslogtreecommitdiff
path: root/tests/lib/test_heavy_thread.c
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@cumulusnetworks.com>2017-11-30 14:03:07 -0500
committerDonald Sharp <sharpd@cumulusnetworks.com>2017-12-05 17:26:32 -0500
commit5f7a4718e201724a8ca697dedaa8ce008949c3f5 (patch)
tree076ee09a55a48257a55f90812babd340ba012b4f /tests/lib/test_heavy_thread.c
parent17473b9a4589054ce2b3c81e4f2f32e7573d75c3 (diff)
zebra: Replace SELECTED_FIB flag with a rib_dest_t pointer
The SELECTED_FIB flag was placed upon the entry that we have inserted into the kernel. Remove this flag and replace with a `rib_dest_t` *selected_fib. Just keep track of the selected_fib as we modify it. This removes allot of FOREACH_RE loops as that we do not need to find the entry anymore. At this point in time I think this is a very minor performance boost. Most `rib_dest_t` structures do not typically carry more than 1 route_entry, but the minute you start having more than one entry you can and will start having significant processing time spent finding the selected_fib. A future commit may re-order the route entries and possibly keep more pointers on `rib_dest_t` to avoid lookup. This is a bit tricky because of the FIB_OVERRIDE code. Signed-off-by Donald Sharp <sharpd@cumulusnetworks.com>
Diffstat (limited to 'tests/lib/test_heavy_thread.c')
0 files changed, 0 insertions, 0 deletions