Home
last modified time | relevance | path

Searched refs:reuse (Results 1 – 7 of 7) sorted by relevance

/net/core/
Dsock_reuseport.c22 struct sock_reuseport *reuse, bool bind_inany);
26 struct sock_reuseport *reuse; in reuseport_has_conns_set() local
32 reuse = rcu_dereference_protected(sk->sk_reuseport_cb, in reuseport_has_conns_set()
34 if (likely(reuse)) in reuseport_has_conns_set()
35 reuse->has_conns = 1; in reuseport_has_conns_set()
40 static void __reuseport_get_incoming_cpu(struct sock_reuseport *reuse) in __reuseport_get_incoming_cpu() argument
43 WRITE_ONCE(reuse->incoming_cpu, reuse->incoming_cpu + 1); in __reuseport_get_incoming_cpu()
46 static void __reuseport_put_incoming_cpu(struct sock_reuseport *reuse) in __reuseport_put_incoming_cpu() argument
49 WRITE_ONCE(reuse->incoming_cpu, reuse->incoming_cpu - 1); in __reuseport_put_incoming_cpu()
52 static void reuseport_get_incoming_cpu(struct sock *sk, struct sock_reuseport *reuse) in reuseport_get_incoming_cpu() argument
[all …]
Dfilter.c10365 struct sock_reuseport *reuse, in bpf_init_reuseport_kern() argument
10376 reuse_kern->reuseport_id = reuse->reuseport_id; in bpf_init_reuseport_kern()
10377 reuse_kern->bind_inany = reuse->bind_inany; in bpf_init_reuseport_kern()
10380 struct sock *bpf_run_sk_reuseport(struct sock_reuseport *reuse, struct sock *sk, in bpf_run_sk_reuseport() argument
10388 bpf_init_reuseport_kern(&reuse_kern, reuse, sk, skb, migrating_sk, hash); in bpf_run_sk_reuseport()
10401 struct sock_reuseport *reuse; in BPF_CALL_4() local
10408 reuse = rcu_dereference(selected_sk->sk_reuseport_cb); in BPF_CALL_4()
10409 if (!reuse) { in BPF_CALL_4()
10424 if (unlikely(reuse->reuseport_id != reuse_kern->reuseport_id)) { in BPF_CALL_4()
/net/ipv4/
Dinet_connection_sock.c139 bool reuse = sk->sk_reuse; in inet_csk_bind_conflict() local
166 if (reuse && sk2->sk_reuse && in inet_csk_bind_conflict()
315 bool reuse = sk->sk_reuse && sk->sk_state != TCP_LISTEN; in inet_csk_update_fastreuse() local
318 tb->fastreuse = reuse; in inet_csk_update_fastreuse()
332 if (!reuse) in inet_csk_update_fastreuse()
368 bool reuse = sk->sk_reuse && sk->sk_state != TCP_LISTEN; in inet_csk_get_port() local
403 if ((tb->fastreuse > 0 && reuse) || in inet_csk_get_port()
Dtcp_ipv4.c111 int reuse = READ_ONCE(sock_net(sk)->ipv4.sysctl_tcp_tw_reuse); in tcp_twsk_unique() local
116 if (reuse == 2) { in tcp_twsk_unique()
139 reuse = 0; in tcp_twsk_unique()
154 (!twp || (reuse && time_after32(ktime_get_seconds(), in tcp_twsk_unique()
/net/netfilter/ipset/
Dip_set_hash_gen.h836 bool deleted = false, forceadd = false, reuse = false; in mtype_add() local
883 deleted = reuse = true; in mtype_add()
901 reuse = true; in mtype_add()
904 if (reuse || forceadd) { in mtype_add()
/net/smc/
Dsmc_stats.h192 SMC_STAT_RMB(smc, reuse, is_smcd, is_rx)
/net/sctp/
Dsocket.c4262 sctp_sk(sk)->reuse = !!*val; in sctp_setsockopt_reuse_port()
7741 val = sctp_sk(sk)->reuse; in sctp_getsockopt_reuse_port()
8341 bool reuse = (sk->sk_reuse || sp->reuse); in sctp_get_port_local() local
8418 if ((pp->fastreuse && reuse && in sctp_get_port_local()
8439 (reuse && (sk2->sk_reuse || sp2->reuse) && in sctp_get_port_local()
8465 if (reuse && sk->sk_state != SCTP_SS_LISTENING) in sctp_get_port_local()
8478 (!reuse || sk->sk_state == SCTP_SS_LISTENING)) in sctp_get_port_local()
8610 if (sk->sk_reuse || sctp_sk(sk)->reuse) in sctp_inet_listen()
9469 sctp_sk(newsk)->reuse = sp->reuse; in sctp_copy_sock()