* Dump all routing table state to the algo instance. */
| 706 | * Dump all routing table state to the algo instance. |
| 707 | */ |
| 708 | static enum flm_op_result |
| 709 | sync_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. |
no test coverage detected