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

Function rebuild_fd_callout

freebsd/net/route/fib_algo.c:1037–1050  ·  view source on GitHub ↗

* Callout for all scheduled fd-related work. * - Checks if the current algo is still the best algo * - Creates a new instance of an algo for af/fib if desired. */

Source from the content-addressed store, hash-verified

1035 * - Creates a new instance of an algo for af/fib if desired.
1036 */
1037static void
1038rebuild_fd_callout(void *_data)
1039{
1040 struct fib_data *fd = (struct fib_data *)_data;
1041 struct epoch_tracker et;
1042
1043 FD_PRINTF(LOG_INFO, fd, "running callout rebuild");
1044
1045 NET_EPOCH_ENTER(et);
1046 CURVNET_SET(fd->fd_vnet);
1047 rebuild_fd(fd);
1048 CURVNET_RESTORE();
1049 NET_EPOCH_EXIT(et);
1050}
1051
1052/*
1053 * Tries to create new algo instance based on @fd data.

Callers

nothing calls this directly

Calls 1

rebuild_fdFunction · 0.85

Tested by

no test coverage detected