* 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. */
| 1035 | * - Creates a new instance of an algo for af/fib if desired. |
| 1036 | */ |
| 1037 | static void |
| 1038 | rebuild_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. |
nothing calls this directly
no test coverage detected