Home
last modified time | relevance | path

Searched refs:hashinfo (Results 1 – 12 of 12) 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()
307 struct inet_hashinfo *hashinfo, in inet_lookup_run_bpf() argument
315 if (hashinfo != &tcp_hashinfo) in inet_lookup_run_bpf()
330 struct inet_hashinfo *hashinfo, in __inet_lookup_listener() argument
342 result = inet_lookup_run_bpf(net, hashinfo, skb, doff, in __inet_lookup_listener()
349 ilb2 = inet_lhash2_bucket(hashinfo, hash2); in __inet_lookup_listener()
[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()
142 struct raw_hashinfo *hashinfo = raw_get_hashinfo(r); in raw_diag_dump() local
149 if (IS_ERR(hashinfo)) in raw_diag_dump()
157 read_lock(&hashinfo->lock); in raw_diag_dump()
161 sk_for_each(sk, &hashinfo->ht[slot]) { in raw_diag_dump()
[all …]
Dinet_diag.c511 struct inet_hashinfo *hashinfo, in inet_diag_find_one_icsk() argument
518 sk = inet_lookup(net, hashinfo, NULL, 0, req->id.idiag_dst[0], in inet_diag_find_one_icsk()
525 sk = inet_lookup(net, hashinfo, NULL, 0, req->id.idiag_dst[3], in inet_diag_find_one_icsk()
529 sk = inet6_lookup(net, hashinfo, NULL, 0, in inet_diag_find_one_icsk()
554 int inet_diag_dump_one_icsk(struct inet_hashinfo *hashinfo, in inet_diag_dump_one_icsk() argument
565 sk = inet_diag_find_one_icsk(net, hashinfo, req); in inet_diag_dump_one_icsk()
1009 void inet_diag_dump_icsk(struct inet_hashinfo *hashinfo, struct sk_buff *skb, in inet_diag_dump_icsk() argument
1036 ilb = &hashinfo->listening_hash[i]; in inet_diag_dump_icsk()
1083 for (i = s_i; i <= hashinfo->ehash_mask; i++) { in inet_diag_dump_icsk()
1084 struct inet_ehash_bucket *head = &hashinfo->ehash[i]; in inet_diag_dump_icsk()
[all …]
Dinet_connection_sock.c196 struct inet_hashinfo *hinfo = sk->sk_prot->h.hashinfo; in inet_csk_find_open_port()
369 struct inet_hashinfo *hinfo = sk->sk_prot->h.hashinfo; in inet_csk_get_port()
770 struct inet_hashinfo *hashinfo = req_to_sk(req)->sk_prot->h.hashinfo; in reqsk_queue_unlink() local
774 spinlock_t *lock = inet_ehash_lockp(hashinfo, req->rsk_hash); in reqsk_queue_unlink()
Dtcp_ipv4.c3114 .h.hashinfo = &tcp_hashinfo,
3185 net->ipv4.tcp_death_row.hashinfo = &tcp_hashinfo; in tcp_sk_init()
/net/ipv6/
Dinet6_hashtables.c52 struct inet_hashinfo *hashinfo, in __inet6_lookup_established() argument
66 unsigned int slot = hash & hashinfo->ehash_mask; in __inet6_lookup_established()
67 struct inet_ehash_bucket *head = &hashinfo->ehash[slot]; in __inet6_lookup_established()
163 struct inet_hashinfo *hashinfo, in inet6_lookup_run_bpf() argument
173 if (hashinfo != &tcp_hashinfo) in inet6_lookup_run_bpf()
188 struct inet_hashinfo *hashinfo, in inet6_lookup_listener() argument
200 result = inet6_lookup_run_bpf(net, hashinfo, skb, doff, in inet6_lookup_listener()
207 ilb2 = inet_lhash2_bucket(hashinfo, hash2); in inet6_lookup_listener()
217 ilb2 = inet_lhash2_bucket(hashinfo, hash2); in inet6_lookup_listener()
229 struct sock *inet6_lookup(struct net *net, struct inet_hashinfo *hashinfo, in inet6_lookup() argument
[all …]
Dtcp_ipv6.c2199 .h.hashinfo = &tcp_hashinfo,
/net/dccp/
Dminisocks.c26 .hashinfo = &dccp_hashinfo,
Dipv4.c975 .h.hashinfo = &dccp_hashinfo,
Dipv6.c1058 .h.hashinfo = &dccp_hashinfo,
/net/mptcp/
Dprotocol.c3552 mptcp_prot.h.hashinfo = tcp_prot.h.hashinfo; in mptcp_proto_init()