Evaluate whether we need to unpause. */
| 2523 | |
| 2524 | /* Evaluate whether we need to unpause. */ |
| 2525 | static void |
| 2526 | syncache_unpause(void *arg) |
| 2527 | { |
| 2528 | struct tcp_syncache *sc; |
| 2529 | time_t delta; |
| 2530 | |
| 2531 | sc = arg; |
| 2532 | mtx_assert(&sc->pause_mtx, MA_OWNED | MA_NOTRECURSED); |
| 2533 | callout_deactivate(&sc->pause_co); |
| 2534 | |
| 2535 | /* |
| 2536 | * Check to make sure we are not running early. If the pause |
| 2537 | * time has expired, then deactivate the protection. |
| 2538 | */ |
| 2539 | if ((delta = sc->pause_until - time_uptime) > 0) |
| 2540 | callout_schedule(&sc->pause_co, delta * hz); |
| 2541 | else |
| 2542 | sc->paused = false; |
| 2543 | } |
| 2544 | |
| 2545 | /* |
| 2546 | * Exports the syncache entries to userland so that netstat can display |
nothing calls this directly
no test coverage detected