Home
last modified time | relevance | path

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

/kernel/linux/linux-5.10/include/net/
Dinet_hashtables.h173 struct inet_hashinfo *hashinfo, in inet_ehash_bucket() argument
176 return &hashinfo->ehash[hash & hashinfo->ehash_mask]; in inet_ehash_bucket()
180 struct inet_hashinfo *hashinfo, in inet_ehash_lockp() argument
183 return &hashinfo->ehash_locks[hash & hashinfo->ehash_locks_mask]; in inet_ehash_lockp()
186 int inet_ehash_locks_alloc(struct inet_hashinfo *hashinfo);
194 static inline void inet_ehash_locks_free(struct inet_hashinfo *hashinfo) in inet_ehash_locks_free() argument
196 kvfree(hashinfo->ehash_locks); in inet_ehash_locks_free()
197 hashinfo->ehash_locks = NULL; in inet_ehash_locks_free()
247 struct inet_hashinfo *hashinfo,
255 struct inet_hashinfo *hashinfo, in inet_lookup_listener() argument
[all …]
Dinet6_hashtables.h44 struct inet_hashinfo *hashinfo,
52 struct inet_hashinfo *hashinfo,
61 struct inet_hashinfo *hashinfo, in __inet6_lookup() argument
70 struct sock *sk = __inet6_lookup_established(net, hashinfo, saddr, in __inet6_lookup()
77 return inet6_lookup_listener(net, hashinfo, skb, doff, saddr, sport, in __inet6_lookup()
81 static inline struct sock *__inet6_lookup_skb(struct inet_hashinfo *hashinfo, in __inet6_lookup_skb() argument
93 return __inet6_lookup(dev_net(skb_dst(skb)->dev), hashinfo, skb, in __inet6_lookup_skb()
99 struct sock *inet6_lookup(struct net *net, struct inet_hashinfo *hashinfo,
Dinet_timewait_sock.h89 struct inet_hashinfo *hashinfo);
96 struct inet_hashinfo *hashinfo);
113 void inet_twsk_purge(struct inet_hashinfo *hashinfo, int family);
Dsock.h1256 struct inet_hashinfo *hashinfo; member
/kernel/linux/linux-5.10/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.c117 struct inet_hashinfo *hashinfo = sk->sk_prot->h.hashinfo; in __inet_put_port() local
119 hashinfo->bhash_size); in __inet_put_port()
120 struct inet_bind_hashbucket *head = &hashinfo->bhash[bhash]; in __inet_put_port()
128 inet_bind_bucket_destroy(hashinfo->bind_bucket_cachep, tb); in __inet_put_port()
142 struct inet_hashinfo *table = sk->sk_prot->h.hashinfo; in __inet_inherit_port()
316 struct inet_hashinfo *hashinfo, in inet_lookup_run_bpf() argument
324 if (hashinfo != &tcp_hashinfo) in inet_lookup_run_bpf()
339 struct inet_hashinfo *hashinfo, in __inet_lookup_listener() argument
351 result = inet_lookup_run_bpf(net, hashinfo, skb, doff, in __inet_lookup_listener()
358 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()
145 struct raw_hashinfo *hashinfo = raw_get_hashinfo(r); in raw_diag_dump() local
152 if (IS_ERR(hashinfo)) in raw_diag_dump()
160 read_lock(&hashinfo->lock); in raw_diag_dump()
164 sk_for_each(sk, &hashinfo->ht[slot]) { in raw_diag_dump()
[all …]
Dinet_diag.c505 struct inet_hashinfo *hashinfo, in inet_diag_find_one_icsk() argument
512 sk = inet_lookup(net, hashinfo, NULL, 0, req->id.idiag_dst[0], in inet_diag_find_one_icsk()
519 sk = inet_lookup(net, hashinfo, NULL, 0, req->id.idiag_dst[3], in inet_diag_find_one_icsk()
523 sk = inet6_lookup(net, hashinfo, NULL, 0, in inet_diag_find_one_icsk()
548 int inet_diag_dump_one_icsk(struct inet_hashinfo *hashinfo, in inet_diag_dump_one_icsk() argument
559 sk = inet_diag_find_one_icsk(net, hashinfo, req); in inet_diag_dump_one_icsk()
1004 void inet_diag_dump_icsk(struct inet_hashinfo *hashinfo, struct sk_buff *skb, in inet_diag_dump_icsk() argument
1031 ilb = &hashinfo->listening_hash[i]; in inet_diag_dump_icsk()
1078 for (i = s_i; i <= hashinfo->ehash_mask; i++) { in inet_diag_dump_icsk()
1079 struct inet_ehash_bucket *head = &hashinfo->ehash[i]; in inet_diag_dump_icsk()
[all …]
Dinet_connection_sock.c189 struct inet_hashinfo *hinfo = sk->sk_prot->h.hashinfo; in inet_csk_find_open_port()
362 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.c2823 .h.hashinfo = &tcp_hashinfo,
2894 net->ipv4.tcp_death_row.hashinfo = &tcp_hashinfo; in tcp_sk_init()
/kernel/linux/common_modules/newip/third_party/linux-5.10/net/newip/
Dninet_hashtables.c192 struct inet_hashinfo *hashinfo = sk->sk_prot->h.hashinfo; in __ninet_hash() local
203 ilb = &hashinfo->listening_hash[inet_sk_listen_hashfn(sk)]; in __ninet_hash()
209 ninet_hash2(hashinfo, sk); in __ninet_hash()
255 struct inet_hashinfo *hashinfo = sk->sk_prot->h.hashinfo; in __ninet_unhash() local
257 ninet_unhash2(hashinfo, sk); in __ninet_unhash()
267 struct inet_hashinfo *hashinfo = sk->sk_prot->h.hashinfo; in ninet_unhash() local
275 ilb = &hashinfo->listening_hash[inet_sk_listen_hashfn(sk)]; in ninet_unhash()
283 spinlock_t *lock = inet_ehash_lockp(hashinfo, sk->sk_hash); in ninet_unhash()
305 struct inet_hashinfo *hashinfo, in __ninet_lookup_established() argument
318 unsigned int slot = hash & hashinfo->ehash_mask; in __ninet_lookup_established()
[all …]
Dtcp_nip.c2282 .h.hashinfo = &tcp_hashinfo,
/kernel/linux/common_modules/newip/third_party/linux-5.10/include/net/
Dninet_hashtables.h46 struct inet_hashinfo *hashinfo,
53 struct inet_hashinfo *hashinfo,
61 struct inet_hashinfo *hashinfo, in __ninet_lookup() argument
69 struct sock *sk = __ninet_lookup_established(net, hashinfo, saddr, in __ninet_lookup()
75 return ninet_lookup_listener(net, hashinfo, skb, doff, saddr, sport, in __ninet_lookup()
79 static inline struct sock *__ninet_lookup_skb(struct inet_hashinfo *hashinfo, in __ninet_lookup_skb() argument
92 return __ninet_lookup(dev_net(skb->dev), hashinfo, skb, in __ninet_lookup_skb()
/kernel/linux/linux-5.10/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.c2170 .h.hashinfo = &tcp_hashinfo,
/kernel/linux/linux-5.10/include/linux/
Dinet_diag.h53 int inet_diag_dump_one_icsk(struct inet_hashinfo *hashinfo,
58 struct inet_hashinfo *hashinfo,
/kernel/linux/linux-5.10/include/net/netns/
Dipv4.h37 struct inet_hashinfo *hashinfo ____cacheline_aligned_in_smp;
/kernel/linux/linux-5.10/net/dccp/
Dminisocks.c26 .hashinfo = &dccp_hashinfo,
Dipv4.c965 .h.hashinfo = &dccp_hashinfo,
Dipv6.c1050 .h.hashinfo = &dccp_hashinfo,
/kernel/linux/linux-5.10/drivers/net/hyperv/
Dhyperv_net.h87 u32 hashinfo; member
Drndis_filter.c860 rssp->hashinfo = NDIS_HASH_FUNC_TOEPLITZ | NDIS_HASH_IPV4 | in rndis_set_rss_param_msg()
/kernel/linux/linux-5.10/net/mptcp/
Dprotocol.c2821 mptcp_prot.h.hashinfo = tcp_prot.h.hashinfo; in mptcp_proto_init()