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

Function schedule_fd_rebuild

freebsd/net/route/fib_algo.c:469–486  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

467}
468
469static void
470schedule_fd_rebuild(struct fib_data *fd, const char *reason)
471{
472
473 RIB_WLOCK_ASSERT(fd->fd_rh);
474
475 if (!fd->fd_need_rebuild) {
476 fd->fd_need_rebuild = true;
477
478 /*
479 * Potentially re-schedules pending callout
480 * initiated by schedule_algo_eval.
481 */
482 FD_PRINTF(LOG_INFO, fd, "Scheduling rebuild: %s (failures=%d)",
483 reason, fd->fd_failed_rebuilds);
484 schedule_callout(fd, callout_calc_delay_ms(fd));
485 }
486}
487
488static void
489schedule_algo_eval(struct fib_data *fd)

Callers 1

handle_rtable_change_cbFunction · 0.85

Calls 2

schedule_calloutFunction · 0.85
callout_calc_delay_msFunction · 0.85

Tested by

no test coverage detected