Home
last modified time | relevance | path

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

/freebsd-12-stable/sys/netinet/
Dtcp_hostcache.c226 V_tcp_hostcache.hashbase = (struct hc_head *) in tcp_hc_init()
234 TAILQ_INIT(&V_tcp_hostcache.hashbase[i].hch_bucket); in tcp_hc_init()
235 V_tcp_hostcache.hashbase[i].hch_length = 0; in tcp_hc_init()
236 mtx_init(&V_tcp_hostcache.hashbase[i].hch_mtx, "tcp_hc_entry", in tcp_hc_init()
271 mtx_destroy(&V_tcp_hostcache.hashbase[i].hch_mtx); in tcp_hc_destroy()
272 free(V_tcp_hostcache.hashbase, M_HOSTCACHE); in tcp_hc_destroy()
302 hc_head = &V_tcp_hostcache.hashbase[hash]; in tcp_hc_lookup()
361 hc_head = &V_tcp_hostcache.hashbase[hash]; in tcp_hc_insert()
390 V_tcp_hostcache.hashbase[hash].hch_length--; in tcp_hc_insert()
423 V_tcp_hostcache.hashbase[hash].hch_length++; in tcp_hc_insert()
[all …]
Dtcp_syncache.c272 V_tcp_syncache.hashbase = malloc(V_tcp_syncache.hashsize * in syncache_init()
281 TAILQ_INIT(&V_tcp_syncache.hashbase[i].sch_bucket); in syncache_init()
282 mtx_init(&V_tcp_syncache.hashbase[i].sch_mtx, "tcp_sc_head", in syncache_init()
284 callout_init_mtx(&V_tcp_syncache.hashbase[i].sch_timer, in syncache_init()
285 &V_tcp_syncache.hashbase[i].sch_mtx, 0); in syncache_init()
286 V_tcp_syncache.hashbase[i].sch_length = 0; in syncache_init()
287 V_tcp_syncache.hashbase[i].sch_sc = &V_tcp_syncache; in syncache_init()
288 V_tcp_syncache.hashbase[i].sch_last_overflow = in syncache_init()
323 sch = &V_tcp_syncache.hashbase[i]; in syncache_destroy()
342 free(V_tcp_syncache.hashbase, M_SYNCACHE); in syncache_destroy()
[all …]
Dtcp_hostcache.h72 struct hc_head *hashbase; member
Dtcp_syncache.h119 struct syncache_head *hashbase; member