Home
last modified time | relevance | path

Searched refs:hashbase (Results 1 – 4 of 4) sorted by relevance

/freebsd-10-stable/sys/netinet/
Dtcp_hostcache.c211 V_tcp_hostcache.hashbase = (struct hc_head *) in tcp_hc_init()
219 TAILQ_INIT(&V_tcp_hostcache.hashbase[i].hch_bucket); in tcp_hc_init()
220 V_tcp_hostcache.hashbase[i].hch_length = 0; in tcp_hc_init()
221 mtx_init(&V_tcp_hostcache.hashbase[i].hch_mtx, "tcp_hc_entry", in tcp_hc_init()
256 mtx_destroy(&V_tcp_hostcache.hashbase[i].hch_mtx); in tcp_hc_destroy()
257 free(V_tcp_hostcache.hashbase, M_HOSTCACHE); in tcp_hc_destroy()
284 hc_head = &V_tcp_hostcache.hashbase[hash]; in tcp_hc_lookup()
339 hc_head = &V_tcp_hostcache.hashbase[hash]; in tcp_hc_insert()
368 V_tcp_hostcache.hashbase[hash].hch_length--; in tcp_hc_insert()
400 V_tcp_hostcache.hashbase[hash].hch_length++; in tcp_hc_insert()
[all …]
Dtcp_syncache.c264 V_tcp_syncache.hashbase = malloc(V_tcp_syncache.hashsize * in syncache_init()
273 TAILQ_INIT(&V_tcp_syncache.hashbase[i].sch_bucket); in syncache_init()
274 mtx_init(&V_tcp_syncache.hashbase[i].sch_mtx, "tcp_sc_head", in syncache_init()
276 callout_init_mtx(&V_tcp_syncache.hashbase[i].sch_timer, in syncache_init()
277 &V_tcp_syncache.hashbase[i].sch_mtx, 0); in syncache_init()
278 V_tcp_syncache.hashbase[i].sch_length = 0; in syncache_init()
279 V_tcp_syncache.hashbase[i].sch_sc = &V_tcp_syncache; in syncache_init()
280 V_tcp_syncache.hashbase[i].sch_last_overflow = in syncache_init()
309 sch = &V_tcp_syncache.hashbase[i]; in syncache_destroy()
328 free(V_tcp_syncache.hashbase, M_SYNCACHE); in syncache_destroy()
[all …]
Dtcp_hostcache.h70 struct hc_head *hashbase; member
Dtcp_syncache.h117 struct syncache_head *hashbase; member