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
259 V_tcp_hostcache.hashbase = (struct hc_head *) in tcp_hc_init()
267 CK_SLIST_INIT(&V_tcp_hostcache.hashbase[i].hch_bucket); in tcp_hc_init()
268 V_tcp_hostcache.hashbase[i].hch_length = 0; in tcp_hc_init()
269 mtx_init(&V_tcp_hostcache.hashbase[i].hch_mtx, "tcp_hc_entry", in tcp_hc_init()
305 mtx_destroy(&V_tcp_hostcache.hashbase[i].hch_mtx); in tcp_hc_destroy()
306 free(V_tcp_hostcache.hashbase, M_HOSTCACHE); in tcp_hc_destroy()
343 hc_head = &V_tcp_hostcache.hashbase[HOSTCACHE_HASH(inc)]; in tcp_hc_lookup()
459 hc_head = &V_tcp_hostcache.hashbase[HOSTCACHE_HASH(inc)]; in tcp_hc_update()
668 THC_LOCK(&V_tcp_hostcache.hashbase[i]); in sysctl_tcp_hc_list()
[all …]
H A Dtcp_syncache.c273 V_tcp_syncache.hashbase = malloc(V_tcp_syncache.hashsize * in syncache_init()
282 TAILQ_INIT(&V_tcp_syncache.hashbase[i].sch_bucket); in syncache_init()
283 mtx_init(&V_tcp_syncache.hashbase[i].sch_mtx, "tcp_sc_head", in syncache_init()
285 callout_init_mtx(&V_tcp_syncache.hashbase[i].sch_timer, in syncache_init()
286 &V_tcp_syncache.hashbase[i].sch_mtx, 0); in syncache_init()
287 V_tcp_syncache.hashbase[i].sch_length = 0; in syncache_init()
288 V_tcp_syncache.hashbase[i].sch_sc = &V_tcp_syncache; in syncache_init()
289 V_tcp_syncache.hashbase[i].sch_last_overflow = in syncache_init()
339 sch = &V_tcp_syncache.hashbase[i]; in syncache_destroy()
358 free(V_tcp_syncache.hashbase, M_SYNCACHE); in syncache_destroy()
[all …]
H A Dtcp_syncache.h123 struct syncache_head *hashbase; member