MCPcopy Create free account
hub / github.com/F-Stack/f-stack / sync_algo

Function sync_algo

freebsd/net/route/fib_algo.c:708–724  ·  view source on GitHub ↗

* Dump all routing table state to the algo instance. */

Source from the content-addressed store, hash-verified

706 * Dump all routing table state to the algo instance.
707 */
708static enum flm_op_result
709sync_algo(struct fib_data *fd)
710{
711 struct walk_cbdata w = {
712 .fd = fd,
713 .func = fd->fd_flm->flm_dump_rib_item_cb,
714 .result = FLM_SUCCESS,
715 };
716
717 rib_walk_ext_locked(fd->fd_rh, sync_algo_cb, sync_algo_end_cb, &w);
718
719 FD_PRINTF(LOG_INFO, fd,
720 "initial dump completed (rtable version: %d), result: %s",
721 fd->fd_rh->rnh_gen, print_op_result(w.result));
722
723 return (w.result);
724}
725
726/*
727 * Schedules epoch-backed @fd instance deletion.

Callers 1

try_setup_fd_instanceFunction · 0.85

Calls 2

rib_walk_ext_lockedFunction · 0.85
print_op_resultFunction · 0.85

Tested by

no test coverage detected