Lines Matching refs:sock_net
124 ctx = rcu_dereference(sock_net(sk)->ipv4.tcp_fastopen_ctx); in __tcp_fastopen_cookie_gen()
299 __NET_INC_STATS(sock_net(sk), in tcp_fastopen_queue_check()
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()
336 NET_INC_STATS(sock_net(sk), LINUX_MIB_TCPFASTOPENCOOKIEREQD); in tcp_try_fastopen()
366 NET_INC_STATS(sock_net(sk), in tcp_try_fastopen()
370 NET_INC_STATS(sock_net(sk), LINUX_MIB_TCPFASTOPENPASSIVEFAIL); in tcp_try_fastopen()
372 NET_INC_STATS(sock_net(sk), LINUX_MIB_TCPFASTOPENPASSIVEFAIL); in tcp_try_fastopen()
455 struct net *net = sock_net(sk); 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()
534 NET_INC_STATS(sock_net(sk), LINUX_MIB_TCPFASTOPENACTIVEFAIL); in tcp_fastopen_active_detect_blackhole()