• Home
  • Raw
  • Download

Lines Matching refs:ipv4

112 	int reuse = sock_net(sk)->ipv4.sysctl_tcp_tw_reuse;  in tcp_twsk_unique()
209 struct inet_timewait_death_row *tcp_death_row = &sock_net(sk)->ipv4.tcp_death_row; in tcp_v4_connect()
795 ctl_sk = this_cpu_read(*net->ipv4.tcp_sk); in tcp_v4_send_reset()
893 ctl_sk = this_cpu_read(*net->ipv4.tcp_sk); in tcp_v4_send_ack()
986 tos = sock_net(sk)->ipv4.sysctl_tcp_reflect_tos ? in tcp_v4_send_synack()
1561 if (sock_net(sk)->ipv4.sysctl_tcp_reflect_tos) in tcp_v4_syn_recv_sock()
2808 .sysctl_wmem_offset = offsetof(struct net, ipv4.sysctl_tcp_wmem),
2809 .sysctl_rmem_offset = offsetof(struct net, ipv4.sysctl_tcp_rmem),
2825 if (net->ipv4.tcp_congestion_control) in tcp_sk_exit()
2826 bpf_module_put(net->ipv4.tcp_congestion_control, in tcp_sk_exit()
2827 net->ipv4.tcp_congestion_control->owner); in tcp_sk_exit()
2830 inet_ctl_sock_destroy(*per_cpu_ptr(net->ipv4.tcp_sk, cpu)); in tcp_sk_exit()
2831 free_percpu(net->ipv4.tcp_sk); in tcp_sk_exit()
2838 net->ipv4.tcp_sk = alloc_percpu(struct sock *); in tcp_sk_init()
2839 if (!net->ipv4.tcp_sk) in tcp_sk_init()
2856 *per_cpu_ptr(net->ipv4.tcp_sk, cpu) = sk; in tcp_sk_init()
2859 net->ipv4.sysctl_tcp_ecn = 2; in tcp_sk_init()
2860 net->ipv4.sysctl_tcp_ecn_fallback = 1; in tcp_sk_init()
2862 net->ipv4.sysctl_tcp_base_mss = TCP_BASE_MSS; in tcp_sk_init()
2863 net->ipv4.sysctl_tcp_min_snd_mss = TCP_MIN_SND_MSS; in tcp_sk_init()
2864 net->ipv4.sysctl_tcp_probe_threshold = TCP_PROBE_THRESHOLD; in tcp_sk_init()
2865 net->ipv4.sysctl_tcp_probe_interval = TCP_PROBE_INTERVAL; in tcp_sk_init()
2866 net->ipv4.sysctl_tcp_mtu_probe_floor = TCP_MIN_SND_MSS; in tcp_sk_init()
2868 net->ipv4.sysctl_tcp_keepalive_time = TCP_KEEPALIVE_TIME; in tcp_sk_init()
2869 net->ipv4.sysctl_tcp_keepalive_probes = TCP_KEEPALIVE_PROBES; in tcp_sk_init()
2870 net->ipv4.sysctl_tcp_keepalive_intvl = TCP_KEEPALIVE_INTVL; in tcp_sk_init()
2872 net->ipv4.sysctl_tcp_syn_retries = TCP_SYN_RETRIES; in tcp_sk_init()
2873 net->ipv4.sysctl_tcp_synack_retries = TCP_SYNACK_RETRIES; in tcp_sk_init()
2874 net->ipv4.sysctl_tcp_syncookies = 1; in tcp_sk_init()
2875 net->ipv4.sysctl_tcp_reordering = TCP_FASTRETRANS_THRESH; in tcp_sk_init()
2876 net->ipv4.sysctl_tcp_retries1 = TCP_RETR1; in tcp_sk_init()
2877 net->ipv4.sysctl_tcp_retries2 = TCP_RETR2; in tcp_sk_init()
2878 net->ipv4.sysctl_tcp_orphan_retries = 0; in tcp_sk_init()
2879 net->ipv4.sysctl_tcp_fin_timeout = TCP_FIN_TIMEOUT; in tcp_sk_init()
2880 net->ipv4.sysctl_tcp_notsent_lowat = UINT_MAX; in tcp_sk_init()
2881 net->ipv4.sysctl_tcp_tw_reuse = 2; in tcp_sk_init()
2882 net->ipv4.sysctl_tcp_no_ssthresh_metrics_save = 1; in tcp_sk_init()
2885 net->ipv4.tcp_death_row.sysctl_max_tw_buckets = cnt / 2; in tcp_sk_init()
2886 net->ipv4.tcp_death_row.hashinfo = &tcp_hashinfo; in tcp_sk_init()
2888 net->ipv4.sysctl_max_syn_backlog = max(128, cnt / 128); in tcp_sk_init()
2889 net->ipv4.sysctl_tcp_sack = 1; in tcp_sk_init()
2890 net->ipv4.sysctl_tcp_window_scaling = 1; in tcp_sk_init()
2891 net->ipv4.sysctl_tcp_timestamps = 1; in tcp_sk_init()
2892 net->ipv4.sysctl_tcp_early_retrans = 3; in tcp_sk_init()
2893 net->ipv4.sysctl_tcp_recovery = TCP_RACK_LOSS_DETECTION; in tcp_sk_init()
2894 net->ipv4.sysctl_tcp_slow_start_after_idle = 1; /* By default, RFC2861 behavior. */ in tcp_sk_init()
2895 net->ipv4.sysctl_tcp_retrans_collapse = 1; in tcp_sk_init()
2896 net->ipv4.sysctl_tcp_max_reordering = 300; in tcp_sk_init()
2897 net->ipv4.sysctl_tcp_dsack = 1; in tcp_sk_init()
2898 net->ipv4.sysctl_tcp_app_win = 31; in tcp_sk_init()
2899 net->ipv4.sysctl_tcp_adv_win_scale = 1; in tcp_sk_init()
2900 net->ipv4.sysctl_tcp_frto = 2; in tcp_sk_init()
2901 net->ipv4.sysctl_tcp_moderate_rcvbuf = 1; in tcp_sk_init()
2906 net->ipv4.sysctl_tcp_tso_win_divisor = 3; in tcp_sk_init()
2908 net->ipv4.sysctl_tcp_limit_output_bytes = 16 * 65536; in tcp_sk_init()
2910 net->ipv4.sysctl_tcp_challenge_ack_limit = 1000; in tcp_sk_init()
2911 net->ipv4.sysctl_tcp_min_tso_segs = 2; in tcp_sk_init()
2912 net->ipv4.sysctl_tcp_min_rtt_wlen = 300; in tcp_sk_init()
2913 net->ipv4.sysctl_tcp_autocorking = 1; in tcp_sk_init()
2914 net->ipv4.sysctl_tcp_invalid_ratelimit = HZ/2; in tcp_sk_init()
2915 net->ipv4.sysctl_tcp_pacing_ss_ratio = 200; in tcp_sk_init()
2916 net->ipv4.sysctl_tcp_pacing_ca_ratio = 120; in tcp_sk_init()
2918 memcpy(net->ipv4.sysctl_tcp_rmem, in tcp_sk_init()
2919 init_net.ipv4.sysctl_tcp_rmem, in tcp_sk_init()
2920 sizeof(init_net.ipv4.sysctl_tcp_rmem)); in tcp_sk_init()
2921 memcpy(net->ipv4.sysctl_tcp_wmem, in tcp_sk_init()
2922 init_net.ipv4.sysctl_tcp_wmem, in tcp_sk_init()
2923 sizeof(init_net.ipv4.sysctl_tcp_wmem)); in tcp_sk_init()
2925 net->ipv4.sysctl_tcp_comp_sack_delay_ns = NSEC_PER_MSEC; in tcp_sk_init()
2926 net->ipv4.sysctl_tcp_comp_sack_slack_ns = 100 * NSEC_PER_USEC; in tcp_sk_init()
2927 net->ipv4.sysctl_tcp_comp_sack_nr = 44; in tcp_sk_init()
2928 net->ipv4.sysctl_tcp_fastopen = TFO_CLIENT_ENABLE; in tcp_sk_init()
2929 spin_lock_init(&net->ipv4.tcp_fastopen_ctx_lock); in tcp_sk_init()
2930 net->ipv4.sysctl_tcp_fastopen_blackhole_timeout = 0; in tcp_sk_init()
2931 atomic_set(&net->ipv4.tfo_active_disable_times, 0); in tcp_sk_init()
2935 bpf_try_module_get(init_net.ipv4.tcp_congestion_control, in tcp_sk_init()
2936 init_net.ipv4.tcp_congestion_control->owner)) in tcp_sk_init()
2937 net->ipv4.tcp_congestion_control = init_net.ipv4.tcp_congestion_control; in tcp_sk_init()
2939 net->ipv4.tcp_congestion_control = &tcp_reno; in tcp_sk_init()