Lines Matching refs:tcp_cache_size
139 size_t tcp_cache_size; variable
310 return (uint16_t)(hash & (tcp_cache_size - 1)); in tcp_cache_hash()
659 return (uint16_t)(hash & (tcp_cache_size - 1)); in tcp_heuristics_hash()
1529 for (i = 0; i < tcp_cache_size; i++) { in sysctl_cleartfocache()
1601 tcp_cache_size = tcp_cache_roundup2((uint32_t)(sane_size_meg >> 2)); in tcp_cache_init()
1602 if (tcp_cache_size < 32) { in tcp_cache_init()
1603 tcp_cache_size = 32; in tcp_cache_init()
1604 } else if (tcp_cache_size > 1024) { in tcp_cache_init()
1605 tcp_cache_size = 1024; in tcp_cache_init()
1608 tcp_cache = zalloc_permanent(sizeof(struct tcp_cache_head) * tcp_cache_size, in tcp_cache_init()
1611 tcp_heuristics = zalloc_permanent(sizeof(struct tcp_heuristics_head) * tcp_cache_size, in tcp_cache_init()
1614 for (int i = 0; i < tcp_cache_size; i++) { in tcp_cache_init()