Lines Matching refs:hashinfo

176 	struct inet_hashinfo *hashinfo = tcp_or_dccp_get_hashinfo(sk);  in __inet_put_port()  local
182 bhash = inet_bhashfn(net, inet_sk(sk)->inet_num, hashinfo->bhash_size); in __inet_put_port()
183 head = &hashinfo->bhash[bhash]; in __inet_put_port()
184 head2 = inet_bhashfn_portaddr(hashinfo, sk, net, inet_sk(sk)->inet_num); in __inet_put_port()
191 inet_bind_bucket_destroy(hashinfo->bind_bucket_cachep, tb); in __inet_put_port()
199 inet_bind2_bucket_destroy(hashinfo->bind2_bucket_cachep, tb2); in __inet_put_port()
386 struct inet_hashinfo *hashinfo, in inet_lookup_run_bpf() argument
394 if (hashinfo != net->ipv4.tcp_death_row.hashinfo) in inet_lookup_run_bpf()
409 struct inet_hashinfo *hashinfo, in __inet_lookup_listener() argument
421 result = inet_lookup_run_bpf(net, hashinfo, skb, doff, in __inet_lookup_listener()
428 ilb2 = inet_lhash2_bucket(hashinfo, hash2); in __inet_lookup_listener()
438 ilb2 = inet_lhash2_bucket(hashinfo, hash2); in __inet_lookup_listener()
472 struct inet_hashinfo *hashinfo, in __inet_lookup_established() argument
485 unsigned int slot = hash & hashinfo->ehash_mask; in __inet_lookup_established()
486 struct inet_ehash_bucket *head = &hashinfo->ehash[slot]; in __inet_lookup_established()
522 struct inet_hashinfo *hinfo = death_row->hashinfo; in __inet_check_established()
637 struct inet_hashinfo *hashinfo = tcp_or_dccp_get_hashinfo(sk); in inet_ehash_insert() local
646 head = inet_ehash_bucket(hashinfo, sk->sk_hash); in inet_ehash_insert()
648 lock = inet_ehash_lockp(hashinfo, sk->sk_hash); in inet_ehash_insert()
722 struct inet_hashinfo *hashinfo = tcp_or_dccp_get_hashinfo(sk); in __inet_hash() local
733 ilb2 = inet_lhash2_bucket_sk(hashinfo, sk); in __inet_hash()
768 struct inet_hashinfo *hashinfo = tcp_or_dccp_get_hashinfo(sk); in inet_unhash() local
776 ilb2 = inet_lhash2_bucket_sk(hashinfo, sk); in inet_unhash()
793 spinlock_t *lock = inet_ehash_lockp(hashinfo, sk->sk_hash); in inet_unhash()
997 struct inet_hashinfo *hinfo = death_row->hashinfo; in __inet_hash_connect()
1199 int inet_ehash_locks_alloc(struct inet_hashinfo *hashinfo) in inet_ehash_locks_alloc() argument
1210 nblocks = min(nblocks, hashinfo->ehash_mask + 1); in inet_ehash_locks_alloc()
1212 hashinfo->ehash_locks = kvmalloc_array(nblocks, locksz, GFP_KERNEL); in inet_ehash_locks_alloc()
1213 if (!hashinfo->ehash_locks) in inet_ehash_locks_alloc()
1217 spin_lock_init(&hashinfo->ehash_locks[i]); in inet_ehash_locks_alloc()
1219 hashinfo->ehash_locks_mask = nblocks - 1; in inet_ehash_locks_alloc()
1224 struct inet_hashinfo *inet_pernet_hashinfo_alloc(struct inet_hashinfo *hashinfo, in inet_pernet_hashinfo_alloc() argument
1230 new_hashinfo = kmemdup(hashinfo, sizeof(*hashinfo), GFP_KERNEL); in inet_pernet_hashinfo_alloc()
1260 void inet_pernet_hashinfo_free(struct inet_hashinfo *hashinfo) in inet_pernet_hashinfo_free() argument
1262 if (!hashinfo->pernet) in inet_pernet_hashinfo_free()
1265 inet_ehash_locks_free(hashinfo); in inet_pernet_hashinfo_free()
1266 vfree(hashinfo->ehash); in inet_pernet_hashinfo_free()
1267 kfree(hashinfo); in inet_pernet_hashinfo_free()