Home
last modified time | relevance | path

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

/freebsd/sys/netinet/
H A Dtcp_hostcache.c122 struct hc_head *hashbase; member
263 V_tcp_hostcache.hashbase = (struct hc_head *) in tcp_hc_init()
271 CK_SLIST_INIT(&V_tcp_hostcache.hashbase[i].hch_bucket); in tcp_hc_init()
272 V_tcp_hostcache.hashbase[i].hch_length = 0; in tcp_hc_init()
273 mtx_init(&V_tcp_hostcache.hashbase[i].hch_mtx, "tcp_hc_entry", in tcp_hc_init()
309 mtx_destroy(&V_tcp_hostcache.hashbase[i].hch_mtx); in tcp_hc_destroy()
310 free(V_tcp_hostcache.hashbase, M_HOSTCACHE); in tcp_hc_destroy()
347 hc_head = &V_tcp_hostcache.hashbase[HOSTCACHE_HASH(inc)]; in tcp_hc_lookup()
466 hc_head = &V_tcp_hostcache.hashbase[HOSTCACHE_HASH(inc)]; in tcp_hc_update()
715 THC_LOCK(&V_tcp_hostcache.hashbase[i]); in sysctl_tcp_hc_list()
[all …]
H A Dtcp_syncache.c277 V_tcp_syncache.hashbase = malloc(V_tcp_syncache.hashsize * in syncache_init()
286 TAILQ_INIT(&V_tcp_syncache.hashbase[i].sch_bucket); in syncache_init()
287 mtx_init(&V_tcp_syncache.hashbase[i].sch_mtx, "tcp_sc_head", in syncache_init()
289 callout_init_mtx(&V_tcp_syncache.hashbase[i].sch_timer, in syncache_init()
290 &V_tcp_syncache.hashbase[i].sch_mtx, 0); in syncache_init()
291 V_tcp_syncache.hashbase[i].sch_length = 0; in syncache_init()
292 V_tcp_syncache.hashbase[i].sch_sc = &V_tcp_syncache; in syncache_init()
293 V_tcp_syncache.hashbase[i].sch_last_overflow = in syncache_init()
343 sch = &V_tcp_syncache.hashbase[i]; in syncache_destroy()
362 free(V_tcp_syncache.hashbase, M_SYNCACHE); in syncache_destroy()
[all …]
H A Dtcp_syncache.h123 struct syncache_head *hashbase; member