Lines Matching refs:ipv4
19 ctxt = rcu_dereference(net->ipv4.tcp_fastopen_ctx); in tcp_fastopen_init_key_once()
58 spin_lock(&net->ipv4.tcp_fastopen_ctx_lock); in tcp_fastopen_ctx_destroy()
60 ctxt = rcu_dereference_protected(net->ipv4.tcp_fastopen_ctx, in tcp_fastopen_ctx_destroy()
61 lockdep_is_held(&net->ipv4.tcp_fastopen_ctx_lock)); in tcp_fastopen_ctx_destroy()
62 rcu_assign_pointer(net->ipv4.tcp_fastopen_ctx, NULL); in tcp_fastopen_ctx_destroy()
63 spin_unlock(&net->ipv4.tcp_fastopen_ctx_lock); in tcp_fastopen_ctx_destroy()
96 spin_lock(&net->ipv4.tcp_fastopen_ctx_lock); in tcp_fastopen_reset_cipher()
100 lockdep_is_held(&net->ipv4.tcp_fastopen_ctx_lock)); in tcp_fastopen_reset_cipher()
103 octx = rcu_dereference_protected(net->ipv4.tcp_fastopen_ctx, in tcp_fastopen_reset_cipher()
104 lockdep_is_held(&net->ipv4.tcp_fastopen_ctx_lock)); in tcp_fastopen_reset_cipher()
105 rcu_assign_pointer(net->ipv4.tcp_fastopen_ctx, ctx); in tcp_fastopen_reset_cipher()
107 spin_unlock(&net->ipv4.tcp_fastopen_ctx_lock); in tcp_fastopen_reset_cipher()
124 ctx = rcu_dereference(sock_net(sk)->ipv4.tcp_fastopen_ctx); in __tcp_fastopen_cookie_gen()
316 return (sock_net(sk)->ipv4.sysctl_tcp_fastopen & flag) || in tcp_fastopen_no_cookie()
331 int tcp_fastopen = sock_net(sk)->ipv4.sysctl_tcp_fastopen; in tcp_try_fastopen()
457 atomic_inc(&net->ipv4.tfo_active_disable_times); in tcp_fastopen_active_disable()
458 net->ipv4.tfo_active_disable_stamp = jiffies; in tcp_fastopen_active_disable()
468 unsigned int tfo_bh_timeout = sock_net(sk)->ipv4.sysctl_tcp_fastopen_blackhole_timeout; in tcp_fastopen_active_should_disable()
469 int tfo_da_times = atomic_read(&sock_net(sk)->ipv4.tfo_active_disable_times); in tcp_fastopen_active_should_disable()
479 if (time_before(jiffies, sock_net(sk)->ipv4.tfo_active_disable_stamp + timeout)) in tcp_fastopen_active_should_disable()
513 atomic_read(&sock_net(sk)->ipv4.tfo_active_disable_times)) { in tcp_fastopen_active_disable_ofo_check()
516 atomic_set(&sock_net(sk)->ipv4.tfo_active_disable_times, 0); in tcp_fastopen_active_disable_ofo_check()