| 446 | #pragma GCC diagnostic error "-Waddress" |
| 447 | |
| 448 | void |
| 449 | tcp_fastopen_destroy(void) |
| 450 | { |
| 451 | struct tcp_fastopen_ccache_bucket *ccb; |
| 452 | unsigned int i; |
| 453 | |
| 454 | for (i = 0; i < V_tcp_fastopen_ccache.buckets; i++) { |
| 455 | ccb = &V_tcp_fastopen_ccache.base[i]; |
| 456 | tcp_fastopen_ccache_bucket_trim(ccb, 0); |
| 457 | mtx_destroy(&ccb->ccb_mtx); |
| 458 | } |
| 459 | |
| 460 | KASSERT(uma_zone_get_cur(V_tcp_fastopen_ccache.zone) == 0, |
| 461 | ("%s: TFO ccache zone allocation count not 0", __func__)); |
| 462 | uma_zdestroy(V_tcp_fastopen_ccache.zone); |
| 463 | free(V_tcp_fastopen_ccache.base, M_TCP_FASTOPEN_CCACHE); |
| 464 | |
| 465 | callout_drain(&V_tcp_fastopen_autokey_ctx.c); |
| 466 | rm_destroy(&V_tcp_fastopen_keylock); |
| 467 | uma_zdestroy(V_counter_zone); |
| 468 | } |
| 469 | |
| 470 | unsigned int * |
| 471 | tcp_fastopen_alloc_counter(void) |
no test coverage detected