Home
last modified time | relevance | path

Searched refs:hashinfo (Results 1 – 11 of 11) sorted by relevance

/net/ipv4/
Dinet_timewait_sock.c30 struct inet_hashinfo *hashinfo) in inet_twsk_bind_unhash() argument
39 inet_bind_bucket_destroy(hashinfo->bind_bucket_cachep, tb); in inet_twsk_bind_unhash()
46 struct inet_hashinfo *hashinfo = tw->tw_dr->hashinfo; in inet_twsk_kill() local
47 spinlock_t *lock = inet_ehash_lockp(hashinfo, tw->tw_hash); in inet_twsk_kill()
55 bhead = &hashinfo->bhash[inet_bhashfn(twsk_net(tw), tw->tw_num, in inet_twsk_kill()
56 hashinfo->bhash_size)]; in inet_twsk_kill()
59 inet_twsk_bind_unhash(tw, hashinfo); in inet_twsk_kill()
102 struct inet_hashinfo *hashinfo) in inet_twsk_hashdance() argument
106 struct inet_ehash_bucket *ehead = inet_ehash_bucket(hashinfo, sk->sk_hash); in inet_twsk_hashdance()
107 spinlock_t *lock = inet_ehash_lockp(hashinfo, sk->sk_hash); in inet_twsk_hashdance()
[all …]
Dinet_hashtables.c108 struct inet_hashinfo *hashinfo = sk->sk_prot->h.hashinfo; in __inet_put_port() local
110 hashinfo->bhash_size); in __inet_put_port()
111 struct inet_bind_hashbucket *head = &hashinfo->bhash[bhash]; in __inet_put_port()
119 inet_bind_bucket_destroy(hashinfo->bind_bucket_cachep, tb); in __inet_put_port()
133 struct inet_hashinfo *table = sk->sk_prot->h.hashinfo; in __inet_inherit_port()
298 struct inet_hashinfo *hashinfo, in __inet_lookup_listener() argument
309 ilb2 = inet_lhash2_bucket(hashinfo, hash2); in __inet_lookup_listener()
319 ilb2 = inet_lhash2_bucket(hashinfo, hash2); in __inet_lookup_listener()
353 struct inet_hashinfo *hashinfo, in __inet_lookup_established() argument
366 unsigned int slot = hash & hashinfo->ehash_mask; in __inet_lookup_established()
[all …]
Draw_diag.c60 struct raw_hashinfo *hashinfo = raw_get_hashinfo(r); in raw_sock_get() local
64 if (IS_ERR(hashinfo)) in raw_sock_get()
65 return ERR_CAST(hashinfo); in raw_sock_get()
67 read_lock(&hashinfo->lock); in raw_sock_get()
69 sk_for_each(s, &hashinfo->ht[slot]) { in raw_sock_get()
85 read_unlock(&hashinfo->lock); in raw_sock_get()
151 struct raw_hashinfo *hashinfo = raw_get_hashinfo(r); in raw_diag_dump() local
156 if (IS_ERR(hashinfo)) in raw_diag_dump()
162 read_lock(&hashinfo->lock); in raw_diag_dump()
166 sk_for_each(sk, &hashinfo->ht[slot]) { in raw_diag_dump()
[all …]
Dinet_diag.c414 struct inet_hashinfo *hashinfo, in inet_diag_find_one_icsk() argument
421 sk = inet_lookup(net, hashinfo, NULL, 0, req->id.idiag_dst[0], in inet_diag_find_one_icsk()
428 sk = inet_lookup(net, hashinfo, NULL, 0, req->id.idiag_dst[3], in inet_diag_find_one_icsk()
432 sk = inet6_lookup(net, hashinfo, NULL, 0, in inet_diag_find_one_icsk()
457 int inet_diag_dump_one_icsk(struct inet_hashinfo *hashinfo, in inet_diag_dump_one_icsk() argument
468 sk = inet_diag_find_one_icsk(net, hashinfo, req); in inet_diag_dump_one_icsk()
889 void inet_diag_dump_icsk(struct inet_hashinfo *hashinfo, struct sk_buff *skb, in inet_diag_dump_icsk() argument
913 ilb = &hashinfo->listening_hash[i]; in inet_diag_dump_icsk()
956 for (i = s_i; i <= hashinfo->ehash_mask; i++) { in inet_diag_dump_icsk()
957 struct inet_ehash_bucket *head = &hashinfo->ehash[i]; in inet_diag_dump_icsk()
[all …]
Dinet_connection_sock.c180 struct inet_hashinfo *hinfo = sk->sk_prot->h.hashinfo; in inet_csk_find_open_port()
345 struct inet_hashinfo *hinfo = sk->sk_prot->h.hashinfo; in inet_csk_get_port()
702 struct inet_hashinfo *hashinfo = req_to_sk(req)->sk_prot->h.hashinfo; in reqsk_queue_unlink() local
706 spinlock_t *lock = inet_ehash_lockp(hashinfo, req->rsk_hash); in reqsk_queue_unlink()
Dtcp_ipv4.c2637 .h.hashinfo = &tcp_hashinfo,
2710 net->ipv4.tcp_death_row.hashinfo = &tcp_hashinfo; in tcp_sk_init()
/net/ipv6/
Dinet6_hashtables.c50 struct inet_hashinfo *hashinfo, in __inet6_lookup_established() argument
64 unsigned int slot = hash & hashinfo->ehash_mask; in __inet6_lookup_established()
65 struct inet_ehash_bucket *head = &hashinfo->ehash[slot]; in __inet6_lookup_established()
150 struct inet_hashinfo *hashinfo, in inet6_lookup_listener() argument
161 ilb2 = inet_lhash2_bucket(hashinfo, hash2); in inet6_lookup_listener()
171 ilb2 = inet_lhash2_bucket(hashinfo, hash2); in inet6_lookup_listener()
183 struct sock *inet6_lookup(struct net *net, struct inet_hashinfo *hashinfo, in inet6_lookup() argument
192 sk = __inet6_lookup(net, hashinfo, skb, doff, saddr, sport, daddr, in inet6_lookup()
204 struct inet_hashinfo *hinfo = death_row->hashinfo; in __inet6_check_established()
Dtcp_ipv6.c2071 .h.hashinfo = &tcp_hashinfo,
/net/dccp/
Dminisocks.c26 .hashinfo = &dccp_hashinfo,
Dipv4.c965 .h.hashinfo = &dccp_hashinfo,
Dipv6.c1056 .h.hashinfo = &dccp_hashinfo,