Home
last modified time | relevance | path

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

12

/Linux-v6.6/include/net/
Dinet_hashtables.h185 return sk->sk_prot->h.hashinfo ? : in tcp_or_dccp_get_hashinfo()
186 sock_net(sk)->ipv4.tcp_death_row.hashinfo; in tcp_or_dccp_get_hashinfo()
188 return sock_net(sk)->ipv4.tcp_death_row.hashinfo; in tcp_or_dccp_get_hashinfo()
199 struct inet_hashinfo *hashinfo, in inet_ehash_bucket() argument
202 return &hashinfo->ehash[hash & hashinfo->ehash_mask]; in inet_ehash_bucket()
206 struct inet_hashinfo *hashinfo, in inet_ehash_lockp() argument
209 return &hashinfo->ehash_locks[hash & hashinfo->ehash_locks_mask]; in inet_ehash_lockp()
212 int inet_ehash_locks_alloc(struct inet_hashinfo *hashinfo);
220 static inline void inet_ehash_locks_free(struct inet_hashinfo *hashinfo) in inet_ehash_locks_free() argument
222 kvfree(hashinfo->ehash_locks); in inet_ehash_locks_free()
[all …]
Dinet6_hashtables.h44 struct inet_hashinfo *hashinfo,
68 struct inet_hashinfo *hashinfo,
86 struct inet_hashinfo *hashinfo, in __inet6_lookup() argument
95 struct sock *sk = __inet6_lookup_established(net, hashinfo, saddr, in __inet6_lookup()
102 return inet6_lookup_listener(net, hashinfo, skb, doff, saddr, sport, in __inet6_lookup()
146 static inline struct sock *__inet6_lookup_skb(struct inet_hashinfo *hashinfo, in __inet6_lookup_skb() argument
164 return __inet6_lookup(net, hashinfo, skb, in __inet6_lookup_skb()
170 struct sock *inet6_lookup(struct net *net, struct inet_hashinfo *hashinfo,
Draw.h48 static inline void raw_hashinfo_init(struct raw_hashinfo *hashinfo) in raw_hashinfo_init() argument
52 spin_lock_init(&hashinfo->lock); in raw_hashinfo_init()
54 INIT_HLIST_HEAD(&hashinfo->ht[i]); in raw_hashinfo_init()
Dinet_timewait_sock.h93 struct inet_hashinfo *hashinfo);
100 struct inet_hashinfo *hashinfo);
117 void inet_twsk_purge(struct inet_hashinfo *hashinfo, int family);
/Linux-v6.6/net/ipv4/
Dinet_timewait_sock.c30 struct inet_hashinfo *hashinfo) in inet_twsk_bind_unhash() argument
40 inet_bind_bucket_destroy(hashinfo->bind_bucket_cachep, tb); in inet_twsk_bind_unhash()
44 inet_bind2_bucket_destroy(hashinfo->bind2_bucket_cachep, tb2); in inet_twsk_bind_unhash()
52 struct inet_hashinfo *hashinfo = tw->tw_dr->hashinfo; in inet_twsk_kill() local
53 spinlock_t *lock = inet_ehash_lockp(hashinfo, tw->tw_hash); in inet_twsk_kill()
61 bhead = &hashinfo->bhash[inet_bhashfn(twsk_net(tw), tw->tw_num, in inet_twsk_kill()
62 hashinfo->bhash_size)]; in inet_twsk_kill()
63 bhead2 = inet_bhashfn_portaddr(hashinfo, (struct sock *)tw, in inet_twsk_kill()
68 inet_twsk_bind_unhash(tw, hashinfo); in inet_twsk_kill()
115 struct inet_hashinfo *hashinfo) in inet_twsk_hashdance() argument
[all …]
Dinet_hashtables.c183 struct inet_hashinfo *hashinfo = tcp_or_dccp_get_hashinfo(sk); in __inet_put_port() local
189 bhash = inet_bhashfn(net, inet_sk(sk)->inet_num, hashinfo->bhash_size); in __inet_put_port()
190 head = &hashinfo->bhash[bhash]; in __inet_put_port()
191 head2 = inet_bhashfn_portaddr(hashinfo, sk, net, inet_sk(sk)->inet_num); in __inet_put_port()
198 inet_bind_bucket_destroy(hashinfo->bind_bucket_cachep, tb); in __inet_put_port()
206 inet_bind2_bucket_destroy(hashinfo->bind2_bucket_cachep, tb2); in __inet_put_port()
433 struct inet_hashinfo *hashinfo, in __inet_lookup_listener() argument
445 hashinfo == net->ipv4.tcp_death_row.hashinfo) { in __inet_lookup_listener()
454 ilb2 = inet_lhash2_bucket(hashinfo, hash2); in __inet_lookup_listener()
464 ilb2 = inet_lhash2_bucket(hashinfo, hash2); in __inet_lookup_listener()
[all …]
Draw_diag.c59 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()
69 hlist = &hashinfo->ht[slot]; in raw_sock_get()
141 struct raw_hashinfo *hashinfo = raw_get_hashinfo(r); in raw_diag_dump() local
149 if (IS_ERR(hashinfo)) in raw_diag_dump()
161 hlist = &hashinfo->ht[slot]; in raw_diag_dump()
Dtcp_diag.c186 hinfo = sock_net(cb->skb->sk)->ipv4.tcp_death_row.hashinfo; in tcp_diag_dump()
196 hinfo = sock_net(cb->skb->sk)->ipv4.tcp_death_row.hashinfo; in tcp_diag_dump_one()
210 hinfo = net->ipv4.tcp_death_row.hashinfo; in tcp_diag_destroy()
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
1031 for (i = s_i; i <= hashinfo->lhash2_mask; i++) { in inet_diag_dump_icsk()
1036 ilb = &hashinfo->lhash2[i]; in inet_diag_dump_icsk()
1084 for (i = s_i; i <= hashinfo->ehash_mask; i++) { in inet_diag_dump_icsk()
[all …]
Dtcp_ipv4.c488 sk = __inet_lookup_established(net, net->ipv4.tcp_death_row.hashinfo, in tcp_v4_err()
754 sk1 = __inet_lookup_listener(net, net->ipv4.tcp_death_row.hashinfo, in tcp_v4_send_reset()
1796 sk = __inet_lookup_established(net, net->ipv4.tcp_death_row.hashinfo, in tcp_v4_early_demux()
2025 sk = __inet_lookup_skb(net->ipv4.tcp_death_row.hashinfo, in tcp_v4_rcv()
2210 net->ipv4.tcp_death_row.hashinfo, in tcp_v4_rcv()
2362 struct inet_hashinfo *hinfo = seq_file_net(seq)->ipv4.tcp_death_row.hashinfo; in listening_get_first()
2408 hinfo = seq_file_net(seq)->ipv4.tcp_death_row.hashinfo; in listening_get_next()
2443 struct inet_hashinfo *hinfo = seq_file_net(seq)->ipv4.tcp_death_row.hashinfo; in established_get_first()
2471 struct inet_hashinfo *hinfo = seq_file_net(seq)->ipv4.tcp_death_row.hashinfo; in established_get_next()
2524 struct inet_hashinfo *hinfo = seq_file_net(seq)->ipv4.tcp_death_row.hashinfo; in tcp_seek_last_pos()
[all …]
Dtcp_minisocks.c336 inet_twsk_hashdance(tw, sk, net->ipv4.tcp_death_row.hashinfo); in tcp_time_wait()
372 if (net->ipv4.tcp_death_row.hashinfo->pernet) { in tcp_twsk_purge()
374 inet_twsk_purge(net->ipv4.tcp_death_row.hashinfo, family); in tcp_twsk_purge()
Dinet_connection_sock.c955 struct inet_hashinfo *hashinfo = tcp_or_dccp_get_hashinfo(sk); in reqsk_queue_unlink() local
956 spinlock_t *lock = inet_ehash_lockp(hashinfo, req->rsk_hash); in reqsk_queue_unlink()
/Linux-v6.6/net/ipv6/
Dinet6_hashtables.c51 struct inet_hashinfo *hashinfo, in __inet6_lookup_established() argument
65 unsigned int slot = hash & hashinfo->ehash_mask; in __inet6_lookup_established()
66 struct inet_ehash_bucket *head = &hashinfo->ehash[slot]; in __inet6_lookup_established()
204 struct inet_hashinfo *hashinfo, in inet6_lookup_listener() argument
216 hashinfo == net->ipv4.tcp_death_row.hashinfo) { in inet6_lookup_listener()
225 ilb2 = inet_lhash2_bucket(hashinfo, hash2); in inet6_lookup_listener()
235 ilb2 = inet_lhash2_bucket(hashinfo, hash2); in inet6_lookup_listener()
247 struct sock *inet6_lookup(struct net *net, struct inet_hashinfo *hashinfo, in inet6_lookup() argument
256 sk = __inet6_lookup(net, hashinfo, skb, doff, saddr, sport, daddr, in inet6_lookup()
268 struct inet_hashinfo *hinfo = death_row->hashinfo; in __inet6_check_established()
Dtcp_ipv6.c393 sk = __inet6_lookup_established(net, net->ipv4.tcp_death_row.hashinfo, in tcp_v6_err()
1027 sk1 = inet6_lookup_listener(net, net->ipv4.tcp_death_row.hashinfo, in tcp_v6_send_reset()
1627 sk = __inet6_lookup_skb(net->ipv4.tcp_death_row.hashinfo, skb, __tcp_hdrlen(th), in tcp_v6_rcv()
1809 sk2 = inet6_lookup_listener(net, net->ipv4.tcp_death_row.hashinfo, in tcp_v6_rcv()
1860 sk = __inet6_lookup_established(net, net->ipv4.tcp_death_row.hashinfo, in tcp_v6_early_demux()
2187 .h.hashinfo = NULL,
/Linux-v6.6/include/linux/
Dinet_diag.h53 int inet_diag_dump_one_icsk(struct inet_hashinfo *hashinfo,
58 struct inet_hashinfo *hashinfo,
/Linux-v6.6/net/ipv4/netfilter/
Dnf_tproxy_ipv4.c82 struct inet_hashinfo *hinfo = net->ipv4.tcp_death_row.hashinfo; in nf_tproxy_get_sock_v4()
Dnf_socket_ipv4.c74 return inet_lookup(net, net->ipv4.tcp_death_row.hashinfo, in nf_socket_get_sock_v4()
/Linux-v6.6/net/ipv6/netfilter/
Dnf_socket_ipv6.c86 return inet6_lookup(net, net->ipv4.tcp_death_row.hashinfo, in nf_socket_get_sock_v6()
Dnf_tproxy_ipv6.c83 struct inet_hashinfo *hinfo = net->ipv4.tcp_death_row.hashinfo; in nf_tproxy_get_sock_v6()
/Linux-v6.6/include/net/netns/
Dipv4.h38 struct inet_hashinfo *hashinfo ____cacheline_aligned_in_smp;
/Linux-v6.6/net/dccp/
Dminisocks.c27 .hashinfo = &dccp_hashinfo,
Dipv4.c981 .h.hashinfo = &dccp_hashinfo,
/Linux-v6.6/drivers/net/ethernet/netronome/nfp/crypto/
Dtls.c498 sk = inet_lookup_established(net, net->ipv4.tcp_death_row.hashinfo, in nfp_net_tls_rx_resync_req()
504 sk = __inet6_lookup_established(net, net->ipv4.tcp_death_row.hashinfo, in nfp_net_tls_rx_resync_req()
/Linux-v6.6/net/mptcp/
Dmptcp_diag.c87 hinfo = net->ipv4.tcp_death_row.hashinfo; in mptcp_diag_dump_listeners()
/Linux-v6.6/drivers/net/ethernet/mellanox/mlx5/core/en_accel/
Dktls_rx.c503 sk = inet_lookup_established(net, net->ipv4.tcp_death_row.hashinfo, in resync_update_sn()
513 sk = __inet6_lookup_established(net, net->ipv4.tcp_death_row.hashinfo, in resync_update_sn()

12